Skip to main content
Question

spatial selection of polygons, which are touched by another polygon?

  • January 28, 2020
  • 2 replies
  • 109 views

alfons
Contributor
Forum|alt.badge.img+7

Hello,

I'm trying to select the polygons that are cut by another polygon (Boundary Box) (polygons that are completely inside or completely outside the Boundary Box polygon are of interest to me). My attempts with the SpatialFilter and SpatialRelator ("Requestor Touches Supplier") all failed. Are there any other possibilities? I have a shapefile as source data and the boundary box polygons are created from LAS files using BoundsExtractor and BoundingBoxAccumulator.

 

Thanks a lot in advance

2 replies

david_r
Celebrity
  • January 28, 2020

Rather than using the BoundsExtractor and the BoundingBoxAccumulator, try using only the BoundingBoxReplacer.

Also try sending both the Requestor and the Supplier features (as sent to e.g. the SpatialFilter) to the Inspector and check that you get what you expect.


alfons
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • January 29, 2020

Many thanks for the advice. I have adapted this in my workbench accordingly and thus reduced a transformer. Unfortunately it did not solve the actual problem.

But with a new approach I were able to solve it myself. After I created the BoundaryBox from the LAS files, I convert the polygon into lines (GeometryCoercer), then I used the SpatialFilter (Filter Intersects Cantidate) to get the polygons which are dived by the boundary (line) of the LAS files.

 


Reply


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