|
From: Ian D. <ian...@gm...> - 2008-09-30 22:51:09
|
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 <mic...@gm...>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 > > > |