def to_python(self, value):
        """Returns a GEOS Polygon from bounding box values."""
        value = super(BoundingBoxField, self).to_python(value)
        try:
            bbox = gdal.OGRGeometry.from_bbox(value).geos
        except (ValueError, __HOLE__):
            return []
        bbox.srid = self.srid
        return bbox
dataset/ETHPy150Open bkg/django-spillway/spillway/forms/fields.py/BoundingBoxField.to_python