#NEWLINE# @ classmethod #NEWLINE# def from_bbox( cls , bbox ) : #NEWLINE# #INDENT# 'Constructs a Polygon from a bounding box (4-tuple).' #NEWLINE# ( x0 , y0 , x1 , y1 ) = bbox #NEWLINE# return GEOSGeometry ( ( 'POLYGON((%s %s, %s %s, %s %s, %s %s, %s %s))' % ( x0 , y0 , x0 , y1 , x1 , y1 , x1 , y0 , x0 , y0 ) ) )