fix geometry creation from scene

This commit is contained in:
Sarah Hoffmann 2017-02-26 16:40:51 +01:00
parent e5c79a1d1f
commit e1095205e4

View File

@ -153,8 +153,9 @@ class OSMDataFactory(object):
def parse_geometry(self, geom, scene):
if geom.find(':') >= 0:
out = "POINT(%s)" % self.get_scene_geometry(scene, geom)
elif geom.find(',') < 0:
return "ST_SetSRID(%s, 4326)" % self.get_scene_geometry(scene, geom)
if geom.find(',') < 0:
out = "POINT(%s)" % self.mk_wkt_point(geom)
elif geom.find('(') < 0:
line = ','.join([self.mk_wkt_point(x) for x in geom.split(',')])