Skip to main content
Question

Allow Snapped Vertices to Pass the GeometryValidator


ragjr
Contributor
Forum|alt.badge.img+2

I have a process that includes the GeometryValidator transformer with a check on for self-intersections in 2D. The validation rightly captures those overlapping or crossing segments, but it also incorrectly catches vertices that snap to another segment. These kinds of geometries can be correct, as in the case of a trail that has a T-intersection and loops back onto itself.

I’ve not found a mechanism to allow these kinds of errors to be considered valid. Does anyone have a work-around?

2 replies

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • July 15, 2024

Hi @ragjr There’s no way to work around this as a line that closes on itself (where the first and last vertices are not identical) is indeed self-intersecting. However, I think that these lines could be identified after the GeometryValidator (if no repair is attempted) by comparing the coordinates of the first and last vertices against the issue location, e.g.:

 


ragjr
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • July 17, 2024

@DanAtSafe Thanks for the reply. That seems to provide a work around to this issue in testing.


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