Solved

Problem to extract coordinate of start and end point of line

  • 24 November 2022
  • 3 replies
  • 29 views

Badge +3

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

icon

Best answer by ranga_tolapi 27 November 2022, 12:27

View original

3 replies

Userlevel 4
Badge +25

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.

Badge +3

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 .

Badge +7

Start and End Coordinate Extractor

Reply