merging and simplifying multipolygons