Created
January 3, 2014 20:06
-
-
Save apeyroux/8245541 to your computer and use it in GitHub Desktop.
Test TileMill server with ile de france bbox. time ./hsl | xargs wget -nv -O NULL --output-file tilemill.log
This file contains 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
#!/usr/local/bin/runhaskell | |
import HSlippyMap | |
listLevel mi ma z = | |
mapM_ (\(x,y) -> mapM (\y'-> | |
print $ "http://127.0.0.1:20008/tile/openstreetmap-carto/" ++ show z ++ "/" ++ show x ++ "/" ++ show y' ++ ".png") y) | |
[(x,[(minimum [tymin, tymax])..(maximum [tymin,tymax])]) | x <- [(minimum [txmin, txmax])..(maximum [txmin, txmax])]] | |
where | |
min = tileFromLatLong (fst mi) (snd mi) z | |
max = tileFromLatLong (fst ma) (snd ma) z | |
txmin = tx min | |
txmax = tx max | |
tymax = ty min | |
tymin = ty max | |
main :: IO() | |
main = mapM_ (listLevel (49.36, 3.71) (48.23,0.93)) [0..19] |
Author
apeyroux
commented
Jan 3, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment