Hello, I want to filter anything from a OSM file without a name, as I noticed there is alot of unnamed data in the planet files and I don't need them for my particular project. I thought I could achieve this with --keep="name=" with osmfilter.exe unfortunately, when I imported the data into a DB I found I still have data with no names. (using osm2pgsql) Am I doing this wrong or is there a better way to do this?

asked 08 Jul '16, 22:00

AwDogsGo2Heaven's gravatar image

AwDogsGo2Heaven
11112
accept rate: 0%

Hi, have you managed to solve this, please?

(01 Nov, 15:58) fofo

Without seeing the entire command being used, it's impossible to tell what's happening.

That being said, it may be doing exactly what you want. Keep in mind that even when you do this, you'll most likely still have some objects with no name because those objects are part of a higher-level object. For example, if you keep a highway with a name, the unnamed nodes that compose that way will also be present in the results. Likewise, if you keep a relation describing the boundary of a country, you'll also get the unnamed ways that create that boundary (as well as the unnamed nodes that compose each of those ways). Therefore, unless you're working solely with nodes, you're probably going to have lots of unnamed objects in your results.

permanent link

answered 01 Nov, 16:36

alester's gravatar image

alester
5.2k25578
accept rate: 28%

Your answer
toggle preview

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:

×211
×43

question asked: 08 Jul '16, 22:00

question was seen: 1,439 times

last updated: 01 Nov, 16:36

powered by OSQA