Last active
August 29, 2015 14:11
-
-
Save hrwgc/8f34ce664a26ee8381a3 to your computer and use it in GitHub Desktop.
mercantile find web mercator tiles for a given zoom level based on geojson feature collection
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/bash | |
function to_tiles(){ | |
geojson=$1; | |
zoom=$2; | |
jq -c .features[] < "$geojson" | mercantile tiles $zoom | sort | uniq | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment