Skip to main content
Solved

Geometry fails OGC - GeometryValidator fails to repair


mathiku
Supporter
Forum|alt.badge.img+7

I am receiving geometries from MapInfo .TAB-files.

They are then to be passed on to a server in a XML-file. I parse the geometries using GeometryExtractor -> GML 3.1.1.

No problem - the GeometryValidator -> DonutBuilder -> GeometryExtractor seems rock solid.

Today I encountered this geometry which I can't seem to pass on. It fails OGC and GeometryValidator fails to repair it.

For now my workaround is to add a small buffer, but does anybody have a better method?

Attached is the geometry as TAB_file.

Best answer by virtualcitymatt

I find that the GeometryValidator never repairs when performing the OGC test. Perhaps try the validator without the OGC test - as @takashi for the case you have here a SpikeRemover should work, or alternatively setting the tolerance a little higher in the self-intersecting test or duplicate/consecutive points test.

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

4 replies

takashi
Influencer
  • May 19, 2020

Hi @mathiku, the SpikeRemover might help you.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35

I find that the GeometryValidator never repairs when performing the OGC test. Perhaps try the validator without the OGC test - as @takashi for the case you have here a SpikeRemover should work, or alternatively setting the tolerance a little higher in the self-intersecting test or duplicate/consecutive points test.


mathiku
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • May 20, 2020
virtualcitymatt wrote:

I find that the GeometryValidator never repairs when performing the OGC test. Perhaps try the validator without the OGC test - as @takashi for the case you have here a SpikeRemover should work, or alternatively setting the tolerance a little higher in the self-intersecting test or duplicate/consecutive points test.

Thanks. Removing the OGC tests did the trick. Very simple :)


mathiku
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • May 20, 2020
takashi wrote:

Hi @mathiku, the SpikeRemover might help you.

Thanks for the suggestion. I tried some different settings, but didn't get the desired result, and changing settings in GeometryValidator was really simple.


Reply


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