2.0.0 • Published 4 years ago

@geops/tree-lib v2.0.0

Weekly downloads
42
License
MIT
Repository
github
Last release
4 years ago

tree-lib

This library provides tree recommendations for different climate change scenarios.

Data

Data for tree type projections is provided as a CSV file and needs to be converted into JSON to be usable by the library.

  1. Install NodeJS 10, Yarn and Docker Compose.
  2. Install dependencies: yarn install
  3. Make sure Docker can overwrite JSON files (ie. on Linux chmod 777 data/*.json)
  4. Run transformation: yarn run data:transform

NaiS

NaiS data is provided as CSV files and imported into the PostgreSQL database for further processing. New data needs to be converted to UTF-8 encoding with the following command: iconv -f ISO-8859-1 -t UTF-8 [source].csv > [target].csv

Vector Tiles

Spatial data is downloaded from different sources and imported into the database. To add or update spatial data have a look into data/spatial. For the app we generate one vector tileset using the following commands:

  1. Start database: yarn run data:start
  2. Export spatial data to GeoJSON files (might take a long time): yarn run data:spatial:export
  3. Transform GeoJSON files to single vector tileset: yarn run data:spatial:tile
  4. Generate font glyphs for Mapbox GL (currently only NodeJS 10): yarn run data:spatial:fonts
  5. Deploy tiles to a webserver or to Netlify (currently maintained by geOps): yarn run data:spatial:deploy

Bugs

Please use the GitHub issue tracker for all bugs and feature requests. Before creating a new issue, do a quick search to see if the problem has been reported already.

Development

2.0.0

4 years ago

1.2.1

5 years ago

1.3.1-beta.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.9.7

5 years ago

0.9.6

5 years ago

0.9.4

5 years ago

0.9.5

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.7

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.9

5 years ago

0.7.8

5 years ago

0.7.8-beta.2

5 years ago

0.7.8-beta.1

5 years ago

0.7.7

5 years ago

0.7.6

5 years ago

0.7.5

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago