raster_tools.Raster.to_vector
raster_tools.Raster.to_vector#
- Raster.to_vector()[source]#
Convert the raster into a vector where each non-null cell is a point.
The resulting points are located at the center of each grid cell.
- Returns
The result is a dask_geopandas GeoDataFrame with the following columns: value, row, col, geometry. The value is the cell value at the row and column in the raster.
- Return type
result