[osmosis-dev] Error when trying run Osmosis script

Adityo Dwijananto adityo.dwijananto at gmail.com
Thu Jan 15 08:01:30 UTC 2015


Hi All,

i'm trying to using osmosis to update my database with osm changeset. But
when i try to run this script:

*~/osmosis-latest$ sudo bin/osmosis --read-xml-change
file="~/osmchangeset/674.osm" --write-pgsql user="osmuser" database="osm"
password="osmuser"*

I got an error like this:

Jan 15, 2015 2:44:10 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.43.1
> Jan 15, 2015 2:44:10 PM org.java.plugin.registry.xml.ManifestParser <init>
> INFO: got SAX parser factory -
> org.apache.xerces.jaxp.SAXParserFactoryImpl at 4b40de18
> Jan 15, 2015 2:44:10 PM org.java.plugin.registry.xml.PluginRegistryImpl
> configure
> INFO: configured, stopOnError=false, isValidating=true
> Jan 15, 2015 2:44:11 PM org.java.plugin.registry.xml.PluginRegistryImpl
> register
> INFO: plug-in and fragment descriptors registered - 1
> Jan 15, 2015 2:44:11 PM org.java.plugin.standard.StandardPluginManager
> activatePlugin
> INFO: plug-in started -
> org.openstreetmap.osmosis.core.plugin.Core at 0.0.0.42-6-gf39a160-dirty
> Jan 15, 2015 2:44:11 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Jan 15, 2015 2:44:11 PM org.openstreetmap.osmosis.core.Osmosis main
> SEVERE: Execution aborted.
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task 2-write-pgsql
> does not support data provided by default pipe stored at level 1 in the
> default pipe stack.
>         at
> org.openstreetmap.osmosis.core.pipeline.common.PipeTasks.retrieveTask(PipeTasks.java:157)
>         at
> org.openstreetmap.osmosis.core.pipeline.common.TaskManager.getInputTask(TaskManager.java:165)
>         at
> org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager.connect(SinkManager.java:50)
>         at
> org.openstreetmap.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:74)
>         at
> org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:116)
>         at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
>         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:606)
>         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)


I'm using Ubuntu 14.04 server with Postgres 9.3 and postgis 2.1.2. I tried
to use both simple schema and snapshot schema but it's always got an error
like i mention above. Can someone help me? Thanks

Regards,

Adityo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20150115/db04f56a/attachment.html>


More information about the osmosis-dev mailing list