Hello
I started using OSM data and I need to extract information osm file. I find OSOMIS http://wiki.openstreetmap.org/wiki/Osmosis/Installation. But I show that I have a problem even though I followed the steps in tutorial
wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
tar xvfz osmosis-latest.tgz
cd-osmosis *
chmod a + x bin / osmosis
bin / osmosi
Export JAVACMD_OPTIONS =-Xmx2G
But always I can not execut the extraction command
bzcat France.osm.bz2 | osmosis \ --read-xml enableDateParsing=no file=-\ --bounding-box top=48.4615 left=-4.5665 bottom=48.3562 right=-4.4474 --write-xml file=-\ --write-xml file=- | bzip2 > ville.osm.bz2
And it dispaly this error
GRAVE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Expected argument 1 to be an option or task name.
at org.openstreetmap.osmosis.core.cli.CommandLineParser.parse(CommandLineParser.java:94)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:74)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:328)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
I will be very happy if you help me.