Skip to main content

Convey your CIROH models and data

Tethys Platform has been designed to lower the barrier to geospatial web app development

Geospatial and scientfic web applications for the 21st century

CIROH application example interface

Tethys is an open-source Python-based framework designed specifically for developing geospatial web applications. It simplifies the creation of apps that process, visualize, and analyze spatial data.

*
Install WSL
$ wsl --install
*
Install Miniconda
$ mkdir -p ~/miniconda3
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
$ bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
$ rm ~/miniconda3/miniconda.sh
*
Refresh and Init your Terminal
$ source ~/miniconda3/bin/activate
$ conda init --all
1
Create an Environment
$ conda create -n tethys -c conda-forge tethys-platform
2
Activate Environment
$ conda activate tethys
3
Start Developing
$ tethys quickstart
4
Write your code
from tethys_sdk.layouts import MapLayout
from tethys_sdk.routing import controller
from .app import App


@controller(name="home")
class HomeMap(MapLayout):
app = App
base_template = f'{App.package}/base.html'
map_title = 'Dam Inventory'
map_subtitle = 'Tutorial'
basemaps = ['OpenStreetMap', 'ESRI']