Skip to main content

I have a file of 100+ polygons and need to find lines that exist outside of the polygon based on a join condition that links the line to the polygon.

ie find me the lines in file x that exist outside of a polygon where line.shape not in/not entirely within polygon.shape and line.auth = polygon.auth

I'm a new FME user - I've experimented with both the spatial relator and the spatial filter. I don't know if I'm just using them incorrectly! any help appreciated!

Thanks

Baz

Both the SpatialRelator or the SpatialFilter should work. You should set the Group By to the "auth" attribute (which will need to have the exact same name on both the lines and the polygons).

With the SpatialFilter, try:


Another option is the Clipper, again grouping on the join attribute.

The lines will be Clippee, the polygons Clipper.

The Outside port will contain all lines that are completely or partially outside (these will have the _clipped attribute to filter them).


Could you tell us what is not working then? Or what you get in your translation?

 

 

The SpatialRelator or SpatialFilter should work indeed, but more specific information could lead to more helpful answers!
Hi @abbas_lokat. Welcome to FME! If you require additional assistance after reviewing the answers below, sharing a few more details will help the FME community help you. Please reply to this thread and provide additional details including:

 

  • The version of FME you are using, including build number and edition
  • A small sample of your data, or screenshots of the data in the FME Data Inspector
  • A description of your expected output, with screenshots if possible
  • Your FME workspace
  • Your FME translation log file
  • Any other information that may be useful to share
I would also suggest you review the tutorial Common GIS Operations which includes examples of using the SpatialRelator and SpatialFilter transformers. And the documentation may be helpful as well.

Reply