public Coordinate [ ] getCoordinates ( ) { if ( isEmpty ( ) ) { return null ; } Coordinate [ ] coordinates = new Coordinate [ getNumPoints ( ) ] ; int count = 0 ; for ( LineString lineString : lineStrings ) { for ( int j = 0 ; j < lineString . getNumPoints ( ) ; j ++ ) { coordinates [ count ++ ] = lineString . getCoordinateN ( j ) ; } } return coordinates ; }
Get the full concatenated list of coordinates of all the LineStrings in this MultiLineString geometry .