[Tile-serving] [osm2pgsql-dev/osm2pgsql] Add spherical_length() function to geometries in Lua (PR #2474)
Jochen Topf
notifications at github.com
Sun May 17 11:13:49 UTC 2026
For linestrings and multilinestrings this returns the same value as the PostGIS ST_Length() function on a geography. For other geometry types this always returns 0.0.
You can view, comment on, or merge this pull request online at:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2474
-- Commit Summary --
* Add spherical_length() function to geometries in Lua
-- File Changes --
M src/flex-lua-geom.cpp (20)
M src/geom-functions.cpp (37)
M src/geom-functions.hpp (11)
M tests/bdd/flex/geometry-linestring.feature (12)
M tests/test-geom-linestrings.cpp (23)
M tests/test-geom-multilinestrings.cpp (3)
M tests/test-geom-multipoints.cpp (1)
M tests/test-geom-multipolygons.cpp (1)
M tests/test-geom-null.cpp (1)
M tests/test-geom-points.cpp (1)
M tests/test-geom-polygons.cpp (1)
-- Patch Links --
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2474.patchhttps://github.com/osm2pgsql-dev/osm2pgsql/pull/2474.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2474
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2474 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260517/adab78cd/attachment-0001.htm>
More information about the Tile-serving
mailing list