windkit.spatial.BBox.from_cornerpts#

classmethod BBox.from_cornerpts(minx=0.0, miny=0.0, maxx=1000.0, maxy=1000.0, crs='epsg:32632')[source]#

Create a bounding box object from min and max values

Parameters:
  • minx (float) – Minimum values of the east-west direction. Defaults to 0.0.

  • maxx (float) – Maximum values of the east-west direction. Defaults to 1000.0.

  • miny (float) – Minimum values of the south-north direction. Defaults to 0.0.

  • maxy (float) – Maximum values of the south-north direction. Defaults to 1000.0.

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

Returns:

A bounding box of the requested coordinates. Note: For degenerate bboxes (zero-size or one-axis-degenerate), the underlying LinearRing will have zero area and Shapely’s .is_valid will return False. This is expected and does not affect bbox operations (buffer, reproject, etc.).

Return type:

BBox

Raises:

ValueError – If minx > maxx or miny > maxy.