Skip to content

Commit

Permalink
fix blurring geom filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Feb 14, 2025
1 parent ab51b1f commit b67bfe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/geonature/core/gn_synthese/utils/blurring.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ 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")

geom = LAreasAlias.geom_4326.label("geom")
# In SyntheseQuery below :
# - query_joins parameter is needed to bypass
# "self.query_joins is not None" condition in the build_query() method below
Expand Down Expand Up @@ -107,7 +107,7 @@ def build_blurred_precise_geom_queries(
CorAreaSyntheseAlias,
CorAreaSyntheseAlias.id_synthese == Synthese.id_synthese,
),
geom_column=LAreas.geom,
geom_column=LAreas.geom_4326,
)
# Joins here are needed to retrieve the blurred geometry
blurred_geom_query.add_join(LAreasAlias, LAreasAlias.id_area, CorAreaSyntheseAlias.id_area)
Expand Down

0 comments on commit b67bfe9

Please sign in to comment.