[Tile-serving] [osm2pgsql-dev/osm2pgsql] Point along line like the "centroid" of a linestring (Discussion #2469)

Tobias notifications at github.com
Fri May 15 20:22:15 UTC 2026


Sometimes I simplify lines to just points (for minimal QA/debug info) or add points as well as the lines (for labels)

Right now I use the [`:centorid()`](https://osm2pgsql.org/doc/manual.html#geometry-objects-in-lua) for this.
However, when the lines are non-straight, those points don't end up on the line.

It would be nice if there where a pendant to `:centorid()` for lines or an along ([Turf](https://turfjs.org/docs/api/along)) helper to set it 50% of the way.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2469
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2469 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260515/1fddd906/attachment.htm>


More information about the Tile-serving mailing list