Re: [Geotools-gt2-users] Shapefile polygons with holes

2011-01-17 Thread Jeff Storey
Thank you, Michael. This is very helpful. -Original Message- From: Michael Bedward [mailto:michael.bedw...@gmail.com] Sent: Monday, January 17, 2011 10:54 PM To: Jeff Storey; geotools users Subject: Re: [Geotools-gt2-users] Shapefile polygons with holes Hi Jeff, The following code

Re: [Geotools-gt2-users] Shapefile polygons with holes

2011-01-17 Thread Michael Bedward
Hi Jeff, The following code snippets should help... Geometry geom = (Geometry) feature.getDefaultGeometry(); // this should always be true for a Geometry object from a shapefile // (using the GeoTools Geometries enum boolean isMulitPolygon = Geometries.get(geom) == Geometries.MULTIPOLYGON; // n