cosmetics
security if polygon is not simple to avoid gdal assert
cleaning
increased tolerance to avoid double points