mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-07 20:44:18 -07:00
Tile Generation Script (#433)
This commit is contained in:
parent
849437c9d3
commit
5cb00ef0ce
4 changed files with 69 additions and 54 deletions
|
@ -128,6 +128,8 @@ Here's a list of commands:
|
|||
- Generate census data: `docker exec j40_data_pipeline_1 python3 application.py census-data-download"`
|
||||
- Run all ETL processes: `docker exec j40_data_pipeline_1 python3 application.py etl-run"`
|
||||
- Generate Score: `docker exec j40_data_pipeline_1 python3 application.py score-run"`
|
||||
- Generate Score with Geojson and high and low versions: `docker exec j40_data_pipeline_1 python3 application.py geo-score`
|
||||
- Generate Map Tiles: `docker exec j40_data_pipeline_1 python3 application.py generate-map-tiles`
|
||||
|
||||
## Local development
|
||||
|
||||
|
@ -154,15 +156,18 @@ You can run the Python code locally without Docker to develop, using Poetry. How
|
|||
- Then run `poetry run python application.py census-data-download`
|
||||
Note: Census files are not kept in the repository and the download directories are ignored by Git
|
||||
|
||||
### Generating mbtiles
|
||||
### Generating Map Tiles
|
||||
|
||||
- TBD
|
||||
- Make sure you have Docker running in your machine
|
||||
- Start a terminal
|
||||
- Change to this directory (i.e. `cd data/data-pipeline`)
|
||||
- Then run `poetry run python application.py generate-map-tiles`
|
||||
|
||||
### Serve the map locally
|
||||
|
||||
- Start a terminal
|
||||
- Change to this directory (i.e. `cd data/data-pipeline`)
|
||||
- Run: `docker run --rm -it -v ${PWD}/data/tiles:/data -p 8080:80 maptiler/tileserver-gl`
|
||||
- For USA high zoom: `docker run --rm -it -v ${PWD}/data/score/tiles/high:/data -p 8080:80 maptiler/tileserver-gl`
|
||||
|
||||
### Running Jupyter notebooks
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue