Skip to content

Commit

Permalink
Merge pull request #123 from Vizzuality/fix/analysis_query
Browse files Browse the repository at this point in the history
Fix: table namespace
  • Loading branch information
Agnieszka Figiel authored Dec 19, 2023
2 parents 7943188 + d07b61a commit 70ed297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud_functions/analysis/src/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
"""
)
Expand Down

0 comments on commit 70ed297

Please sign in to comment.