On 6/22/11, Igor Podolskiy <[email protected]> wrote:
> Hi Jose,
>
> although I don't routinely work with the tagtransform plugin, I managed
> to reproduce the behavior you're reporting. The problem is that the
> tagtransform plugin is missing a plugin.xml file somehow. This leads to
> the JPF runtime considering the plugin invalid and returning null as the
> plugin location, which ultimately leads to the NPE you see.
>
> You can work around this issue by taking the following steps:
>
>
> 1. Create a file named plugin.xml with the following content:
>
> ----
> <?xml version="1.0" ?>
> <!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 1.0"
> "http://jpf.sourceforge.net/plugin_1_0.dtd";>
> <plugin id="LibOSM" version="1.0">
>       <requires>
>              <import
> plugin-id="org.openstreetmap.osmosis.core.plugin.Core"
> reverse-lookup="false"/>
>       </requires>
>       <runtime>
>               <library id="code" path="/" type="code"/>
>       </runtime>
>       <extension plugin-id="org.openstreetmap.osmosis.core.plugin.Core"
>                  point-id="Task" id="randomjunk.co.uk/TagTransform">
>          <parameter id="name"
>                  value="TagTransform"/>
>          <parameter id="class"
> value="uk.co.randomjunk.osmosis.transform.TransformPlugin"/>
>           </extension>
> </plugin>
> ----
>
> 2. Unpack the tagtransform.jar.
> 3. Put the newly created plugin.xml into the META-INF/ directory.
> 4. Repack the tagtransform.jar.
>
> The NPE should then go away. However, I didn't test whether the TT task
> works properly - I currently don't use it so I couldn't tell if it is
> working anyway :)
>
> Hope that helps,
> Igor
>

thank you igor, that did the trick. plugins seems to work, however it
seems not able to combine values from 2 different keys into a single
tag which happens to be what i'm looking for. nevermind.

jozef

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

Reply via email to