gemgis.utils.getfeatures
gemgis.utils.getfeatures#
- gemgis.utils.getfeatures(extent: Optional[List[Union[int, float]]], crs_raster: Union[str, dict], crs_bbox: Union[str, dict], bbox: shapely.geometry.polygon.Polygon = None) list #
Creating a list containing a dict with keys and values to clip a raster
- Parameters
extent (Union[List[Union[int, float]]) – List of bounds (minx,maxx, miny, maxy), e.g.
extent=[0, 972, 0, 1069]
crs_raster (Union[str, dict]) – String or dict containing the raster crs, e.g.
crs='EPSG:4647'
crs_bbox (Union[str, dict]) – String or dict containing the bbox crs, e.g.
crs='EPSG:4647'
bbox (shapely.geometry.polygon.Polygon) – Shapely polygon defining the bbox used to get the coordinates, , e.g.
polygon = Polygon([(0, 0), (0, 10), (10, 10), (10, 0)])
- Returns
data – List containing a dict with keys and values to clip raster
- Return type
list
New in version 1.0.x.