NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×60
×47

question asked: 01 Mar '21, 16:15

question was seen: 694 times

last updated: 03 Mar '21, 09:03

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum