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

_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to