Last active
January 1, 2016 08:19
-
-
Save apeyroux/8117832 to your computer and use it in GitHub Desktop.
Force the solicitation of tiles on #OSM cache server
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
import HSlippyMap | |
main = do | |
mapM (\(x,y) -> mapM (\y'-> print $ "http://openstreetmap.asi.mi/" ++ 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 49.13 3.05 8 | |
max = tileFromLatLong 48.57 1.66 8 | |
txmin = tx min | |
txmax = tx max | |
tymax = ty min | |
tymin = ty max | |
z = tz min |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HSlippyMap Exemple
Why ?
Force the solicitation of tiles on #OSM cache server
Install
cabal install HSlippyMap
ghc --make thislpaste.hs
Use
ja@x220:
/codaz/HSlippyMap$ ./hsl | xargs wget -nv -O NULL --output-file osm.asi.log/codaz/HSlippyMap$ cat osm.asi.logja@x220:
2013-12-24 22:04:46 URL:http://tile.openstreetmap.org/8/129/87.png [37753/37753] -> "NULL" [1]
2013-12-24 22:04:46 URL:http://tile.openstreetmap.org/8/129/88.png [36997/36997] -> "NULL" [1]
2013-12-24 22:04:46 URL:http://tile.openstreetmap.org/8/130/87.png [36749/36749] -> "NULL" [1]
2013-12-24 22:04:47 URL:http://tile.openstreetmap.org/8/130/88.png [35550/35550] -> "NULL" [1]
FINISHED --2013-12-24 22:04:47--
Total wall clock time: 0,7s
Downloaded: 4 files, 144K in 0,4s (364 KB/s)