X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/c70dfccacac90a90bfc193f49262abe7505d7d75..78f839fbd3ccc623b64895059b440e355c06c7c3:/test/bdd/steps/geometry_factory.py diff --git a/test/bdd/steps/geometry_factory.py b/test/bdd/steps/geometry_factory.py index 19c0406c..504227b3 100644 --- a/test/bdd/steps/geometry_factory.py +++ b/test/bdd/steps/geometry_factory.py @@ -2,13 +2,11 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2022 by the Nominatim developer community. +# Copyright (C) 2025 by the Nominatim developer community. # For a full list of authors see the git log. -from pathlib import Path -import os - from steps.geometry_alias import ALIASES + class GeometryFactory: """ Provides functions to create geometries from coordinates and data grids. """ @@ -47,7 +45,6 @@ class GeometryFactory: return "ST_SetSRID('{}'::geometry, 4326)".format(out) - def mk_wkt_point(self, point): """ Parse a point description. The point may either consist of 'x y' coordinates or a number @@ -65,7 +62,6 @@ class GeometryFactory: assert pt is not None, "Scenario error: Point '{}' not found in grid".format(geom) return "{} {}".format(*pt) - def mk_wkt_points(self, geom): """ Parse a list of points. The list must be a comma-separated list of points. Points @@ -73,7 +69,6 @@ class GeometryFactory: """ return ','.join([self.mk_wkt_point(x) for x in geom.split(',')]) - def set_grid(self, lines, grid_step, origin=(0.0, 0.0)): """ Replace the grid with one from the given lines. """ @@ -87,7 +82,6 @@ class GeometryFactory: x += grid_step y += grid_step - def grid_node(self, nodeid): """ Get the coordinates for the given grid node. """