Skip to content

GeospatialResearch/Otakaro-Digital-Twin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ōtākaro Digital Twin

image

Purpose of the Ōtākaro Digital Twin

"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.

Background

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.

Basic running instructions

The following list defines the basic steps required to set up and run the digital twin.

Requirements

Required Credentials:

Create API keys for each of these services. You may need to create an account and log in

Starting the Digital Twin application (localhost)

  1. Clone this repository to your local machine.

  2. Create a file called api_keys.env, copy the contents of api_keys.env.template and fill in the blank values with API credentials from the above links.

  3. 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 the POSTGRES_PASSWORD variable and CESIUM_ACCESS_TOKEN. You may configure other variables as needed.

  4. From the University of Canterbury network drives, copy U:/Research/FloodRiskResearch/DigitalTwin/stored_data/roof_surfaces_data to a new directory Digital-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.
  5. From project root, run the command docker compose up -d to run the database, backend web servers, and helper services.

  6. You may inspect the logs of the backend using docker compose logs -f backend celery_worker

Using the Digital Twin application

  1. 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.
  2. The API is available by default on http://localhost:5000. Visit https://geospatialresearch.github.io/Digital-Twins/api for API documentation.

Setup for ŌDT project software developers

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.

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.7%
  • TeX 1.2%
  • Dockerfile 0.7%
  • JavaScript 0.5%
  • Shell 0.5%
  • Scheme 0.2%
  • Other 0.2%