Skip to main content

could i ask how to get in inspector only the lines that intersected with polygon ,

i tried alot with clipper

polygon as input for clipper and lines input for clippee

output from inside ,i got the intersected lines with polygon plus all lines inside the polygon .i want only to have the intersected lines with polygon and delete the rest of lines inside the polygon

 

how could also give intersected lines specific colour .

 

Thanks alot

 

Try the SpatialFilter instead of the Clipper.


First, use a GeometryCoercer to change your polygon to just its perimeter line, so you don't get the lines that are fully inside your polygon. Then, as @redgeographics says, use a SpatialFilter (or SpatialRelator or LineOnLineOverlayer).


Try the SpatialFilter instead of the Clipper.

thanks for reply it is working great nw


First, use a GeometryCoercer to change your polygon to just its perimeter line, so you don't get the lines that are fully inside your polygon. Then, as @redgeographics says, use a SpatialFilter (or SpatialRelator or LineOnLineOverlayer).

thanks alot


Reply