Skip to main content
Solved

Counter transformer

  • May 4, 2018
  • 2 replies
  • 35 views

Forum|alt.badge.img

Hello, I have a question about Counter transformer. I have .SHP with line elements and I need to give every line an ID but Counter transformer for some group of lines gives IDs that are apart not in order. Example, 1.png I have a line that is given an ID 0, line left of this line has an ID 1, but line right of it has an ID 86(2.png), same thing is at other end of this chain of lines(Left line has an ID of 86, "central" ID 13, and right ID 12, 3.png). Is there a possibility that FME gives ID in sequence from left to right, North to South it doesn't matter just some kind of sequence? Thank you in advance.

 

1.PNG

2.PNG

3.PNG

Best answer by takashi

The Counter just generates sequential number in the input order. It won't consider any spatial relationships. If you want to create sequential number in the connecting order of the lines, you will have to sort the lines appropriately beforehand.

If the lines are touching each other at their end nodes exactly, these Q&A; might help you.

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.

2 replies

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • May 4, 2018

The Counter just generates sequential number in the input order. It won't consider any spatial relationships. If you want to create sequential number in the connecting order of the lines, you will have to sort the lines appropriately beforehand.

If the lines are touching each other at their end nodes exactly, these Q&A; might help you.


Forum|alt.badge.img
  • Author
  • 39 replies
  • May 4, 2018

The Counter just generates sequential number in the input order. It won't consider any spatial relationships. If you want to create sequential number in the connecting order of the lines, you will have to sort the lines appropriately beforehand.

If the lines are touching each other at their end nodes exactly, these Q&A; might help you.

@takashi, thank you very much. Your solution does the job better than i hoped, segment number is additional attribute that I need.