easysnowdata.utils.convert_bbox_to_geodataframe#
- easysnowdata.utils.convert_bbox_to_geodataframe(bbox_input: GeoDataFrame | tuple | BaseGeometry | None) GeoDataFrame[source]#
Convert a bounding-box input of any supported type to a GeoDataFrame.
- Parameters:
bbox_input (
geopandas.GeoDataFrameortupleorshapely.geometryorNone) –Accepted forms:
geopandas.GeoDataFrame— returned unchanged.4-element tuple
(xmin, ymin, xmax, ymax)in EPSG:4326.Any Shapely geometry — wrapped in a single-row GeoDataFrame.
None— returns a GeoDataFrame covering the entire world.
- Returns:
geopandas.GeoDataFrame– Single-row GeoDataFrame in EPSG:4326.