Skip to main content

Hello, couldn't really describe the problem in the Question field but to sum it up, I have a table of X/Y/Z that represent contours (see on photo)ContoursMeaning that between the "*" there is an independent contour, first one having 5 vertices, next one having 7 and so forth. Now I want to enter these vertices into a contour generator, but in the way that that Transformer creates separate contours from the "*" grouping, instead of a whole binge of criss-cross connected lines.

 

Probably best way to do this would to give each vertex group a common ID and then run contour generator with Group by "ID". But how on earth do I group based on the logic:

if X is within two * then it belong to the same group, then after the latter * there is a new group with a seperate ID and so forth?

 

-Please send help :D

You can assign groups using adjacent attribute mapping

imagefeature[-1].X NOT_ATTRIBUTE_HAS_A_VALUE sets the value of Group to 0 if it's the first feature

If X equals *, the Group is incremented by 1, otherwise it stays the same value as the previous feature


Great work on the help sending @ebygomm​, worked like a charm.

 

Thanks :D


Reply