forked from PnX-SI/GeoNature
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add todos to use geom_4326 instead of transform(geom, 4326)
- Loading branch information
Showing
2 changed files
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|