private MultiLineString asMultiLineString ( List < List < List > > coords , CrsId crsId ) throws IOException { if ( coords == null || coords . isEmpty ( ) ) { throw new IOException ( "A multilinestring requires at least one line string" ) ; } LineString [ ] lineStrings = new LineString [ coords . size ( ) ] ; for ( int i = 0 ; i < lineStrings . length ; i ++ ) { lineStrings [ i ] = asLineString ( coords . get ( i ) , crsId ) ; } return new MultiLineString ( lineStrings ) ; }
Parses the JSON as a MultiLineString geometry