From 90b2c9ec918869aa44e13115cd44a46e84ebe600 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Fri, 22 Mar 2024 11:52:25 +0100 Subject: [PATCH] column names for raster vector join --- src/operators/rasterstacker.md | 3 +++ src/operators/rastervectorjoin.md | 26 +++++++++++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/operators/rasterstacker.md b/src/operators/rasterstacker.md index 4aeb8ce..56586dd 100644 --- a/src/operators/rasterstacker.md +++ b/src/operators/rasterstacker.md @@ -9,6 +9,9 @@ All inputs must have the same data type and spatial reference. ## Parameters +| Parameter | Type | Description | Example Value | +| ----------- | ------------- | ----------------------------------------------------------- | -------------------------------------- | +| renameBands | `RenameBands` | Specification of how to rename the bands to avoid conflicts |
{ "type": "default" }
| | Parameter | Type | Description | Example Value | | ----------- | ------------- | ----------------------------------------------------------- | -------------------------------------- | | renameBands | `RenameBands` | Specification of how to rename the bands to avoid conflicts |
{ "type": "default" }
| diff --git a/src/operators/rastervectorjoin.md b/src/operators/rastervectorjoin.md index 5bab28a..ccb6bc0 100644 --- a/src/operators/rastervectorjoin.md +++ b/src/operators/rastervectorjoin.md @@ -30,13 +30,25 @@ The `RasterVectorJoin` operator expects one _vector_ input and one or more _rast The `RasterVectorJoin` operator has the following parameters: -| Parameter | Type | Description | Example Value | -| --------------------------------- | ------------------------- | ----------------------------------------------------------------------------------- | ---------------------------------- | -| `names` | `Array` | Each name reflects the output column of the join result. |
"["NDVI", "Elevation"]"
| -| `featureAggregation` | `first` or `mean` | The aggregation function to use for features covering multiple pixels. |
"first"
| -| `featureAggregationIgnoreNoData` | (optional) `boolean` | Whether to ignore no data values in the aggregation. Defaults to `false` |
false
| -| `temporalAggregation` | `none`, `first` or `mean` | The aggregation function to use for features covering multiple (raster) time steps. |
"none"
| -| `temporalAggregationIgnoreNoData` | (optional) `boolean` | Whether to ignore no data values in the aggregation. Defaults to `false` |
false
| +| Parameter | Type | Description | Example Value | +| --------------------------------- | ------------------------- | ----------------------------------------------------------------------------------- | ------------------------------- | +| `names` | `ColumnNames` | Specify how the new column names are derived from the raster band names. |
"{"type": "default}"
| +| `featureAggregation` | `first` or `mean` | The aggregation function to use for features covering multiple pixels. |
"first"
| +| `featureAggregationIgnoreNoData` | (optional) `boolean` | Whether to ignore no data values in the aggregation. Defaults to `false` |
false
| +| `temporalAggregation` | `none`, `first` or `mean` | The aggregation function to use for features covering multiple (raster) time steps. |
"none"
| +| `temporalAggregationIgnoreNoData` | (optional) `boolean` | Whether to ignore no data values in the aggregation. Defaults to `false` |
false
| + +## Types + +### ColumnNames + +The `ColumnNames` type is used to specify how the new column names are derived from the raster band names. + +| Value | Description | +| ---------------------------------------- | ---------------------------------------------------------------------------- | +| `{"type": "default"}` | Appends " (n)" to the band name with the smallest `n` that avoids a conflict | +| `{"type": "suffix", "values": [string]}` | Specifies a suffix for each input, to be appended to the band names | +| `{"type": "rename", "values": [string]}` | A list of names for each new column | ## Errors