I have Geography data that represent the county boundaries within each state. At times, these boundaries will have rings within the polygon. How do Identify which points are the outer rings and which points are the inner rings? Right now, I just loop through
the geography points and extract all the lats and longs something like this in C sharp. I need to be able to identify the outer polygon points and the inner ring points seperately. Any help would be appreciated.
for (int npolygons = 1; npolygons <= geographyfield.STNumGeometries(); npolygons++)
{
for (int nrec = 1; nrec <= (int)geographyfield.STGeometryN(npolygons).STNumPoints(); nrec++)
{
countyboundaryRecord = new CountyBoundaryClass();
countyboundaryRecord.PolygonID = npolygons;
countyboundaryRecord.PointID = nrec;
countyboundaryRecord.CountyFips = strCountyFips;
countyboundaryRecord.Longitude = Math.Abs(geographyfield.STGeometryN(npolygons).STPointN(nrec).Long.Value * 1000000);
countyboundaryRecord.Latitude = Math.Abs(geographyfield.STGeometryN(npolygons).STPointN(nrec).Lat.Value * 1000000);
WriteCountyPolyPoints(countyboundaryRecord);
}
}