X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2d6f00945ab433f51be5df0576625e29d5b6300c..64883cc917c312908c3c04c6d1ed423181d26c8a:/sql/postgis_20_aux.sql?ds=inline 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;