init copy of of tile download script and py that uses a bb to determine what tiles intersect with the bb and download those tiles.
download_tiles.sh
Usage: $0 Bounding_Box URL Output_Directory Number_of_Processes
Example Usage: $0 -74.251961,40.512764,-73.755405,40.903125 https://thewebsite.com/dir /data/tiles 10 false
NOTE: Output directory will be deleted and recreated.
get_tiles.py
./get_tiles.py -b ${BBOX} > urls.txt
Based on TileHierarchy and Tiles logic from Valhalla. We do check our bb and make sure it does not cross 180/-180, if it does we split it into two bounding boxes.
Creates output that is used to download and save tiles via cURL
Example output from NYC BB:
closes #62
init copy of of tile download script and py that uses a bb to determine what tiles intersect with the bb and download those tiles.
download_tiles.sh Usage: $0 Bounding_Box URL Output_Directory Number_of_Processes
Example Usage: $0 -74.251961,40.512764,-73.755405,40.903125 https://thewebsite.com/dir /data/tiles 10 false
NOTE: Output directory will be deleted and recreated.
get_tiles.py ./get_tiles.py -b ${BBOX} > urls.txt Based on TileHierarchy and Tiles logic from Valhalla. We do check our bb and make sure it does not cross 180/-180, if it does we split it into two bounding boxes. Creates output that is used to download and save tiles via cURL Example output from NYC BB:
0/002/906.gph 1/046/905.gph 1/046/906.gph 2/000/752/102.gph 2/000/752/103.gph 2/000/752/104.gph 2/000/753/542.gph 2/000/753/543.gph 2/000/753/544.gph