Reprojection
The Reprojection operator reprojects data from one spatial reference system to another.
It accepts exactly one input which can either be a raster or a vector data stream.
The operator produces all data that, after reprojection, is contained in the query rectangle.
Data Type Specifics
Section titled “Data Type Specifics”The concrete behavior depends on the data type.
Vector Data
Section titled “Vector Data”The operator reprojects all coordinates of the features individually. The result contains all features that, after reprojection, are intersected by the query rectangle.
Raster Data
Section titled “Raster Data”To create tiles in the target projection, the operator loads corresponding tiles in the source projection. For each output pixel, the value of the nearest input pixel is used.
If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values.
Inputs
Section titled “Inputs”The Reprojection operator expects exactly one raster or vector input.
Errors
Section titled “Errors”The operator returns an error if the target projection is unknown or if input data cannot be reprojected.
Parameters
Section titled “Parameters”| Name | Type | Description | Examples |
|---|---|---|---|
| deriveOutSpec | DeriveOutRasterSpecsSource | Controls how raster output bounds are derived. The default projectionBounds usually keeps a projection-aligned target grid,while dataBounds derives it directly from source data bounds. | |
| targetSpatialReference | string | Target spatial reference system. | "EPSG:32632" |
Sources
Section titled “Sources”| Name | Type | Description |
|---|---|---|
| source | SingleRasterOrVectorOperator | It is either a set of RasterOperator or a single VectorOperator |
Examples
Section titled “Examples”{ "type": "Reprojection", "params": { "deriveOutSpec": "projectionBounds", "targetSpatialReference": "EPSG:32632" }, "sources": { "source": { "type": "MockPointSource", "params": { "points": [ { "x": 8.77069, "y": 50.80904 } ], "spatialBounds": { "type": "none" } } } }}