Skip to main content
Solved

Problem to extract coordinate of start and end point of line

  • November 24, 2022
  • 3 replies
  • 252 views

spiderman
Contributor
Forum|alt.badge.img+7

I have lines , I have used coordinator extractor with index 0 , coordinate extractor with index 1

so I got start point and end point for each line .

but I have still few lines ,although I see them in inspector as lines but the coordinates that I extracted for each line of them by coordinate extractor transformer ,has same coordinate for start and the same coordinate for end of line as attributes

what is the reason of that ?how could I get coordinate of start Point and end point for theses few lines but it should has different geometry in start rather than end

FME 2021

Thanks for help

Best answer by ranga_tolapi

Start and End Coordinate Extractor

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

The index to use for the last coordinate in a line is -1

 

If you still encounter lines where the start and end coordinates are off, you should inspect them with the "Feature Information" panel in Visual Preview. At the bottom it will display the list of coordinates for that geometry so you can check it.


spiderman
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • November 26, 2022

The index to use for the last coordinate in a line is -1

 

If you still encounter lines where the start and end coordinates are off, you should inspect them with the "Feature Information" panel in Visual Preview. At the bottom it will display the list of coordinates for that geometry so you can check it.

Thanks a lot ,it helps me .

My data of line has only two coordinates ,start point and end point ,so I have used chopper to convert line to points but how could I create index and save it as attribute to know ,which start point then all points coordinates till reach the end point .


ranga_tolapi
Contributor
Forum|alt.badge.img+9
  • Contributor
  • Best Answer
  • November 27, 2022

Start and End Coordinate Extractor