Skip to main content
Solved

Problem to extract coordinate of start and end point of line

  • November 24, 2022
  • 3 replies
  • 166 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

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

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

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
redgeographics wrote:

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


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