public static void toGeojsonCoordinate ( Coordinate coord , StringBuilder sb ) { sb . append ( "[" ) ; sb . append ( coord . x ) . append ( "," ) . append ( coord . y ) ; if ( ! Double . isNaN ( coord . z ) ) { sb . append ( "," ) . append ( coord . z ) ; } sb . append ( "]" ) ; }
Convert a JTS coordinate to a GeoJSON representation .