Skip to main content
Solved

How to convert lines to points

  • November 26, 2022
  • 1 reply
  • 1364 views

spiderman
Contributor
Forum|alt.badge.img+7

Hallo ,

i have lines data and I have only start point and end point of line .but I would like to get all geometry of points from start till end point.

,so I have used chopper to convert lines to points but my problem .I am not sure ,how could i add all geometry of points from start till end point in new attribute for the same id of line .

FME 2021

Thanks for help .

Best answer by caracadrian

One way would by creating unique ID's for lines before Chopper, putting x,y,z in attributes then aggregating with GroupBy on the unique ID and generating a list with the coordinates.

Another way would be GeometryExtractor. It simply creates an attribute that stores the geometry as a whole. OGC Well Known Text would be one of your better choices.

GeometryExtractor

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

1 reply

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • Best Answer
  • November 28, 2022

One way would by creating unique ID's for lines before Chopper, putting x,y,z in attributes then aggregating with GroupBy on the unique ID and generating a list with the coordinates.

Another way would be GeometryExtractor. It simply creates an attribute that stores the geometry as a whole. OGC Well Known Text would be one of your better choices.

GeometryExtractor


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