From fa8c869bd55ca277d13460d92206304d459614c1 Mon Sep 17 00:00:00 2001 From: Joe Amenta Date: Fri, 17 May 2019 08:26:50 -0400 Subject: [PATCH] Fix a copy-paste error. Resolves #2 --- NetTopologySuite.IO.SqlServer2008/MsSql2008GeographyWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }