On Nov 26, 2009, at 11:35 PM, Jassin MEKNASSI wrote: >> >>> >>> >>> hi I want to union all the polygons in a list of elements and get >>> all the distinct polygons at the end. >>> union seems to produce a polygon if the 2 objects intersect and a >>> multipolygon if not. >>> If i Union all the elements in a polygon set i would get at the en >>> only one multipolygon. (reduce +lambda + union) >>> How can i get the distinct polygons objects from a multipolygon? >>> >>> Thanks >> >
Multipart geometries have a "geoms" attribute that you can use to iterate over the parts. Cheers, -- Sean _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
