Skip to content

Use spheroid instead of sphere for spherical_area()#2470

Merged
lonvia merged 1 commit into
osm2pgsql-dev:masterfrom
joto:spheroid-area
May 17, 2026
Merged

Use spheroid instead of sphere for spherical_area()#2470
lonvia merged 1 commit into
osm2pgsql-dev:masterfrom
joto:spheroid-area

Conversation

@joto
Copy link
Copy Markdown
Collaborator

@joto joto commented May 16, 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

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
@lonvia lonvia merged commit 88b317f into osm2pgsql-dev:master May 17, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants