windkit.spatial.BBox.from_point_and_buffer#

classmethod BBox.from_point_and_buffer(x, y, buffer, crs='epsg:4326')[source]#

Create a bounding box object from a point and buffer

Parameters:
  • x (float) – west_east coordinate of the point

  • y (float) – south_north coordinate of the point

  • buffer (float) – buffer distance in meters. Must be positive.

  • crs (int, dict, str or pyproj.crs.CRS) – Value to initialize pyproj.crs.CRS Defaults to “epsg:4326”.

Returns:

A BBox object

Return type:

BBox

Raises:

ValueError – If buffer is not positive.