Hi all,
I have read (not all) shapely documentation and I have found
"object.envelope" method: it "returns a representation of the point or
smallest rectangular polygon that contains the object."

I have tested it, and it seems to me that it returns not the smallest
rectangular polygon that contains the object, but the smallest rectangular
polygon - whose sides are parallel to x and y axes - that contains the
object. In other words the bounding box. Am I wrong?

I have used this code:
polygon = Polygon([(76, 840), (144, 962), (239, 929),(136, 784)]) 
print polygon.envelope

I obtain this:
POLYGON ((76.0000000000000000 784.0000000000000000, 239.0000000000000000
784.0000000000000000, 239.0000000000000000 962.0000000000000000,
76.0000000000000000 962.0000000000000000, 76.0000000000000000
784.0000000000000000))

I read this documentation page:
http://gispython.org/shapely/docs/1.2/manual.html

Thank you,

a


-----
Andrea Borruso

----------------------------------------------------
email: [email protected]
website: http://blog.spaziogis.it
my 2.0 life: http://aborruso.spaziogis.it
feed: http://feeds2.feedburner.com/Tanto
38° 7' 48" N, 13° 21' 9" E
----------------------------------------------------
-- 
View this message in context: 
http://community-gispython-org-community-projects.955323.n3.nabble.com/Bounding-Box-and-Minimum-Bounding-Rectangle-tp1013742p1014003.html
Sent from the Community -- gispython.org community projects mailing list 
archive at Nabble.com.
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to