Skip to main content
Solved

Adding sequence attribute


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

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

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

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

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
  • 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.


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