self interesecting polygons
the script currently derives polygon geometries. Nevertheless, some of the generated polygons are self intersecting and this violates OGC simple features specification. Self intersecting polygons should be avoided and multipolygon geometries should be generates.