Skip to main content

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.

Hi @mathiku, the SpikeRemover might help you.


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.


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 :)


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