Why is this polygon “self intersected” and invalid? thanks... It looks like I did not zoom enough ! As for the database, I can live with approximate arc (linestring), I don't need that much precision. I simply need to write something to fix bad geometry like this one.