On 12 September 2012 08:20, Jean-Michel Hélary < [email protected]> wrote:
> Le 11/09/2012 23:30, Igor Podolskiy a écrit : > > Hi Jean-Michel, > > I'm new on this mailing list, but I've been using osmosis during one > year now. > > Presently, I'm using osmosis 0.41 to extract a bounding box from a pbf > file (downloaded from geofabrik). I'm using the following command : > > osmosis --read-pbf file="languedoc-roussillon.osm.pbf" --bounding-box > top=43.70 left=3.7792bottom=43.5292 right=3.98 --write-xml > file="new-montpellier.osm" > > but it fails (GRAVE :execution aborted) and throws the following > exception : org.openstreetmap.osmosis.core.OsmosisRuntimeException: > *Argument 1 specifies an unrecognized option*. > > could you please post the full error output (with stack trace) so we can > see where the exception originates? > > Bye > Igor > > Hi Igor, > > Here is the full output : > > > C:\maperitive\MesCartes>C:\osmosis-latest\osmosis-0.41\bin\osmosis > --read-pbf file="languedoc-roussillon.osm.pbf" > --bounding-box top=43.70 left=3.7792 bottom=43.5292 right=3.98 --write-xml > file="new-montpellier.osm" > 12 sept. 2012 00:08:49 org.openstreetmap.osmosis.core.Osmosis main > GRAVE: Execution aborted. > > org.openstreetmap.osmosis.core.OsmosisRuntimeException: Argument 1 > specifies an > unrecognised option. > at > org.openstreetmap.osmosis.core.cli.CommandLineParser.parse(CommandLineParser.java:92) > 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(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > 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) > That error is caused by passing a single "-" option to Osmosis. Single hyphen options specify global options such as "-v" or "-q" that aren't related to specific tasks. Is it possible that you have a osmosis.bat file somewhere under your home directory that is passing additional options to Osmosis? I don't have access to a Windows machine right now to validate your command line. It seems to work fine under Linux. Brett
_______________________________________________ osmosis-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/osmosis-dev
