According to this question Some OSM tags in polygons and some in points - how to bring them together I used osmconvert --all-to-nodes
to extract the central points of all ways and relations.
I used a osm.pbf as input:
osmconvert osm.pbf --all-to-nodes -o=osm_node.pbf
...or with increasing id:
osmconvert osm.gpkg --all-to-nodes --object-type-offset=10^15 -o=osm_node.pbf
and translated the resulting osm_node.pbf to GPKG with ogr2ogr.
The result is:
The resulting GPKG should have a lot more nodes as the raw data has. But it hasn't...
What am I doing wrong?
ogrinfo -al -so osm.pbf
? Do you know if--all_to_nodes
transfers all tags unaltered to the new points? – user30184 May 24 '19 at 6:49ogrinfo -al -so osm.pbf
for both files (RAW and Nodes) is: Feature Count: -1 for every geometry and relation... – MAP May 24 '19 at 7:15