mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-26 13:27:52 +03:00
60c1301fca
Snapping a line to a point before splitting was meant to ensure that the split point is really on the line. However, ST_Snap() does not always behave well for this case. It may shorten the interpolation line in some cases with the result that two points housenumbers suddenly fall on the same point. It might also shorten the line down to a single point which then makes ST_Split() crash. Switch to a combination of ST_LineLocatePoint and ST_LineSubString instead, which guarantees to keep the original geometry. Explicitly handle the corner cases, where the split point falls on the beginning or end of the line. |
||
---|---|---|
.. | ||
functions | ||
tokenizer | ||
functions.sql | ||
indices.sql | ||
partition-tables.src.sql | ||
postcode_tables.sql | ||
table-triggers.sql | ||
tables.sql | ||
tiger_import_finish.sql | ||
tiger_import_start.sql |