Skip to main content
Solved

Only clipping geometry's with same ID


Hi,

I want to clip geometry's, but with the same ID's only. I've got 2 input files (1 is clipper 2 is clippee), both contain geometry's. I want to know how much the clippee is outside of the clipper, but only if it has the same ID as te clipper. Is it possible with the clipper? Maybe the clipper is the wrong transformer? Can anyone help? Maybe @takashi?

Clipper geometry's: 3

Clippee geometry's: 1204

It should be aprox. 400 clippee's a clipper.

Kind regards

Best answer by redgeographics

The "Group By" setting in the Clipper does that. It does require that the attribute holding that ID is called the same for both the Clippee and Clipper features. If you select one (or more) attributes there it will restrict clipping to features which have the same values for that attribute.

View original
Did this help you find an answer to your question?

5 replies

It should be something like a clipper with an IF statement. IF ID's match then clip, if not it should not pass.


redgeographics
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • Best Answer
  • June 29, 2016

The "Group By" setting in the Clipper does that. It does require that the attribute holding that ID is called the same for both the Clippee and Clipper features. If you select one (or more) attributes there it will restrict clipping to features which have the same values for that attribute.


takashi
Evangelist
  • June 29, 2016

Hi @michael_pieters, yes it's possible. See @redgeographics' answer :)


redgeographics wrote:

The "Group By" setting in the Clipper does that. It does require that the attribute holding that ID is called the same for both the Clippee and Clipper features. If you select one (or more) attributes there it will restrict clipping to features which have the same values for that attribute.

Hi @redgeographics thanks for your quick reply. For my understanding. If you have 3 clippers with ID: a, b or c. 400 clippee's with ID: a, 400 w ID: b and 400 w ID: c. Clippee's with ID: a will only be clipped with clipper ID: a?


redgeographics
Celebrity
Forum|alt.badge.img+50
michael_pieters wrote:

Hi @redgeographics thanks for your quick reply. For my understanding. If you have 3 clippers with ID: a, b or c. 400 clippee's with ID: a, 400 w ID: b and 400 w ID: c. Clippee's with ID: a will only be clipped with clipper ID: a?

That is correct. Clippees will only be clipped against clippers with the same ID.


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