public static void toKMLMultiGeometry(GeometryCollection gc, ExtrudeMode extrude, int altitudeModeEnum, StringBuilder sb) {
        sb.append("<MultiGeometry>");
        for (int i = 0; i < gc.getNumGeometries(); i++) {
            Geometry geom = gc.getGeometryN(i);
            if (geom instanceof Point) {
                toKMLPoint((Point) geom, extrude, altitudeModeEnum, sb);
            } else if (geom instanceof LineString) {
                toKMLLineString((LineString) geom, extrude, altitudeModeEnum, sb);
            } else if (geom instanceof Polygon) {
                toKMLPolygon((Polygon) geom, extrude, altitudeModeEnum, sb);
            }
        }
        sb.append("</MultiGeometry>");
    }
public static void toKMLMultiGeometry ( GeometryCollection gc , ExtrudeMode extrude , int altitudeModeEnum , StringBuilder sb ) { sb . append ( "<MultiGeometry>" ) ; for ( int i = 0 ; i < gc . getNumGeometries ( ) ; i ++ ) { Geometry geom = gc . getGeometryN ( i ) ; if ( geom instanceof Point ) { toKMLPoint ( ( Point ) geom , extrude , altitudeModeEnum , sb ) ; } else if ( geom instanceof LineString ) { toKMLLineString ( ( LineString ) geom , extrude , altitudeModeEnum , sb ) ; } else if ( geom instanceof Polygon ) { toKMLPolygon ( ( Polygon ) geom , extrude , altitudeModeEnum , sb ) ; } } sb . append ( "</MultiGeometry>" ) ; }
A container for zero or more geometry primitives associated with the same
feature.

<MultiGeometry id="ID">
<!-- specific to MultiGeometry -->
<!-- 0 or more Geometry elements -->
</MultiGeometry>

@param gc