[Tile-serving] [osm2pgsql-dev/osm2pgsql] Use spheroid instead of sphere for spherical_area() (PR #2470)
Jochen Topf
notifications at github.com
Sat May 16 09:22:43 UTC 2026
Use spheroid instead of sphere for spherical_area() calculation. This might be a bit more expensive to calculate but is nearer to the default that PostGIS ST_Area returns when called with a geography and no parameter. The old behaviour was using the use_spheroid = false version of ST_Area.
See https://postgis.net/docs/manual-3.5/ST_Area.html
You can view, comment on, or merge this pull request online at:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2470
-- Commit Summary --
* Use spheroid instead of sphere for spherical_area()
-- File Changes --
M src/geom-functions.cpp (10)
M tests/test-geom-linestrings.cpp (2)
M tests/test-geom-multilinestrings.cpp (3)
M tests/test-geom-multipoints.cpp (4)
M tests/test-geom-multipolygons.cpp (4)
M tests/test-geom-null.cpp (3)
M tests/test-geom-points.cpp (1)
M tests/test-geom-polygons.cpp (6)
-- Patch Links --
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2470.patchhttps://github.com/osm2pgsql-dev/osm2pgsql/pull/2470.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2470
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2470 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260516/7621e2ce/attachment.htm>
More information about the Tile-serving
mailing list