Last active
December 19, 2015 20:09
-
-
Save asciipip/6011597 to your computer and use it in GitHub Desktop.
Script for rerendering all of my tirex tiles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Extent of the rendering database; tiles outside this are pointless. | |
| latlon="lon=-125.0841,-66.9251 lat=24.2520,49.3845" | |
| for map in cutouts; do | |
| # rerender everything that's expired. | |
| for z in `seq 2 16`; do | |
| prio=$(calc 70 - $z) | |
| tirex-batch -f 'exists;older(/var/lib/tirex/tiles/planet-import-complete)' -p $prio $latlon map=$map z=$z | |
| done | |
| # Only tiles from 11+ are expired normally, so rerender everything from 2-10. | |
| for z in `seq 2 10`; do | |
| prio=$(calc 100 - $z) | |
| tirex-batch -f exists -p $prio $latlon map=$map z=$z | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment