public static void toGeojsonMultiLineString ( MultiLineString multiLineString , StringBuilder sb ) { sb . append ( "{\"type\":\"MultiLineString\",\"coordinates\":[" ) ; for ( int i = 0 ; i < multiLineString . getNumGeometries ( ) ; i ++ ) { toGeojsonCoordinates ( multiLineString . getGeometryN ( i ) . getCoordinates ( ) , sb ) ; if ( i < multiLineString . getNumGeometries ( ) - 1 ) { sb . append ( "," ) ; } } sb . append ( "]}" ) ; }
Coordinates of a MultiLineString are an array of LineString coordinate arrays .