Skip to main content
Solved

vertex remover

  • February 22, 2023
  • 7 replies
  • 197 views

bayram
Contributor
Forum|alt.badge.img+5

Hello

 

there are vertex at equal distance (0.100) but these are unnecessary, only one vertex in 1m is enough. How can I remove the vertex in between, I looked for vertex remover, but I think I am doing something wrong, can you help me please?

 

Additional information: There are always 10 vertexes in 1m.

Best answer by nielsgerrits

The Generalizer is the way to go for this kind of work, but I find it hard to control to keep vertices every 1 meter. As an alternative you could use a Chopper to get lines from 1m, rebuild the lines from the first and last coordinate (CoordinateExtractors, VertexCreators) and rebuild the original lines using a LineCombiner. If the vertices are not exactly every 1m, you can create extra vertices using a Densifier before the Chopper.

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.

7 replies

david_r
Celebrity
  • 8392 replies
  • February 22, 2023

Have a look at the Generalizer. Be sure to read up on the different algorithms first to understand the differences:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/generalizer.htm


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • February 22, 2023

The Generalizer is the way to go for this kind of work, but I find it hard to control to keep vertices every 1 meter. As an alternative you could use a Chopper to get lines from 1m, rebuild the lines from the first and last coordinate (CoordinateExtractors, VertexCreators) and rebuild the original lines using a LineCombiner. If the vertices are not exactly every 1m, you can create extra vertices using a Densifier before the Chopper.


bayram
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • 38 replies
  • February 22, 2023

Have a look at the Generalizer. Be sure to read up on the different algorithms first to understand the differences:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/generalizer.htm

hello david

 

thank you for your answer but i didn't know which commands to use can you help me if i share my file

 


bayram
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • 38 replies
  • February 22, 2023

The Generalizer is the way to go for this kind of work, but I find it hard to control to keep vertices every 1 meter. As an alternative you could use a Chopper to get lines from 1m, rebuild the lines from the first and last coordinate (CoordinateExtractors, VertexCreators) and rebuild the original lines using a LineCombiner. If the vertices are not exactly every 1m, you can create extra vertices using a Densifier before the Chopper.

image.png 

nielsgerrits thank you very much I'm about to reach the conclusion one last problem remained in my file I have more than one line and when I build a line in the same layer, it combines the lines that are separate from each other, how can I prevent this?

 

 


bayram
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • 38 replies
  • February 22, 2023

image.png 

nielsgerrits thank you very much I'm about to reach the conclusion one last problem remained in my file I have more than one line and when I build a line in the same layer, it combines the lines that are separate from each other, how can I prevent this?

 

 

image


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • February 22, 2023

image.png 

nielsgerrits thank you very much I'm about to reach the conclusion one last problem remained in my file I have more than one line and when I build a line in the same layer, it combines the lines that are separate from each other, how can I prevent this?

 

 

Make sure the original lines have unique id's. This can be done using a UUIDGenerator. Then you can do a group by _uuid in the LineCombiner.

 

Looking at your workspace screenshot, I think it need to be:

  • UUIDGenerator Chopper (1m)
  • CoordinateExtractor(index 0)
  • CoordinateExtractor(index -1)
  • VertexCreator (Create point, xyz start)
  • VertexCreator (Add point, xyz end)
  • LineCombiner (Group by _uuid)

bayram
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • 38 replies
  • February 22, 2023

image.png 

nielsgerrits thank you very much I'm about to reach the conclusion one last problem remained in my file I have more than one line and when I build a line in the same layer, it combines the lines that are separate from each other, how can I prevent this?

 

 

 

nielsgerrits

 

I got a very good result, thank you very much for your suggestions