Never mind, I found what was causing the problem.
Since I was not using the .bat file, the java variables were not set,
which meant that Osmosis couldn't find the postgis object. Sorry about
that.

Emilie Laffray

On Mon, Mar 2, 2009 at 1:33 PM, Emilie Laffray <[email protected]> wrote:
> Hello,
>
> I am trying to use the linestring builder functionality of Osmosis but
> I am getting the following error:
>
> java.lang.NoClassDefFoundError: org/postgis/Geometry
>        at 
> com.bretth.osmosis.core.pgsql.v0_6.PostgreSqlDatasetDumpWriterFactory
> .createTaskManagerImpl(PostgreSqlDatasetDumpWriterFactory.java:49)
>        at 
> com.bretth.osmosis.core.pipeline.common.TaskManagerFactory.createTask
> Manager(TaskManagerFactory.java:60)
>        at 
> com.bretth.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.
> java:50)
>        at 
> com.bretth.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.jav
> a:112)
>        at com.bretth.osmosis.core.Osmosis.run(Osmosis.java:79)
>        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:30)
> Caused by: java.lang.ClassNotFoundException: org.postgis.Geometry
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>        ... 6 more
>
> I have downloaded the latest from a few days ago. I am wondering if I
> missed something obvious. My command line is the following:
> java -Xmx1g -jar e:\osmosis-0.30\osmosis.jar --read-xml-0.6
> file="E:\world\dump\roads\road-test.osm.gz" --log-progress-0.6
> interval="20" --write-pgsql-dump-0.6
> directory="E:\world\dump\roads\pgsql" enableLinestringBuilder="yes"
> nodeLocationStoreType="TempFile"
>
> Thank you in advance,
> Emilie Laffray
>

_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to