Skip to content

Commit 105afd0

Browse files
authored
docs(lib): update README.md, add documentation for data:start_log
1 parent d09d920 commit 105afd0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ NaiS data is provided as CSV files and imported into the PostgreSQL database for
1919

2020
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:
2121

22-
1. Restart database: `pnpm run data:stop`, then `pnpm run data:start`. This generates the sqlite database with most of the non-spatial data and tables. This downloads the necessary spatial data and writes it in the database. CAUTION: data.geo.admin.ch files are [downloaded via docker](https://github.com/geops/tree-app/blob/master/lib/data/spatial/1-import.sh#L63), which might cause issues with file permissions. After the first run, you might need to adjust the permissions of the unzipped folders (e.g. `sudo chmod 777 altitudinal_zones_1995`) and rerun this step.
22+
1. Restart database: `pnpm run data:stop`, then `pnpm run data:start`. This generates the sqlite database with most of the non-spatial data and tables. This downloads the necessary spatial data and writes it in the database. CAUTION: data.geo.admin.ch files are [downloaded via docker](https://github.com/geops/tree-app/blob/master/lib/data/spatial/1-import.sh#L63), which might cause issues with file permissions. After the first run, you might need to adjust the permissions of the unzipped folders (e.g. `sudo chmod 777 altitudinal_zones_1995`) and rerun this step. This step should take approx. 8 minutes. The full log of the build is written into `lib/data/data:start_log.txt`. Before the next step, check the log for errors
2323
2. Remove all geojson files from data/spatial/export folder: `find data/spatial/export -type f -name "*.geojson" -delete`
24-
3. Export spatial data to GeoJSON files (might take a long time): `pnpm run data:spatial:export`
24+
3. Export spatial data to GeoJSON files (takes approx. 50 minutes): `pnpm run data:spatial:export`
2525
4. Transform GeoJSON files to single vector tileset: `pnpm run data:spatial:tile`
2626
5. Generate font glyphs for Mapbox GL: `pnpm run data:spatial:fonts` (you might have to use an earlier node version for this)
2727
6. Deploy tiles local by running `pnpm run data:spatial:deploy:local` and change REACT_APP_VECTOR_TILES_ENDPOINT to localhost in `.env` (reload new endppoint with `pnpm dev`)
@@ -65,4 +65,4 @@ Please use the [GitHub issue tracker](https://github.com/geops/tree-app/issues)
6565
## Development
6666

6767
- Run `pnpm run test:watch` to continuously test in development.
68-
- Use [Angular Commit Message Conventions](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) for commit messages.
68+
- Use [Angular Commit Message Conventions](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) for commit messages.

0 commit comments

Comments
 (0)