rustprooflabs / pgosm-flex

PgOSM Flex provides high quality OpenStreetMap datasets in PostGIS (Postgres) using the osm2pgsql Flex output.
MIT License
101 stars 20 forks source link

Update layers to use new multilinestring functionality #253

Closed rustprooflabs closed 2 years ago

rustprooflabs commented 2 years ago

Tested fix in https://github.com/openstreetmap/osm2pgsql/issues/1386 for #2. It's working!

The D.C. test file with commit 117802c1db2c8e2daab7ca2fdecc47baf3adadc2 returns multilinestrings!

SELECT ST_NumGeometries(geom), COUNT(*)
    FROM osm.road_line
    GROUP BY 1
    ORDER BY 1
;
┌──────────────────┬───────┐
│ st_numgeometries │ count │
╞══════════════════╪═══════╡
│                1 │ 34635 │
│                2 │     1 │
│                3 │     1 │
│                4 │     1 │
│                6 │     3 │
│               10 │     1 │
│               12 │     1 │
│               15 │     1 │
│               32 │     1 │
└──────────────────┴───────┘
rustprooflabs commented 2 years ago

Added multilinestring handling to:

Add relation processing (multilinestring and multipolygon) to: