0

I have a large OpenStreetMap .pbf history file. How do I know if this file has a specific attribute such as a name or version number? Or, in general, the number of feature attributes in this file.

1

I guess osmium-tool is the best program for that. It is a powerful commandline tool for working with OpenStreetMap data. It should definitely work with OSM files of any size.

An alternative could be osmosis, however not sure if it is still maintained.

A more hackerish solution would be to import your OSM file in PostGIS using osm2pgsql, imposm or ogr2ogr and then analyze the data inside the database.

If your OSM file is not too big, you could also try to open it with QGIS.

2
  • 1
    osmium-tool itself is not a library but a standalone binary that it is based on a library called libosmium. osmium-tool offers filter capabilities. – mmd Dec 5 '19 at 10:26
  • yes true! I will correct – Jakob Miksch Dec 5 '19 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.