private static IMultiPolygon FlattenMultiPolygon(IMultiPolygon mpoly, FgfGeometryFactory factory)
        {
            PolygonCollection polys = new PolygonCollection();

            for (int i = 0; i < mpoly.Count; i++)
            {
                polys.Add(FlattenPolygon(mpoly[i], factory));
            }
            return(factory.CreateMultiPolygon(polys));
        }
 private static IMultiPolygon FlattenMultiPolygon(IMultiPolygon mpoly, FgfGeometryFactory factory)
 {
     PolygonCollection polys = new PolygonCollection();
     for (int i = 0; i < mpoly.Count; i++)
     {
         polys.Add(FlattenPolygon(mpoly[i], factory));
     }
     return factory.CreateMultiPolygon(polys);
 }