@classmethod
    def from_bbox(cls, bbox):
        x0, y0, x1, y1 = bbox
        return OGRGeometry('POLYGON((%s %s, %s %s, %s %s, %s %s, %s %s))' % (
            x0, y0, x0, y1, x1, y1, x1, y0, x0, y0))

    # ### Geometry set-like operations ###
    # g = g1 | g2
Constructs a Polygon from a bounding box (4-tuple).
dataset/ETHPy150Open django/django/django/contrib/gis/gdal/geometries.py/OGRGeometry.from_bbox