Skip to main content
Hi,

 

I have a set of line features and I want to add an attribute from a polygon feature with the clipper transformer to the lines within the polygon.

 

It is possible, that lines are within multiple polygons. For example:

 

lines are within a small polygon and this polygon lies within a larger polygon.

 

So which polygon is used by the clipper? In my case it should be the smaller one.

 

I'm thinking about sorting the polygons by ascending area-size, so that the smaller on is first input to the clipper.

 

Or does the clipper automatically use the smaller polygon?

 

Hi,

 

 

I would use the spatial relator/filter for that instead of the clipping.

 

Hope this helps
Hi,

 

 

The processing order seems to depend on the input order of clipper features, not their area-size. So, if the largest polygon comes first, inside smaller polygons will not be used as clippers.

 

Takashi
Hi,

 

 

maybe it is an approach to filter out large areas first (by area size) and then do the clipping.

 

 

Best regards
Thank you for your answers!

 

 

I tried some different settings and it seems that the area which arrives first at the transformer is used as clipper.

 

So for my analysis its a good compromise to sort the features by area-size and route them into the clipper.

 

 

(Its not possible to remove larger areas first, because there are also lines in the larger areas (but outside the small polygons) and they would get lost).

 

 

Best regards
An intersector or LineonAreaoverlayer followed by an spatialrelator.

 

The resulting list will show all the relations between lines ad areas; assuming u have them all named or numbered.

 

And by exposing cardinality u can search for lines (rather then point) relations.

 

Afterwards u can rejoin relevant lines by their name or numberid if needed.

 

 

And clippers has a switch for multiple clippers as far as i know btw.

 

 

btw in fme2012 u have to explicitly use an exposer to expose cardinality because it wont show in te attributes to expose...

 

If ur gutsy enough u can even try out the dim9 relation matrix..;)

 


Reply