Skip to main content

Postprocessing Build DEM layers AWS Step Function

This step function postprocessing-build-dem-step-function is used to orchestrate the upload and configuration of Digital Surface Model (DSM) and Digital Terrain Model (DTM) deliverables. The DSM and DTM are both produced in the core processing by metashape.py. The step function runs a parallel process for either DEM deliverable. The default upload behaviour of this step function is different than the others in that by default it does not upload unless upload or legacy is defined.

Step functions

The step functions that are used within this step function:

Lambdas

The lambdas orchestrated by the Step function are the following:

./datastore.properties  # contains database schema information
./indexer.properties # contains coverage information (EPSG)
./timeregex.properties # contains regex string to determine date
./footprint.properties # contains trigger for COG hosting

Invocation description

The following keys are required:

job_id: str, job id reference
client_tag: str, client tag to determine costing

The following keys are required:

legacy: bool, switch to prepare data for Geoserver of Serverless infrastructure, defaults to false.
upload: bool, switch to allow step function to upload to either infrastructure, defaults to true.
options: object, define all options or it will default to default options.
colours: array, list of html colour codes. Defaults to Geoserver colour code set.
nodata: number, overwriting the nodata value. Defaults to tiff nodata
si_unit: str, measure unit used in the legend. Defaults to "m" for meters.

Example

{
"job_id": "20220520151302-1327-0ad42aeec1014698b5efc953b83b5825",
"client_tag": "Some Client",
"legacy": false,
"upload": true,
"options": {
"colours": [
"#2c7bb6",
"#abd9e9",
"#ffffbf",
"#fdae61",
"#d7191c"
],
"nodata": -32767,
"si_unit": "m"
}
}