Not sure if I am using the API in the correct way or if there is problem with the shape file. When I run the following code:
If featureDataReader.Geometry.GeometryType = OgcGeometryType.MultiPolygon Then
Dim multiPolygonGeomerty As IMultiPolygon = featureDataReader.Geometry
For PolygonCount As Integer = 0 To (multiPolygonGeomerty.Count - 1)
Dim shapeGeometry As IGeometry = multiPolygonGeomerty(PolygonCount)
'DO SOME MORE WORK HERE
The problem is that multiPolygonGeomerty.Count always returns 1. I was expecting it to return a count of more than one. One for each polygon in the shape. However it always returns one Polygon which contains
all the coordinates for the entire shape (even if the shape is made up of more than one polygon).
When I open the shapefile in a GIS application you can clearly see one shape made up of many polygons (lots of small polygons inside one large polygon).