adding layer to mvts (#503)

* adding layer to mvts

* small fix for GHA
This commit is contained in:
Jorge Escobar 2021-08-12 10:56:54 -04:00 committed by GitHub
parent 09b3ba6715
commit d259d97ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -1,12 +1,8 @@
# This runs tox in the two directories under data # This runs tox in the two directories under data
name: Data Checks name: Data Checks
on: on:
push:
pull_request: pull_request:
branches: [ main ] # runs on any PR against main branches: [ main ] # runs on any PR against main
jobs: jobs:
data-pipeline: data-pipeline:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -14,7 +10,6 @@ jobs:
matrix: matrix:
# checks all of the versions allowed in pyproject.toml # checks all of the versions allowed in pyproject.toml
python-version: [3.7, 3.8, 3.9] python-version: [3.7, 3.8, 3.9]
steps: steps:
# installs python # installs python
# one execution of the tests per version listed above # one execution of the tests per version listed above

View file

@ -38,7 +38,7 @@ def generate_tiles(data_path: Path) -> None:
logger.info("Generating USA High mvt folders and files") logger.info("Generating USA High mvt folders and files")
cmd = "tippecanoe " cmd = "tippecanoe "
cmd += f"--minimum-zoom={USA_HIGH_MIN_ZOOM} --maximum-zoom={USA_HIGH_MAX_ZOOM} --no-tile-compression " cmd += f"--minimum-zoom={USA_HIGH_MIN_ZOOM} --maximum-zoom={USA_HIGH_MAX_ZOOM} --no-tile-compression "
cmd += f"--output-to-directory={high_tile_path} " cmd += f"--output-to-directory={high_tile_path} --layer=blocks "
cmd += str(score_geojson_dir / "usa-high.json") cmd += str(score_geojson_dir / "usa-high.json")
call(cmd, shell=True) call(cmd, shell=True)
@ -54,6 +54,6 @@ def generate_tiles(data_path: Path) -> None:
logger.info("Generating USA Low mvt folders and files") logger.info("Generating USA Low mvt folders and files")
cmd = "tippecanoe " cmd = "tippecanoe "
cmd += f"--minimum-zoom={USA_LOW_MIN_ZOOM} --maximum-zoom={USA_LOW_MAX_ZOOM} --no-tile-compression " cmd += f"--minimum-zoom={USA_LOW_MIN_ZOOM} --maximum-zoom={USA_LOW_MAX_ZOOM} --no-tile-compression "
cmd += f"--output-to-directory={low_tile_path} " cmd += f"--output-to-directory={low_tile_path} --layer=blocks "
cmd += str(score_geojson_dir / "usa-low.json") cmd += str(score_geojson_dir / "usa-low.json")
call(cmd, shell=True) call(cmd, shell=True)