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

Reply via email to