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:
- ring ( - shapely.geometry.LinearRing) – Square ring that envelopes the boundaries of the data
- crs (int, dict, str or - pyproj.crs.CRS) – Value to initialize- pyproj.crs.CRS
 
 - 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 a bounding box object to geographic coordinates. - 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 - Return polygon of bounding box.