This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Osmfilter not recognising .osm file

0

hi, I converted a .pbf file to a .osm file using osmconvert, however when I go to use osmfilter it does not recognise the file. I know the file works because I have opened it in JOSM and it functions perfectly.

Below is the error and command: ./osmfilter DC.osm --keep="highway=primary =secondary waterway=river natural=peak place=city =town boundary=national_park =adminstrative border_type=state admin_level=4 amenity=university" >DC-sorted.osm osmfilter Error: unknown file format: DC.osm

asked 01 Mar '21, 16:15

BinaryEarth's gravatar image

BinaryEarth
11112
accept rate: 0%

The command you use seems OK, maybe you should share your files somewhere for us to reproduce the issue?

(03 Mar '21, 05:42) yvecai

Source code available on GitHub .