Skip to main content
Question

how can i get only the intersected lines with polygon and delete the rest of lines inside the polygon by clipper


gogopotter90
Contributor
Forum|alt.badge.img+13

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

 

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

Try the SpatialFilter instead of the Clipper.


arnold_bijlsma
Enthusiast
Forum|alt.badge.img+14

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).


gogopotter90
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • February 26, 2020
redgeographics wrote:

Try the SpatialFilter instead of the Clipper.

thanks for reply it is working great nw


gogopotter90
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • February 26, 2020
arnold_bijlsma wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings