diff --git a/NetTopologySuite.IO.SqlServer2008/MsSql2008GeographyWriter.cs b/NetTopologySuite.IO.SqlServer2008/MsSql2008GeographyWriter.cs index a55fda8..b95c86c 100644 --- a/NetTopologySuite.IO.SqlServer2008/MsSql2008GeographyWriter.cs +++ b/NetTopologySuite.IO.SqlServer2008/MsSql2008GeographyWriter.cs @@ -125,7 +125,7 @@ private void AddPolygon(SqlGeographyBuilder builder, IGeometry geometry) AddCoordinates(builder, TryReverseRing((ILinearRing)polygon.ExteriorRing, true).CoordinateSequence); - Array.ForEach(polygon.InteriorRings, ring => AddCoordinates(builder, TryReverseRing((ILinearRing)polygon.ExteriorRing, false).CoordinateSequence)); + Array.ForEach(polygon.InteriorRings, ring => AddCoordinates(builder, TryReverseRing((ILinearRing)ring, false).CoordinateSequence)); builder.EndGeography(); }