Skip to content

Commit

Permalink
Fix bbox size in Analyser_Merge osm-fr#523
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jun 17, 2019
1 parent 284545c commit a646710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysers/Analyser_Merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,9 @@ def analyser_osmosis_common(self):
LEFT JOIN LATERAL regexp_split_to_table(tags->'%(ref)s', ';') a(ref) ON true
WHERE""" + ("""
%(geomSelect)s IS NOT NULL AND""" if self.load.srid else "") + ("""
ST_SetSRID(ST_GeomFromText('%(bbox)s'), 4326) && %(geomSelect)s AND""" if self.load.bbox and self.load.srid else "") + """
ST_SetSRID(ST_Expand(ST_GeomFromText('%(bbox)s'), %(distance)s), 4326) && %(geomSelect)s AND""" if self.load.bbox and self.load.srid else "") + """
tags != ''::hstore AND
%(where)s)""") % {"type":type[0].upper(), "ref":self.mapping.osmRef, "geomSelect":typeSelect[type[0].upper()], "geom":typeGeom[type[0].upper()], "shape":typeShape[type[0].upper()], "from":type, "bbox":self.load.bbox, "where":where},
%(where)s)""") % {"type":type[0].upper(), "ref":self.mapping.osmRef, "geomSelect":typeSelect[type[0].upper()], "geom":typeGeom[type[0].upper()], "shape":typeShape[type[0].upper()], "from":type, "bbox":self.load.bbox, "distance": self.mapping.conflationDistance, "where":where},
self.mapping.select.types
)
))
Expand Down

0 comments on commit a646710

Please sign in to comment.