Skip to content

Instantly share code, notes, and snippets.

@asciipip
Last active December 19, 2015 20:09
Show Gist options
  • Select an option

  • Save asciipip/6011597 to your computer and use it in GitHub Desktop.

Select an option

Save asciipip/6011597 to your computer and use it in GitHub Desktop.
Script for rerendering all of my tirex tiles.
#!/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