Hi all
I have loaded a full planet import into Postgres and I am coming across occurrences where some multipolygons are not getting imported into the planet_osm_polygons table. They do however exist in the planet_osm_rels table
This is my import command: (version 0.96 - style sheet is default)
osm2pgsql -v -l --unlogged --create --slim -C 50000 --number-processes 6 --multi-geometry --flat-nodes planet.nodes --extra-attributes -S /usr/local/share/osm2pgsql/default_timestamp_version.style --hstore -d osm_planet -U osm planet-latest.osm.pbf
An example of a Multipolygon that isn’t getting imported is here (but we have come across several others):
https://www.openstreetmap.org/relation/3923874#map=19/28.37060/-81.55709
➤ psql://postgres@myosmtest.co.uk:5432/osm_planet
# select * from planet_osm_rels where id = 3923874 ;
│ id │ 3923874
│ way_off │ 0
│ rel_off │ 6
│ parts │ {295168237,295168242,295168243,295166640,295166202,295166639}
│ members │ {w295168237,outer,w295168242,inner,w295168243,inner,w295166640,inner,w295166202,inner,w295166639,inner} │
│ tags │ {lit,yes,type,multipolygon,highway,pedestrian,surface,paved,osm_user,Memoire,osm_uid,2176227,osm_version,5,osm_timestamp,2017-05-13T19:57:53Z,osm_changeset,48658396} │
I have checked the lines, roads & polygons tables and the features are not getting created in any of these tables. Can anyone spot anything simple I have missed? Or is this a problem with osm2pgsql? There are many Multipolygons successfully imported - but quite a few simply don’t get created.
Is this something to do with “old style” multipolygons? if so, how do I get these to import correctly?
Any help appreciated!
Thanks,
Mike