On Jun 24, 2009, at 12:36 AM, Anartz Unamuno wrote: > Hi, > > Is there a way of asking Shapely (or any other python module) to > concatenate hole coordinates into the geometry exterior coordinates. > This way, instead of getting a polygon with holes, I get a simple > polygon where the holes are in the exterior boundary. Something > similar to the example attached (left is what I know how to get from > Shapely, right is what I would like to get) > > Thanks > > regards, anartz > > <example.png>_______________________________________________
There's no method in Shapely or GEOS to do this, though you could write your own algorithm. The cutlines would probably render the polygons invalid as far as GEOS is concerned, and you wouldn't be able to perform any spatial operations on them. Cheers, Sean -- Sean Gillies Software Engineer Institute for the Study of the Ancient World New York University _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
