shapely.box#
- box(xmin, ymin, xmax, ymax, ccw=True, **kwargs)#
Create box polygons.
- Parameters:
- xminarray_like
- yminarray_like
- xmaxarray_like
- ymaxarray_like
- ccwbool, default True
If True, box will be created in counterclockwise direction starting from bottom right coordinate (xmax, ymin). If False, box will be created in clockwise direction starting from bottom left coordinate (xmin, ymin).
- **kwargs
For other keyword-only arguments, see the NumPy ufunc docs.
Examples
>>> box(0, 0, 1, 1) <POLYGON ((1 0, 1 1, 0 1, 0 0, 1 0))> >>> box(0, 0, 1, 1, ccw=False) <POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))>