Skip to main content
Solved

how to remove specific index of coordinates in a line and rebuild the line without this index?


soly
Contributor
Forum|alt.badge.img+3
  • Contributor

Hello ,

i would like to remove specific index of a vertex coordinates from a line .then build the line without this vertex .

How could I achieve it ? 
 

my second question :

How could I find which index vertex coordinates so close to next index coordinates ? 
then filter it to keep only one of them.

thanks in advance

FME 2021  

Best answer by DanAtSafe

@soly The first vertices within tolerance get removed.  This will change the geometry slightly.  Repaired features exit the Repaired port, and those unchanged exit the Passed port.

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

5 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • May 23, 2024
soly wrote:

 

i would like to remove specific index of a vertex coordinates from a line .then build the line without this vertex .

How could I achieve it ? 
 

You can use the VertexRemover. It is not necessary to recreate the line.


soly
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 23, 2024

I tried to use vertex remover but it does not work with me .

could u share the parameter in vertex remover ?

How to find which index of coordinate is close to the next index coordinates of vertex ?


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • May 23, 2024

Hi @soly You might want to use a GeometryValidator (instead of a VertexRemover) detecting the issue “Duplicate Consecutive Points”; set the tolerance to the minimum allowable distance.


soly
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 24, 2024

@DanAtSafe

You are right .

By using repaired port of geometry validator .

it cancel only the duplicate index ,right ?

without changing any geometry of the line .

is there any other effect on line ?

what are you doing when geometry validator detect duplicate consecutive ,how to fix it ?

use the repaired port or is there other accurate solution ?

 

thanks a lot 


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • Best Answer
  • May 24, 2024

@soly The first vertices within tolerance get removed.  This will change the geometry slightly.  Repaired features exit the Repaired port, and those unchanged exit the Passed port.


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