From e1095205e41ebfb2ff18bd5479c7b020c0ad4db7 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 26 Feb 2017 16:40:51 +0100 Subject: [PATCH] fix geometry creation from scene --- test/bdd/environment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/bdd/environment.py b/test/bdd/environment.py index a1a9c0bd..509250e9 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -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(',')])