Oh sorry, I should have replied to my own thread. I wasn't doing the
appropriate casting -- I was looking for a way to ask for the outer and
inner polygons of a MultiPolygon, for example. To do that, I had to cast to
a MultiPolygon and then use its members to get at what I wanted.
My code boiled down to a few casts checked by a
geometry.getGeometryType().equals(...) call.
Thanks,
Ian
On Tue, Sep 30, 2008 at 5:42 PM, Michael Bedward
<[EMAIL PROTECTED]>wrote:
> Hi Ian
>
> Did you try it, and if so, what was the problem ? I was under the
> impression that MultiPolygon.getGeometryN() will return a Polygon
> because it is (sort of) a collection of non-overlapping polygons.
> Similarly, MulitLineString.getGeometryN should return a LineString.
>
> Michael
>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users