Skip to content

Commit

Permalink
doc: add todos to use geom_4326 instead of transform(geom, 4326)
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux authored and bouttier committed Feb 21, 2024
1 parent 18edab5 commit e8dcc66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/geonature/core/gn_monitoring/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def get_site_areas(id_site):
params = request.args

query = (
# [email protected]_4326
select(corSiteArea, func.ST_Transform(LAreas.geom, 4326))
.join(LAreas, LAreas.id_area == corSiteArea.c.id_area)
.where(corSiteArea.c.id_base_site == id_site)
Expand Down
1 change: 1 addition & 0 deletions backend/geonature/core/gn_synthese/utils/blurring.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def build_blurred_precise_geom_queries(
CorAreaSyntheseAlias = aliased(CorAreaSynthese)
LAreasAlias = aliased(LAreas)
BibAreasTypesAlias = aliased(BibAreasTypes)
# [email protected]_4326
geom = LAreasAlias.geom.st_transform(4326).label("geom")
# In SyntheseQuery below :
# - query_joins parameter is needed to bypass
Expand Down

0 comments on commit e8dcc66

Please sign in to comment.