Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Exclude Antarctica to prevent ST_Contains errors
Russ Garrett5982cb88424b
diff --git a/web-backend/main.py b/web-backend/main.pyindex 1c30d7c..f02347e 100644--- a/web-backend/main.py+++ b/web-backend/main.py@@ -224,6 +224,7 @@ async def stats_object(request):res = await database.fetch_one("""SELECT country_eez."union" FROM power_plant, countries.country_eez WHEREST_Contains(ST_Transform(country_eez.geom, 3857), geometry)+ AND country_eez."union" != 'Antarctica'AND power_plant.osm_id = :id""",values={"id": id},)