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

I want to filter the data for a particular .osm file by highway, name, tiger:county, tiger:zip_left and tiger:zip_right. I've tried osmfilter,but it doesn't quite seem to work the way I want it to. I used it to just filter highway=residential, but when I look at the data it brings back data where highway is not residential. Also, I want to filter where the fields for highway, name, and tiger:county are absolutely populated and either one of zip_left must be populated. Any thoughts on how to do this with osmfilter?

asked 18 Sep '12, 04:08

JMB5's gravatar image

JMB5
16334
accept rate: 0%

1

It is always helpful to show us the osmfilter call(s) you have tried so far.

(18 Sep '12, 06:37) scai ♦

You can try with osmosis. You should get the residential highways wich such a command:

osmosis --rx input.osm --tf accept-ways highway=residential --used-node --wx highway.residential.osm

permanent link

answered 18 Sep '12, 08:14

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

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

question asked: 18 Sep '12, 04:08

question was seen: 3,368 times

last updated: 18 Sep '12, 08:14

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