You could use a Tester or TestFilter to select the lines you want before putting them in to the SpatialFilter
You could use a Tester or TestFilter to select the lines you want before putting them in to the SpatialFilter
But I don't know before I filter which line sthat should be. I want to keep all polygons, where the lines intersect for 1 m or more....
Alternatively, you could use the Intersector and the overlaps attribute to filter based on the amount of intersections.
If you need to only consider intersections to be valid once 1m or more of the line is within the polygon then the spatial filter is not going to help here. You will need to use something like a clipper or lineonareaoverlayer to calculate the length that is within the polygon
It's not 100% clear from your question whether in this example you would want to return the red and the blue line since both are greater than 1m and intersect with the area, or whether you just want the blue line as that intersects with the area by more than 1m
If you need to only consider intersections to be valid once 1m or more of the line is within the polygon then the spatial filter is not going to help here. You will need to use something like a clipper or lineonareaoverlayer to calculate the length that is within the polygon
It's not 100% clear from your question whether in this example you would want to return the red and the blue line since both are greater than 1m and intersect with the area, or whether you just want the blue line as that intersects with the area by more than 1m
I want the red, but in my case the part of the red line that overlaps (the 0.75m) could also consist of multiple linesegments that have a combined length of 0.75m
Hi @fmenco, if your requirement is to select lines where the line is clipped by a polygon and also the length of clipped inside part is equal to or less than 1 meter, this workflow might help you.
Hi @fmenco, if your requirement is to select lines where the line is clipped by a polygon and also the length of clipped inside part is equal to or less than 1 meter, this workflow might help you.
I'm gong to try this, too...
But no, I want to filter out polygons which are being overlapped by a line shorter than a certain length or not being overlapped at all.
I've allready expanded my workbench by:
-filtering out lines that don't intersect (spatialfilter, lines= candidate, polygons = filter)
- joining lines that did intersect (linejoiner).
- using a lineonareaoverlay
-calculating linelength (lengthcalculator) and then filtering out "short" lines (tester)
That's how far I've gotten
I guess now I have to add another spatialfilter to filter out the polygons that are left now? But now just with the filter and candidate switched, so lines =filter, and polygons= candidate?
Hi @fmenco, if your requirement is to select lines where the line is clipped by a polygon and also the length of clipped inside part is equal to or less than 1 meter, this workflow might help you.
Thank you.. this helped.. I had to adapt it of course with a linejoiner before the geometryextractor and a lengthcalculator after the clipper... But this gave me the results I was looking for..
Thanks again..:-)
Hi @fmenco, if your requirement is to select lines where the line is clipped by a polygon and also the length of clipped inside part is equal to or less than 1 meter, this workflow might help you.
Almost there... This is my workbench
Eventhough it filters out the bulk of what I want to filter out, it doesn't filter out everything.
Polygon A, should also be filtered out, but is now in the same category as polygon B. It's like I need another tescriteria or something,..one that specifies that the lines should pass the criteria for all polygons it intersects with. or something like that. How do I do that?
Hi @fmenco, if your requirement is to select lines where the line is clipped by a polygon and also the length of clipped inside part is equal to or less than 1 meter, this workflow might help you.
If the goal is to filter polygons intersecting only with the clipped parts of the lines, the GeometryReplacer would not be necessary.