Skip to main content
Solved

question regarding to geometry validator


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

Hello ,

I am checking duplicate consecutive points 

It is clear that issue locations port show one vertex of duplicate point with coordinates (x,y).

i would like to know the two vertex that duplicated then  I choose one of them to cancel .

but it show me only one vertex .

How could I achieve it ?

 

FME 2021 

Best answer by DanAtSafe

Hi @soly There’s no way to be given a choice at run-time.  Do you think that the GeometryValidator is generally removing the wrong vertices?  Instead of the GeometryValidator, I’d start with a Chopper to create 2-point line segments, then a LengthCalculator to find the shortest segments.

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

3 replies

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

Hi @soly There’s no way to be given a choice at run-time.  Do you think that the GeometryValidator is generally removing the wrong vertices?  Instead of the GeometryValidator, I’d start with a Chopper to create 2-point line segments, then a LengthCalculator to find the shortest segments.


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

@DanAtSafe 

it has no relation with geometry validator .it depends  on the requirements .

becauuse they want to keep vertex  that has coordinates as points from other data .

i have found that geometry validator removed some vertex that i need instead of other one .

so that ,I wanted to have both of vertex then I decide which vertex should keep and which not 

but  why did geometry validator remove this one vertex not other vertex  ?

When it found duplicate ,how did it choose which one remove and which keep ? 


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • May 28, 2024
Result of Removing Duplicate Consecutive Points with the GeometryValidator

Hi @soly The image should explain what the GeometryValidator does.  The orange line is the input with distances between vertices; the red diamonds are the issues (removed vertices); and the green line is the Repaired feature.

  • end points are kept
  • vertices are tested in pairs and in order on the feature, checking the distance to the following vertex
  • the 2nd vertex from each pair is not considered for removal

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