Solved

Grouping features in a table based on "*" or another symbol delamination

  • 21 February 2023
  • 2 replies
  • 1 view

Badge +4

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

icon

Best answer by ebygomm 21 February 2023, 12:34

View original

2 replies

Userlevel 1
Badge +21

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

Badge +4

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

 

Thanks :D

Reply