Trying to handle union of polygons