[osmosis-dev] OSMOSIS --tag-transform: plugin

Markus Freyt markus.freyt at gmail.com
Thu Dec 3 09:19:46 GMT 2009


Hi,

meanwhile I have changed my osmosis.bat to reflect alll classes. Also I have adjusted the OSMOSIS_OPTION without quotes.
See what osmosis.bat is finally generating below.
Also I have tried to run the plugin with latest version, with 0.31.3 and also with 0.30. 
Unfortunately it is still not working on my windows machine....

Any help appreciated  Many thanks.

Markus


java  -cp C:\Osmosis-dev\osmosis.jar;C:\Osmosis-dev\lib\default\aopalliance-1.0.
jar;C:\Osmosis-dev\lib\default\bzip2-20090327.jar;C:\Osmosis-dev\lib\default\com
mons-codec-1.4.jar;C:\Osmosis-dev\lib\default\commons-dbcp-1.2.2.jar;C:\Osmosis-
dev\lib\default\commons-logging-1.1.1.jar;C:\Osmosis-dev\lib\default\commons-poo
l-1.3.jar;C:\Osmosis-dev\lib\default\jpf-1.5.jar;C:\Osmosis-dev\lib\default\mysq
l-connector-java-5.1.10.jar;C:\Osmosis-dev\lib\default\postgis-1.3.2.jar;C:\Osmo
sis-dev\lib\default\postgresql-8.3-603.jdbc4.jar;C:\Osmosis-dev\lib\default\spri
ng-beans-2.5.6.SEC01.jar;C:\Osmosis-dev\lib\default\spring-context-2.5.6.SEC01.j
ar;C:\Osmosis-dev\lib\default\spring-core-2.5.6.SEC01.jar;C:\Osmosis-dev\lib\def
ault\spring-jdbc-2.5.6.SEC01.jar;C:\Osmosis-dev\lib\default\spring-tx-2.5.6.SEC0
1.jar;C:\Osmosis-dev\lib\default\stax2-api-3.0.1.jar;C:\Osmosis-dev\lib\default\
woodstox-core-lgpl-4.0.3.jar;C:\Osmosis-dev\lib\default\xercesImpl-2.9.1.jar;C:\
Osmosis-dev\plugins\* org.openstreetmap.osmosis.core.Osmosis -p uk.co.randomjunk
.osmosis.transform.TransformPlugin --read-xml d:\data\osm\bremen.osm --tag-trans
form c:\Osmosis-dev\match.xml --write-xml d:\data\osm\bremen_match.osm
03.12.2009 10:12:25 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.31.3
03.12.2009 10:12:26 org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
java.lang.NullPointerException
        at org.java.plugin.standard.StandardPluginManager.publishPlugins(Standar
dPluginManager.java:181)
        at org.openstreetmap.osmosis.core.TaskRegistrar.registerJpfPlugins(TaskR
egistrar.java:510)
        at org.openstreetmap.osmosis.core.TaskRegistrar.loadJPFPlugins(TaskRegis
trar.java:438)
        at org.openstreetmap.osmosis.core.TaskRegistrar.initialize(TaskRegistrar
.java:410)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:74)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)

C:\Osmosis-dev>





From: Markus Freyt 
Sent: Wednesday, December 02, 2009 10:42 AM
To: osmosis-dev at openstreetmap.org 
Subject: OSMOSIS --tag-transform: plugin


Hi,

I'm running OSMOSIS sucessfully a little while now. Thanks for this fantastic tool, indeed...

Right now I'm trying to get the new tagtransform plugin working. In order t do so I have copied the tagtransform.jar into the order plugins in "C:\Osmosis-dev\plugins"
Also I have adjusted the osmosis.bat (as you can see below). Finally I have placed the example match file into "C:\Osmosis-dev".
For some reason it gives me an error regarding the global options. I guess its just a small issue regarding activation of the plugin on windows 7 64 bit ...
Could you give me an advice to get it running?


This is my test call: call osmosis --read-xml d:\data\osm\bremen.osm --tag-transform c:\Osmosis-dev\match.xml --write-xml d:\data\osm\bremen_match.osm

This is what osmosis.bat is generating finally:

C:\Osmosis-dev>call osmosis --read-xml d:\data\osm\bremen.osm --tag-transform c:
\Osmosis-dev\match.xml --write-xml d:\data\osm\bremen_match.osm
java  -cp C:\Osmosis-dev\osmosis.jar;C:\Osmosis-dev\lib\default\aopalliance-1.0.
jar;C:\Osmosis-dev\lib\default\bzip2-20090327.jar;C:\Osmosis-dev\lib\default\com
mons-dbcp-1.2.2.jar;C:\Osmosis-dev\lib\default\commons-logging-1.1.1.jar;C:\Osmo
sis-dev\lib\default\commons-pool-1.3.jar;C:\Osmosis-dev\lib\default\jpf-1.5.jar;
C:\Osmosis-dev\lib\default\mysql-connector-java-5.1.6.jar;C:\Osmosis-dev\lib\def
ault\postgis-1.3.2.jar;C:\Osmosis-dev\lib\default\postgresql-8.3-603.jdbc4.jar;C
:\Osmosis-dev\lib\default\spring-beans-2.5.6.SEC01.jar;C:\Osmosis-dev\lib\defaul
t\spring-context-2.5.6.SEC01.jar;C:\Osmosis-dev\lib\default\spring-core-2.5.6.SE
C01.jar;C:\Osmosis-dev\lib\default\spring-jdbc-2.5.6.SEC01.jar;C:\Osmosis-dev\li
b\default\spring-tx-2.5.6.SEC01.jar;C:\Osmosis-dev\lib\default\stax2-api-3.0.1.j
ar;C:\Osmosis-dev\lib\default\woodstox-core-lgpl-4.0.3.jar;C:\Osmosis-dev\plugin
s\* org.openstreetmap.osmosis.core.Osmosis "-p uk.co.randomjunk.osmosis.transfor
m.TransformPlugin" --read-xml d:\data\osm\bremen.osm --tag-transform c:\Osmosis-
dev\match.xml --write-xml d:\data\osm\bremen_match.osm

02.12.2009 10:29:03 org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.

org.openstreetmap.osmosis.core.OsmosisRuntimeException: Argument 1 specifies an
unrecognised option.
        at org.openstreetmap.osmosis.core.cli.CommandLineParser.parse(CommandLin
eParser.java:107)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:67)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20091203/31fdbec0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Emoticon3.gif
Type: image/gif
Size: 1338 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20091203/31fdbec0/attachment.gif>


More information about the osmosis-dev mailing list