Skip to main content
Solved

question regarding to geometry validator

  • May 27, 2024
  • 3 replies
  • 86 views

soly
Contributor
Forum|alt.badge.img+3

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.

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.

3 replies

DanAtSafe
Safer
Forum|alt.badge.img+21
  • 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+21
  • 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