public static void toGeojsonCoordinates ( Coordinate [ ] coords , StringBuilder sb ) { sb . append ( "[" ) ; for ( int i = 0 ; i < coords . length ; i ++ ) { toGeojsonCoordinate ( coords [ i ] , sb ) ; if ( i < coords . length - 1 ) { sb . append ( "," ) ; } } sb . append ( "]" ) ; }
Convert a jts array of coordinates to a GeoJSON coordinates representation .