Skip to content

Commit

Permalink
Add closer zooms if still dropping data
Browse files Browse the repository at this point in the history
  • Loading branch information
watmildon committed Jun 3, 2024
1 parent 58604a9 commit b9f0f8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-tiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ osmium tags-filter --remove-tags --overwrite puerto-rico-latest.osm.pbf w/tiger:
osmium export --attributes type,id,version,timestamp --overwrite puerto-rico-latest-tiger.osm.pbf -o puerto-rico-latest-tiger.geojson

# generate US and PR tiger tile file
tippecanoe -zg -l highways -o us-latest.pmtiles --drop-densest-as-needed us-latest-tiger.geojson puerto-rico-latest-tiger.geojson
tippecanoe -zg -l highways -o us-latest.pmtiles --drop-densest-as-needed --extend-zooms-if-still-dropping us-latest-tiger.geojson puerto-rico-latest-tiger.geojson

# generate US and PR addr:street files
osmium tags-filter --remove-tags --overwrite us-latest.osm.pbf nwr/addr:street -o us-latest-addrstreet.osm.pbf
Expand All @@ -57,15 +57,15 @@ osmium tags-filter --remove-tags --overwrite puerto-rico-latest-tiger.osm.pbf nw
osmium export --overwrite puerto-rico-latest-addrstreet.osm.pbf -o puerto-rico-latest-addrstreet.geojson

# generate US and PR addr:street tile file
tippecanoe -zg -l streetaddress -o us-latest-streetaddress.pmtiles --drop-densest-as-needed us-latest-addrstreet.geojson puerto-rico-latest-addrstreet.geojson
tippecanoe -zg -l streetaddress -o us-latest-streetaddress.pmtiles --drop-densest-as-needed --extend-zooms-if-still-dropping us-latest-addrstreet.geojson puerto-rico-latest-addrstreet.geojson

# generate WAMap layer
osmium export --attributes type,id,version,timestamp washington-latest.osm.pbf -o washington-latest.geojson
tippecanoe -zg -l allFeatures -o washington-latest.pmtiles --drop-densest-as-needed washington-latest.geojson
tippecanoe -zg -l allFeatures -o washington-latest.pmtiles --drop-densest-as-needed --extend-zooms-if-still-dropping washington-latest.geojson

# generate UTMap layer
osmium export --attributes type,id,version,timestamp utah-latest.osm.pbf -o utah-latest.geojson
tippecanoe -zg -l allFeatures -o utah-latest.pmtiles --drop-densest-as-needed utah-latest.geojson
tippecanoe -zg -l allFeatures -o utah-latest.pmtiles --drop-densest-as-needed --extend-zooms-if-still-dropping utah-latest.geojson

# Shuffle everything into the upload dir
mv us-latest.pmtiles tilesets/us-latest.pmtiles
Expand Down

0 comments on commit b9f0f8c

Please sign in to comment.