Rasterization
The Rasterization operator creates a raster from a point vector source.
It offers two options for rasterization: A grid rasterization and a (gaussian) density rasterization (heatmap).
Errors
Section titled “Errors”If the cutoff is not in [0, 1) or the stddev is negative, an error will be thrown.
Parameters
Section titled “Parameters”| Name | Type | Description | Examples |
|---|---|---|---|
| spatialResolution | SpatialResolution | Spatial resolution of the output grid in x/y direction. | {"x":10,"y":10} |
| originCoordinate | Coordinate2D | Origin coordinate to which the raster grid is aligned. | {"x":0,"y":0} |
| densityParams | null or DensityParams | {"cutoff":0.01,"stddev":1} |
Sources
Section titled “Sources”| Name | Type | Description |
|---|---|---|
| vector | VectorOperator | An operator that produces vector data. |
Examples
Section titled “Examples”{ "type": "Raster", "operator": { "type": "Rasterization", "params": { "type": "grid", "spatialResolution": { "x": 10, "y": 10 }, "gridSizeMode": "fixed", "originCoordinate": { "x": 0, "y": 0 } }, "sources": { "vector": { "type": "OgrSource", "params": { "data": "ne_10m_ports", "attributeProjection": null, "attributeFilters": null } } } }}{ "type": "Raster", "operator": { "type": "Rasterization", "params": { "type": "density", "cutoff": 0.01, "stddev": 1 }, "sources": { "vector": { "type": "OgrSource", "params": { "data": "ne_10m_ports", "attributeProjection": null, "attributeFilters": null } } } }}