X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2d6f00945ab433f51be5df0576625e29d5b6300c..0f2173f81b4121594c6f6497b34aafae92b04703:/sql/postgis_20_aux.sql?ds=sidebyside diff --git a/sql/postgis_20_aux.sql b/sql/postgis_20_aux.sql index dc74e093..749e2a43 100644 --- a/sql/postgis_20_aux.sql +++ b/sql/postgis_20_aux.sql @@ -4,7 +4,7 @@ CREATE OR REPLACE FUNCTION split_line_on_node(line GEOMETRY, point GEOMETRY) RETURNS GEOMETRY AS $$ BEGIN - RETURN ST_Split(line, ST_ClosestPoint(line, point)); + RETURN ST_Split(ST_Snap(line, point, 0.0005), point); END; $$ LANGUAGE plpgsql;