private static Geometry splitMultiLineStringWithLine ( MultiLineString input , LineString cut ) { Geometry lines = input . difference ( cut ) ; //Only to preserve SQL constrains if ( lines instanceof LineString ) { return FACTORY . createMultiLineString ( new LineString [ ] { ( LineString ) lines . getGeometryN ( 0 ) } ) ; } return lines ; }
Splits the specified MultiLineString with another lineString .