windkit.spatial.BBox

class windkit.spatial.BBox(ring, crs)[source]

WindKit Bounding Box

WindKit Bounding boxes are defined by the center coordinates of the grid rather than the corner coordinates like in GDAL.

Parameters:

Methods

__init__(ring, crs)

bounds()

Return bounds of bounding box.

buffer(distance[, cap_style, join_style])

Buffer bounding box by fixed distance.

envelope()

Create an envelope around the bounding box.

from_bounds(minx, miny, maxx, maxy, *[, crs])

Create a bounding box object from min and max values

from_cornerpts([minx, miny, maxx, maxy, crs])

Create a bounding box object from min and max values

from_ds(ds)

Create a bounding box object from a WindKit Dataset.

from_point_and_buffer(x, y, buffer[, crs])

Create a bounding box object from a point and buffer

plot(**kwargs)

Plot the bounding box.

reproject(to_crs[, use_bounds])

Reproject a bounding box object.

reproject_to_geographic()

Reproject a bounding box object to geographic coordinates.

reproject_to_utm()

Reproject a bounding box object to UTM.

to_geoseries([geo_as_polygon])

Convert Bounding box to geopandas.Geoseries.

to_grid(spacing, heights)

Create a WindKit Grid starting from the minimum points of the bbox.

utm_bbox_from_geographic_coordinate(...[, ...])

Create a bounding box object in UTM coordinates from a geographic coordinate and a buffer distance

Attributes

polygon

Return polygon of bounding box.