index
Functions
lambda_handler
@tracer.capture_lambda_handler
@logger.inject_lambda_context()
def lambda_handler(event: dict, context: dict) -> dict
Lambda event handler to generate the K-Nearest Neighbour calculation in a PostGIS table
Arguments:
eventdict - Input event.contextdict - Input context.
Raises:
e- General panic when something fails. Ill-defined.
Returns:
dict- output event.
Examples:
{
"job_id": "20211213122100-1336-983475iubf934hvc39p4hf",
"options": {
"threshold": 10,
"neighbours": 4
},
"legacy": false,
"order_date": "2020-01-01",
"workspace": "palmci_96_civ_3"
}