bdd: remove support for scenes

Only keep support for the special point geometry 'country:xx'.
This commit is contained in:
Sarah Hoffmann
2022-06-17 10:06:56 +02:00
parent 6c58a4c46c
commit d8623d6818
23 changed files with 16 additions and 1455 deletions

View File

@@ -165,7 +165,7 @@ class DBRow:
return Almost(float(x)) == self.db_row['cx'] and Almost(float(y)) == self.db_row['cy']
def _has_geometry(self, expected):
geom = self.context.osm.parse_geometry(expected, self.context.scene)
geom = self.context.osm.parse_geometry(expected)
with self.context.db.cursor() as cur:
cur.execute("""SELECT ST_Equals(ST_SnapToGrid({}, 0.00001, 0.00001),
ST_SnapToGrid(ST_SetSRID('{}'::geometry, 4326), 0.00001, 0.00001))""".format(