Janko,
Note that you downloaded osmosis-0.40.1, but when you run your command
you see INFO: Osmosis Version 0.34. I think you are not running the
script called 'osmosis' in your current working directory, but one
installed in a different directory.
Try using "./osmosis" instead of just "osmosis" at the beginning of your
command line to specify "the osmosis program in the current directory".
-Andrew
On 12/11/2011 07:02 PM, Janko Mihelić wrote:
I am using a live CD (new to linux) and now I've restarted to a totally
new system (Linux Mint 11). Downloaded the newest version, installed,
and this is the whole log after the command:
mint@mint ~/Downloads/osmosis-0.40.1/bin $ osmosis --read-xml
file="croatia.osm" --tag-filter accept-relations ref=D1 --used-way
--used-node --write-xml output.osm
Dec 11, 2011 5:43:13 PM org.openstreetmap.osmosis.core.Osmosis run
log4j:WARN No appenders could be found for logger
(org.java.plugin.ObjectFactory).
log4j:WARN Please initialize the log4j system properly.
Dec 11, 2011 5:43:13 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Dec 11, 2011 5:43:13 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: *Task type
used-way 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:79)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
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: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)
2011/12/11 Andrew Byrd <[email protected] <mailto:[email protected]>>
I just tried the command, and the version of Osmosis you downloaded
does provide the used-way filter. This could just be a path issue --
are you sure you are runing the new version you just downloaded and
not an older one (pre-0.39) that is installed elsewhere on your system?
-Andrew
On 12/11/2011 05:17 PM, Janko Mihelić wrote:
I found this argument on several places on the net, but it
refuses to
work for me. Is there something else I should do first? The whole
command goes like this:
osmosis --read-xml file="croatia.osm" --tag-filter accept-relations
ref=D1 --used-way --used-node --write-xml output.osm
And it says: Task type used-way doesn't exist.
It works for other cases, when used-way isn't in.
I downloaded osmosis from this link:
http://bretth.dev.__openstreetmap.org/osmosis-__build/osmosis-latest.tgz
<http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz>
version 0.40.1
What am I doing wrong?
Janko
_________________________________________________
osmosis-dev mailing list
[email protected] <mailto:[email protected]>
http://lists.openstreetmap.__org/listinfo/osmosis-dev
<http://lists.openstreetmap.org/listinfo/osmosis-dev>
_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev