[Tile-serving] [openstreetmap/osm2pgsql] Add spherical_area() function (PR #2019)

Jochen Topf notifications at github.com
Sat Jul 29 12:58:41 UTC 2023


To calculate the "real" area of a (multi)polygon. This is still an approximation. Results are similar to what ST_Area(geography, false) calculates in PostGIS. Accessible from Lua.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/2019

-- Commit Summary --

  * Add spherical_area() function

-- File Changes --

    M flex-config/geometries.lua (11)
    M src/flex-lua-geom.cpp (19)
    M src/geom-functions.cpp (38)
    M src/geom-functions.hpp (11)
    M tests/test-geom-multipolygons.cpp (4)
    M tests/test-geom-polygons.cpp (7)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/2019.patch
https://github.com/openstreetmap/osm2pgsql/pull/2019.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2019
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/2019 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230729/f33cb2b0/attachment.htm>


More information about the Tile-serving mailing list