X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/2d6f00945ab433f51be5df0576625e29d5b6300c..dd97528726152e8f4e47aa6433acc30e94198644:/sql/postgis_20_aux.sql 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;