New answers tagged wkt
The circle geometry (a center with a radius) is not a supported by the WKT format. Your best chance is to transofrm your Circle geometry in an approximate Polygon with the circular function
If Java works for you, take a look into http://github.com/Esri/geometry-api-java. It has OperatorSimplify for polygon repair. It also has OperatorSimplifyOGC if you want the polygons to be also OGC compliant.
Building on @Brad Nesom's answer, if you're willing to look at an FME solution, there are some transformers that can help with your problem. But probably the most useful one would be the Geometry Validator. It has many options for identifying and repairing geometry errors. As you can see, the dialog contains many tests including Self-Intersections in 2D: ...
Top 50 recent answers are included