mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix geometry creation from scene
This commit is contained in:
@@ -153,8 +153,9 @@ class OSMDataFactory(object):
|
|||||||
|
|
||||||
def parse_geometry(self, geom, scene):
|
def parse_geometry(self, geom, scene):
|
||||||
if geom.find(':') >= 0:
|
if geom.find(':') >= 0:
|
||||||
out = "POINT(%s)" % self.get_scene_geometry(scene, geom)
|
return "ST_SetSRID(%s, 4326)" % self.get_scene_geometry(scene, geom)
|
||||||
elif geom.find(',') < 0:
|
|
||||||
|
if geom.find(',') < 0:
|
||||||
out = "POINT(%s)" % self.mk_wkt_point(geom)
|
out = "POINT(%s)" % self.mk_wkt_point(geom)
|
||||||
elif geom.find('(') < 0:
|
elif geom.find('(') < 0:
|
||||||
line = ','.join([self.mk_wkt_point(x) for x in geom.split(',')])
|
line = ','.join([self.mk_wkt_point(x) for x in geom.split(',')])
|
||||||
|
|||||||
Reference in New Issue
Block a user