Skip to content

Instantly share code, notes, and snippets.

@dnomadb
Created January 12, 2015 22:39
Show Gist options
  • Save dnomadb/02a8318c9f5a437268df to your computer and use it in GitHub Desktop.
Save dnomadb/02a8318c9f5a437268df to your computer and use it in GitHub Desktop.
var tilebelt = require('tilebelt');
var tile = process.argv[2].split('/');
tile = tile.map(function(a, b) {
return parseInt(a);
})
console.log('WHERE quadkey LIKE "_' + tilebelt.tileToQuadkey(tile).split('').join('_') + '%"');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment