private static void WriteGeometryCollection(ShapeData geoms, StringBuilder sb, bool includeZ, bool includeM)
 {
     for (int i = 0; i < geoms.NumGeometries; i++)
     {
         if (i > 0)
         {
             sb.Append(",");
         }
         WriteGeometry(geoms.GetGeometryN(i + 1), sb, includeZ, includeM);
     }
 }
 private static void WriteMultiPolygon(ShapeData polys, StringBuilder sb, bool includeZ, bool includeM)
 {
     sb.Append('(');
     for (int i = 0; i < polys.NumGeometries; i++)
     {
         if (i > 0)
         {
             sb.Append("),(");
         }
         WritePolygonContents(polys.GetGeometryN(i + 1), sb, includeZ, includeM);
     }
     sb.Append(')');
 }