Skip to main content
Question

Repair line geometry errors

  • July 14, 2020
  • 1 reply
  • 101 views

sunsilk11
Contributor
Forum|alt.badge.img+6

Hi I am using a GeometryValidator with custom set of vaidators (see attached).

I have tried using an intersector, generalizer before GeometryValidator to repair the geometry errors. Unfortunately, in a lot of cases, the auto repair by GeometryValidator isn't correct. It is removing the geometry completely.

Most of the geometry errors are either self intersection, or there is Duplicate Consecutive Points (see attached examples)

Any suggestion how to best approach this and correct the geometry in these cases?

 

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.

1 reply

germang
Contributor
Forum|alt.badge.img+13
  • Contributor
  • 17 replies
  • September 21, 2020

Generalizer could help you better if you play with tolerance values.

In case your line geometries are too variable in length, you can use a dynamic value to calculate the tolerance base on the length of each line. Something like "@Length()*0.05" refers a percentage of the line length, in this case 5%.

You may want to use the Generalizer after a first GeometryValidator so you only generalize problematic lines before a second GeometryValidator.