automatic repair of GIS polygons