Re: [Geotools-gt2-users] intersection MultiLineString-Polygon = MultiLineString

2008-10-20 Thread Michael Bedward
Hi Jo I think you want to do multiLineString.intersection( polygon ). This will give you a multi line string made up of lines within the polygon. If the lines cross within the polygon they will be cut at the crossing points. Here's a demo GeometryFactory gf = new GeometryFactory();

[Geotools-gt2-users] intersection MultiLineString-Polygon = MultiLineString

2008-10-20 Thread Jo
Hello, I want to intersect a MultiLineString with a polygon. This operation should return a cropped MultiLineString. polygon.intersection(MultiLineString) returns a Geometry which I can't cast to the subclass MultiLineString. How can I convert the returned Geometry to a MultiLineString? Or is the