[Tile-serving] [openstreetmap/osm2pgsql] Geometry processing improvements (PR #1705)

Jochen Topf notifications at github.com
Tue Jul 26 15:59:50 UTC 2022


These are a whole bunch of changes improving the geometry processing code in several places, fixing a few bugs, adding tests.

This adds boost::geometry as a new dependency.

This code ist mostly not used yet but will be integrated into the flex output geometry processing code.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add num_geometries() function to all geometry types
  * Complete WKB writer implementation with support for all types
  * Add missing WKB MultiPoint parser implementation
  * Add WKB geometry collection parser and more WKB tests
  * Refactored point_list_t, linestring_t, ring_t
  * Add adaptor making boost::geometry work with our geometry classes
  * Add num_geometries(), geometry_type(), and centroid() functions
  * Add polygon tests, fix area() function

-- File Changes --

    M .github/actions/win-install/action.yml (2)
    M README.md (3)
    A src/geom-boost-adaptor.hpp (84)
    M src/geom-functions.cpp (44)
    M src/geom-functions.hpp (21)
    M src/geom.cpp (12)
    M src/geom.hpp (97)
    M src/wkb.cpp (207)
    M tests/CMakeLists.txt (5)
    R tests/test-geom-lines.cpp (46)
    A tests/test-geom-null.cpp (24)
    A tests/test-geom-points.cpp (86)
    A tests/test-geom-polygons.cpp (68)
    M tests/test-wkb.cpp (97)

-- Patch Links --

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

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

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


More information about the Tile-serving mailing list