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
asked 26 Mar '12, 15:10 Rick75 |