[osmosis-dev] extracting data in a polygon

Brett Henderson brett at bretth.com
Mon Mar 29 02:28:57 BST 2010


On Sun, Mar 28, 2010 at 5:16 AM, Nakor <nakor.osm at gmail.com> wrote:

>   Hello,
>
> I am trying to extract data in a polygon. I created the polygon using
> osm2poly.pl and as far as I can tell, the polygon file looks good. I am
> using the following command line:
>
> osmosis --read-xml enableDateParsing=no file="MI_limits_merged.osm"
> --bounding-polygon file="mi_poly.txt" --write-xml file="michigan.osm"
>
> and am getting the following error message:
>
> SEVERE: Thread for task 1-read-xml failed
> java.lang.NoClassDefFoundError:
> org.openstreetmap.osmosis.core.filter.common.PolygonFileReader
>    at java.lang.Class.initializeClass(libgcj.so.10)
> [...]
> Caused by: java.lang.ClassNotFoundException: java.awt.geom.Path2D$Double
>    at
>
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> [...]
>
> What am I doing wrong?
>

I'm not sure to be honest.  It sounds like your Java installation is missing
2D libraries ...

Can you give some more details about your installation?  OS version, Java
version (ie. "java -version" output), Osmosis version, etc.

Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20100329/77f26caf/attachment.html>


More information about the osmosis-dev mailing list