Skip to main content
Solved

Adding sequence attribute

  • July 11, 2018
  • 3 replies
  • 547 views

Forum|alt.badge.img

Hi, I have a data set of lines that are part of polylines but i am missing attribute sequence. Attribute sequence is number (starting from 1) that represents order of lines for each polyline. Is it possible to add this attribute in a way that number 1 is first line of polyline, 2 second and so on? If not, how can I add this attribute regardless of position of lines in polylines?

This is part of my data set. First column is ID of line and third one is ID of polyline. I need to add fourth column sequence that will have for example for polyline 0 line 142 value of 1, line 7 value of 2 and line 747 value of 3.

Best answer by virtualcitymatt

If I understand correctly, I think you want to use a counter with the Counter Name set to ID_polyline. This will create a fourth column which will start a new count for each new ID_polyline

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.

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3703 replies
  • July 11, 2018

If the lines are entering in the correct order you can use a Counter, set the Counter Name parameter to the ID_polyline attribute: every time that changes it'll start counting again from 0 (or whatever value you set for the count start)


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • Best Answer
  • July 11, 2018

If I understand correctly, I think you want to use a counter with the Counter Name set to ID_polyline. This will create a fourth column which will start a new count for each new ID_polyline


Forum|alt.badge.img
  • Author
  • 39 replies
  • July 11, 2018

I did not expected it would be so easy. They are not in order but this would be just fine. Thank you @redgeographics and @virtualcitymatt.