Distance computation
distance_computation(raster_profile, geometries)
Calculate distance from raster cell to nearest geometry.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
raster_profile |
Union[Profile, dict]
|
The raster profile of the raster in which the distances to the nearest geometry are determined. |
required |
geometries |
GeoDataFrame
|
The geometries to determine distance to. |
required |
Returns:
Type | Description |
---|---|
ndarray
|
A 2D numpy array with the distances computed. |
Source code in eis_toolkit/vector_processing/distance_computation.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|