Hi all,
I'm trying to get Osmosis to apply a change file to a data set, although I
think I am following the instructions on the wiki it throws an error...
"Task 3-apply-change does not support data provided by default pipe"

Example is below, where I have 'upgraded' a village to a city (don't worry
this is just a test).

Any suggestions?
Simon.
---
[EMAIL PROTECTED] ~/Desktop/osmosis-latest/osmosis-0.28
$ java -jar osmosis.jar  --read-xml file="village_changed.xml" --read-xml
file="village.xml" --derive-change --write-xml-change file="test.osc"
Jun 9, 2008 7:11:03 PM com.bretth.osmosis.core.Osmosis main
INFO: Osmosis Version 0.28
Jun 9, 2008 7:11:03 PM com.bretth.osmosis.core.Osmosis main
INFO: Preparing pipeline.
Jun 9, 2008 7:11:03 PM com.bretth.osmosis.core.Osmosis main
INFO: Launching pipeline execution.
Jun 9, 2008 7:11:03 PM com.bretth.osmosis.core.Osmosis main
INFO: Pipeline executing, waiting for completion.
Jun 9, 2008 7:11:03 PM com.bretth.osmosis.core.Osmosis main
INFO: Pipeline complete.

[EMAIL PROTECTED] ~/Desktop/osmosis-latest/osmosis-0.28
$ cat test.osc
<?xml version='1.0' encoding='UTF-8'?>
<osmChange version="0.5" generator="Osmosis 0.28">
  <modify version="0.5" generator="Osmosis 0.28">
    <node id="29700271" timestamp="2007-05-28T07:52:07Z" user="Jason Reid"
lat="51.4270111" lon="-114.2789537">
      <tag k="name" v="Madden"/>
      <tag k="place" v="city"/>
    </node>
  </modify>
</osmChange>

[EMAIL PROTECTED] ~/Desktop/osmosis-latest/osmosis-0.28
$ java -jar osmosis.jar  --read-xml file="village.xml" --read-xml-change
file="test.osc" --apply-change --write-xml file="village_rechanged.xml"
Jun 9, 2008 7:11:13 PM com.bretth.osmosis.core.Osmosis main
INFO: Osmosis Version 0.28
Jun 9, 2008 7:11:13 PM com.bretth.osmosis.core.Osmosis main
INFO: Preparing pipeline.
Jun 9, 2008 7:11:13 PM com.bretth.osmosis.core.Osmosis main
SEVERE: Execution aborted.
com.bretth.osmosis.core.OsmosisRuntimeException: Task 3-apply-change does
not support data provided by default pipe stored at level 2 in the default
pi
pe stack.
        at
com.bretth.osmosis.core.pipeline.common.PipeTasks.retrieveTask(PipeTasks.java:154)
        at
com.bretth.osmosis.core.pipeline.common.TaskManager.getInputTask(TaskManager.java:164)
        at
com.bretth.osmosis.core.pipeline.v0_5.MultiSinkMultiChangeSinkRunnableSourceManager.connect(MultiSinkMultiChangeSinkRunnableSourceManager.ja
va:60)
        at
com.bretth.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:69)
        at
com.bretth.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:111)
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:49)



_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

Reply via email to