Skip to main content

Postprocessing Build Slope layer AWS Step Function

This step function postprocessing-build-slope-step-function is used to orchestrate the building of a slope map and uploading the results to a specified Geoserver. The function requires a succesfull DTM, run postprocessing-build-dem-step-function if that is not the case. Processing the slope map is expensive since DEM data is quite large and we need to perform some blurring to smooth out the high resolution DEMs. Therefore this step function leverages an EC2 to run the extensive computations. Slope mapping is essentially the first derivative of elevation. The DTM gets cracked up in tiles with similar dimensions to RGB tiles and the EC2 processes these tiles in parallel batches.

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

Example

{
"job_id": "20220520151302-1327-0ad42aeec1014698b5efc953b83b5825",
"client_tag": "Some Client"
}