Vector density
vector_density(geodataframe, raster_profile, buffer_value=None, statistic='density')
Compute density of geometries within raster.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
geodataframe |
GeoDataFrame
|
The dataframe with vectors of which density is computed. |
required |
base_raster_profile |
Base raster profile to be used for determining the grid on which vectors are burned in. If None, the geometries and provided resolution value are used to compute grid. |
required | |
buffer_value |
Optional[float]
|
For adding a buffer around passed geometries before computing density. |
None
|
statistic |
Literal[density, count]
|
The statistic to use in density computation. Defaults to "density". |
'density'
|
Returns:
Type | Description |
---|---|
ndarray
|
Computed density of vector data. |
Source code in eis_toolkit/vector_processing/vector_density.py
10 11 12 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 40 41 42 43 |
|