public MultiLineStringTo toTransferObject ( MultiLineString input ) { MultiLineStringTo result = new MultiLineStringTo ( ) ; double [ ] [ ] [ ] resultCoordinates = new double [ input . getNumGeometries ( ) ] [ ] [ ] ; for ( int i = 0 ; i < input . getNumGeometries ( ) ; i ++ ) { resultCoordinates [ i ] = getPoints ( input . getGeometryN ( i ) ) ; } result . setCoordinates ( resultCoordinates ) ; result . setCrs ( GeoJsonTo . createCrsTo ( "EPSG:" + input . getSRID ( ) ) ) ; return result ; }
Converts a multilinestring to its corresponding Transfer Object