"To establish an accessible & innovative platform to collect & communicate knowledge about the Ōtākaro River, serving as a tool to give voice to the Ōtākaro and its importance to the community."
The platform will aim to foster collaboration to support and encourage:
- Holistic decision making & governance, to restore te mauri o te awa,
- Environmental health and resilience outcomes,
- Representation of the mauri of the Ōtākaro and;
- Amplify the significance of the Ōtākaro to the region and people by allowing users to model potential future narratives and tell stories of the Ōtākaro’s past & present.
The Ōtākaro Digital Twin purpose is guided by the Te Mana o te Wai framework and aims to be adaptable to other locations and environments.
The Ōtākaro Digital Twin was produced by the Geospatial Research Institute (GRI) and Building Innovation Partnership at University of Canterbury, New Zealand.
It was created for Christchurch City Council, using a fork of GRI's Spatial Digital Twin backend project.
Code developed specifically for the Ōtākaro Digital Twin resides within the otakaro/
directory, and is owned by Christchurch City Council.
The Ōtākaro Digitial Twin front-end is based on Terriajs/TerriaMap, via our fork.
The following list defines the basic steps required to set up and run the digital twin.
Create API keys for each of these services. You may need to create an account and log in
- Stats NZ API Key
- LINZ API Key
- MFE API Key
- NIWA Application API Key - Create an app that has the Tide API enabled.
- Cesium Ion Access Token
-
Clone this repository to your local machine.
-
Create a file called
api_keys.env
, copy the contents ofapi_keys.env.template
and fill in the blank values with API credentials from the above links. -
Create a file called
.env
in the project root, copy the contents of.env.template
and fill in all blank fields unless a comment says you can leave it blank. Blank fields to fill in include things like thePOSTGRES_PASSWORD
variable andCESIUM_ACCESS_TOKEN
. You may configure other variables as needed. -
From the University of Canterbury network drives, copy
U:/Research/FloodRiskResearch/DigitalTwin/stored_data/roof_surfaces_data
to a new directoryDigital-Twins/roof_surfaces_data
.- This is a temporary solution until we have full approval for this dataset. Issue #283. If you are an external developer in need of access please contact us.
-
From project root, run the command
docker compose up -d
to run the database, backend web servers, and helper services. -
You may inspect the logs of the backend using
docker compose logs -f backend celery_worker
- With the docker compose application running, the default web address is http://localhost:3001 to view the web application.
- Choose data catalogue items with the "Explore map data" button.
- To perform custom modelling, "Ōtākaro Digital Twin Custom Analysis" has configurable models.
- The API is available by default on http://localhost:5000. Visit https://geospatialresearch.github.io/Digital-Twins/api for API documentation.
Visit our the wiki for some instructions on how to set up your development machine to work with on the ŌDT project or deploy the software.