Skip to main content
Solved

How to convert lines to points

  • November 26, 2022
  • 1 reply
  • 1697 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

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.

1 reply

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • 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