private static void WritePolygonContents(ShapeData polygon, StringBuilder sb, bool includeZ, bool includeM)
 {
     sb.Append('(');
     WriteCoordinateCollection(GetVertices(polygon.GetRing(0)), sb, includeZ, includeM);
     for (int i = 0; i < polygon.NumInteriorRing; i++)
     {
         sb.Append("),(");
         WriteCoordinateCollection(GetVertices(polygon.GetRing(i + 1)), sb, includeZ, includeM);
     }
     sb.Append(')');
 }
 private static void WriteMultiLineString(ShapeData lines, StringBuilder sb, bool includeZ, bool includeM)
 {
     sb.Append('(');
     for (int i = 0; i < lines.NumGeometries; i++)
     {
         if (i > 0)
         {
             sb.Append("),(");
         }
         WriteCoordinateCollection(GetVertices(lines.GetRing(i)), sb, includeZ, includeM);
     }
     sb.Append(")");
 }