Skip to main content

I need to select the lines that fall entirely within a specific polygon and update their data with the respective polygon name. I attempted to use a spatial filter, but it didn't work as expected. When a line intersects two polygons, the filter selects and attributes the line to only one of the polygons, which is causing issues. I also tried using the NeighborFinder without success. I've attached a screenshot to illustrate a line segment that should not be selected within this polygon.

Hi @fme_can_do_it Did you test with the spatial predicate "Filter OGC-Contains Candidate"?


 


I agree with @DanAtSafe and @andrewj74, you should check what test is being used.

If you were interested in the case that you mentioned, where a feature intersected 2 polygons, then I would recommend the SpatialRelator, it will give you a count of related features, and you can generate lists for those related features.


Thank you all for your help! The issue has been fixed.


Reply