This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Data disappearing in Osmosis Tag Filter (power=line)

0

Hello everybody,

I like to make a map of the electricity grid like this one: http://www.itoworld.com/map/4 Therefore I use data provided by geofabrik

For the data processing in use osmosis with the command: osmosis --rb C:...\germany-latest.osm.pbf --tf accept-ways power=line --tf accept-relations --used-node --wx C:...\line_GER.osm

In general it is worling fine, but sometimes lines are missing. For example this line https://www.openstreetmap.org/browse/way/207246060 Is dissapering after using osmosis. Meanwhile this line can be seen in the ITO map I also downloaded the region, without using any filter, but the result was the same...

My question is if I´m using wrong data or if osmosis is responsible for the problem?

I hope my problem is stated clearly. Than kyou in advance

asked 19 May '13, 19:02

titalo's gravatar image

titalo
11112
accept rate: 0%

edited 19 May '13, 22:04

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

1

What version of Osmosis are you using?

(19 May '13, 22:04) Frederik Ramm ♦
1

Im using version 0.43 of osmosis

(20 May '13, 08:00) titalo

2 Answers:

0

I have no clue why osmosis fails in this task,

but have you tried Osmfilter already?

Maybe you can avoid the missing of data by using that tool.

answered 22 May '13, 16:04

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

edited 29 May '13, 19:03

0

Osmosis has a default tag mapping/filtering, It may be that the power line is missing a crucial tag which instruct Osmosis to include it in the output map.

look at: https://code.google.com/p/mapsforge/wiki/GettingStartedMapWriter#Defining_a_Custom_Tag_Mapping_via_XML

Rabin

answered 28 May '13, 11:27

shahav's gravatar image

shahav
111
accept rate: 0%

edited 28 May '13, 11:28

Source code available on GitHub .