Updated cleangeometry.sql from http://www.sogis.ch source.