floodresilience.blueprint

Endpoints and flask configuration for the Flood Resilience Digital Twin

Attributes

flood_resilience_blueprint

processes

process_descriptor

service

Functions

wps(→ pywps.Service)

End point for OGC WebProcessingService spec, allowing clients such as TerriaJS to request processing.

refresh_lidar_data_sources(→ flask.Response)

Update LiDAR data sources to the most recent.

Module Contents

floodresilience.blueprint.flood_resilience_blueprint
floodresilience.blueprint.processes
floodresilience.blueprint.process_descriptor
floodresilience.blueprint.service
floodresilience.blueprint.wps() pywps.Service

End point for OGC WebProcessingService spec, allowing clients such as TerriaJS to request processing.

Returns:

The PyWPS WebProcessing Service instance

Return type:

Service

floodresilience.blueprint.refresh_lidar_data_sources() flask.Response

Update LiDAR data sources to the most recent. Web-scrape OpenTopography metadata to update the datasets table containing links to LiDAR data sources. Takes a long time to run but needs to be run periodically so that the datasets are up to date. Supported methods: POST

Returns:

ACCEPTED is the expected response. Response body contains Celery taskId

Return type:

Response