Why not ask your question on the new OpenStreetMap Community Forum?

I am looking to extract only the nodes and ways on streets in my city, I have been looking for methods to do this but I am quite new to programming and do not know where to start reading. Can somebody please point me in the right direction? Thanks very much

asked 10 Jul '12, 18:49

somedude's gravatar image

accept rate: 0%

First get your just your city. If your city is one of these, then it's very easy. Otherwise see the various options on downloading data page

Then filter by highway tag. You might do this with an Osmosis tag filter

osmosis \
  --read-xml input.osm \
  --tf accept-ways highway=* \ 
  --tf reject-relations \
  --used-node \
  --write-xml output.osm

Or other filtering tools are available.

permanent link

answered 11 Jul '12, 01:25

Harry%20Wood's gravatar image

Harry Wood
accept rate: 14%

(12 Jul '12, 16:55) stephan75
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 10 Jul '12, 18:49

question was seen: 6,173 times

last updated: 17 Sep '12, 14:06

powered by OSQA