Skip to content

Instantly share code, notes, and snippets.

View jessebishop's full-sized avatar

Jesse Bishop jessebishop

  • VETRO FiberMap
  • Portland, ME
View GitHub Profile
#!/bin/bash
# rename TMS tiles to the XYZ schema
# no quoting, since all files have simple numeric names
# do not run this anywhere else than INSIDE your tiles directory
# run it like this: find . -name "*.png" -exec ./tms2xyz.sh {} \;
filename=$1
tmp=${filename#*/} # remove to first /