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

Hi

I have several troubles when running Osmosis:

1 - when I run osmosis --read-xml file="map1.osm" --bounding-box top=47.3532684 left=-1.9217581 bottom=47.1023462 right=-1.3584780 --way-key-value keyValueList="railway.tram"  --write-xml file="map2-tram.osm"

Osmosis will make a huge file of more than 300 Mb with any ways and nodes instead of only trams. If i add the --used-node option, i will get a rather smaller file of 27 Gb but with ton of useless nodes likes bus stops or elevation points, speed cameras, street numbers...... While I only want tram routes and stops... There are only 3 to be imported, so I should get a small 3 mb file.

I have same problem with highways.

2 - If I run the command osmosis --read-xml file="map1.osm" --bounding-box top=47.3532684 left=-1.9217581 bottom=47.1023462 right=-1.3584780 --tf accept-ways railway=tram,tram_stop --tf reject-ways railway=* --used-node --write-xml file="map2-highways.osm" I will not get better job. It will import me everything instead of tramway routes only...

3 - If I do it in 2 steps, first extracting the bounding box, then the tags I will get the following error "org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type way-key-value?keyValueList=railway.tram,railway.tram_stop, railway.rail doesn't exist." ! They do exist I made a fast import in QGIS and saw there were railways in the file itself....

4 - If I do the same but with nodes only this time, i dn't know, like restaurants for example, it works perfectly. osmosis --read-xml file="map1.osm" --bounding-box top=47.3532684 left=-1.9217581 bottom=47.1023462 right=-1.3584780 --node-key-value keyValueList="amenity.restaurant,amenity.fast_food" --write-xml file="map2-restaurant.osm"

Mac OS X 10.6.8 / Osmosis 0.40.1

org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type version doesn't exist. at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactoryRegister.getInstance(TaskManagerFactoryRegister.java:60) at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:50) at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112) at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86) at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

asked 26 Mar '12, 15:10

Rick75's gravatar image

Rick75
1112
accept rate: 0%

edited 26 Mar '12, 20:19

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:

×252

question asked: 26 Mar '12, 15:10

question was seen: 2,492 times

last updated: 26 Mar '12, 20:19

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