When I try to use the getBoundary() method on a GeometryCollection I get the
following error:      java.lang.IllegalArgumentException: This method does
not support GeometryCollection arguments
at
com.vividsolutions.jts.geom.Geometry.checkNotGeometryCollection(Geometry.java:1487)
at
com.vividsolutions.jts.geom.GeometryCollection.getBoundary(GeometryCollection.java:152)

I have a collection of polygons (countries) and I want to randomly choose
points which lie within any of the polygons (which are adjacent). If I could
calculate the border of the collection it would prevent me from iterating
over all the polygons each time I draw a new random point. Is there an
easier way to do this?
_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to