diff --git a/cloud_functions/analysis/src/analysis.py b/cloud_functions/analysis/src/analysis.py index f969e7b8..6769ae82 100644 --- a/cloud_functions/analysis/src/analysis.py +++ b/cloud_functions/analysis/src/analysis.py @@ -52,7 +52,7 @@ def get_locations_stats(db: sqlalchemy.engine.base.Engine, geojson: JSON) -> dic select area_km2, iso_sov1, iso_sov2, iso_sov3, round((st_area(st_transform(st_makevalid(st_intersection(the_geom, user_data_stats.geom)),'+proj=longlat +datum=WGS84 +no_defs +type=crs', '+proj=moll +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs'))/1e6)) portion_area_km2, user_data_stats.user_area_km2 - from eez_minus_mpa emm, user_data_stats + from data.eez_minus_mpa emm, user_data_stats where st_intersects(the_geom, user_data_stats.geom) """ )