X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6551399bcc3ee347953aebdc586f167f63687330..2c6b17f772fec2db0a8a8bac7462efecef92337e:/test/bdd/environment.py diff --git a/test/bdd/environment.py b/test/bdd/environment.py index a1a9c0bd..58494deb 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -40,6 +40,7 @@ class NominatimEnvironment(object): def write_nominatim_config(self, dbname): f = open(self.local_settings_file, 'w') f.write("= 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(',')])