Skip to main content
Solved

Only clipping geometry's with same ID

  • June 29, 2016
  • 5 replies
  • 74 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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+62
  • 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
Celebrity
  • June 29, 2016

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


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+62

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.