.
.
.
. .
. . .
.
.
This repository contains scripts to fetch trees datasets for various councils in Victoria and load it into a database. It also contains a simple static website with a map of all the trees. This requires TileMill running server-side.
The source code for the webpage at http://opentrees.org is also here.
sudo apt-get install -y wget gdal-bin jq
- gettrees.sh: download a number of individual datasets
- loadtrees-db.sh: load each dataset into its own PostGIS table
- mergetrees.sql: extract data from fields into standard schema
- cleantrees.sql: fix up all kinds of data errors
PGREST provides a lookup service for data.
wget 'https://github.com/begriffs/postgrest/releases/download/v0.2.10.0/postgrest-0.2.10.0-linux.tar.xz' tar xf postgrest*.xz
sudo -u postgres createuser readtrees
sudo -u postgres psql -d trees <<EOF alter user readtrees with password 'angpohora';
EOF
nohup ./postgrest-0.2.10.0 -d trees -U readtrees --db-pass angpohora -a readtrees &
All code (so far) written by Steve Bennett (stevage@gmail.com, stevebennett.me, @stevage1)
All code released under Creative Commons Attribution (CC-BY 3.0 AU)