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/[email protected]>
_______________________________________________ Tile-serving mailing list [email protected] https://lists.openstreetmap.org/listinfo/tile-serving
