I have managed to extract some highway types out of an .osm file and when I display it in Quantum GIS it splits it into lines, points and polygons. Being roads I only need lines, but with points checked, I get thousands of points across the map. I have had a look and Quantum GIS reads type=polygon or type=line etc. Is there anyway to only include type=line when extracting data through osmosis? asked 20 Jun '12, 11:29 stuart576 |
I'm not an osmosis expert but checking quickly the detailed usage on the wiki says that you can filter ways on a tag list ("--tag-filter") with the option 'accept-ways'. Example from the wiki:
answered 20 Jun '12, 12:49 Pieren have tried adding --tf reject-ways type=point,polygon to my script but it makes no difference
(20 Jun '12, 13:26)
stuart576
2
Right I have solved this, after reading up on nodes and ways. "...a node will normally have at least one tag to define it's purpose or be part of a Relation and may have multiple tags." From this I realised that the points were only relations to highway tags. So I added "--tf reject-relations" and voila! Thanks for the guidance Pieren.
(20 Jun '12, 13:35)
stuart576
@stuart576, I'm having trouble with this. Can you update with the complete solution that worked for you?
(07 Oct '15, 02:25)
mkirk
|