On Thu, Jun 3, 2010 at 4:59 PM, Jaakko Salli <[email protected]> wrote: > > Hi, > > It appears that Polygon.bounds fails with AttributeError > when the polygon envelope is a point. I would expect this > to work, especially since Point.bounds does. > > Test case: > > from shapely.geometry import Polygon, Point > > coords = (1.0, 1.0) > > point = Point(coords) > # Point.bounds succeeds > print(point.bounds) > > poly = Polygon([coords, coords, coords, coords, coords]) > # Polygon.bounds fails > print(poly.bounds) > > > This is with Shapely 1.2. > > Thanks, > Jaakko
Confirmed. I have a fix for it in the master branch of http://github.com/sgillies/shapely -- Sean _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
