]> git.openstreetmap.org Git - nominatim.git/commit
use line interpolation to create centroid for lines
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 3 Nov 2024 16:46:06 +0000 (17:46 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 3 Nov 2024 21:06:36 +0000 (22:06 +0100)
commitad50016c498098d0f0850c3a9de60623a3bd7e1f
tree1f18a631f27e997417187d56514693f566b0bbfe
parentb9e4563bebaf2b2bfba5440001b4b5750eaebe43
use line interpolation to create centroid for lines

ST_PointOnSurface always returns one of the vertices of a line.
This means that a two-point line will have the centroid at
one of the ends, which is less then ideal.
lib-sql/functions/interpolation.sql
lib-sql/functions/placex_triggers.sql
lib-sql/functions/utils.sql