from_bounds_to_polygon#
- from_bounds_to_polygon(left: float, bottom: float, right: float, top: float) Polygon [source]#
Convert the bounds to a
shapely.polygon
.- Parameters:
- Returns:
Polygon corresponding to the bounds
- Return type:
Polygon
Example
>>> poly = from_bounds_to_polygon(0.0, 0.0, 1.0, 1.0) >>> print(poly) 'POLYGON ((1 0, 1 1, 0 1, 0 0, 1 0))'