Jump to content
Калькуляторы

Карта подводного интернета 2014 от TeleGeography

Выкачивается так:

for X in `seq 0 31`; do for Y in `seq 0 31`; do echo "$X:$Y"; wget --quiet --output-document=submarine-cable-map-2014-zoom5-x$X-y$Y.png "http://c.tiles.telegeography.com/maps/submarine-cable-map-2014/5/$X/$Y.png"; sleep .1; done; done;

А вот склеить чем, не знаю.

Хотя... Если только так:

(echo -e "<html>\n<body>\n<table border=0 cellspacing=0 cellpadding=0 >"; for Y in `seq 0 31`; do echo "<tr>"; for X in `seq 0 31`; do echo "<td><img src=\"submarine-cable-map-2014-zoom5-x$X-y$Y.png\" /></td>"; done; echo "</tr>"; done; echo -e "</table>\n</body>\n</html>") > submarine-cable-map-2014-zoom5.html

Edited by ThreeDHead

Share this post


Link to post
Share on other sites

кажется, случился хабраэффект, сайт полег)

Share this post


Link to post
Share on other sites

а зачем? у вас много межконтинентальных подводных линков? иои плнируете свой проложить? или я не знаю... баловство все это

Share this post


Link to post
Share on other sites

Поклеить можно ImageMagick-ом при помощи утилиты montage

Тады так:

 

(echo -e "#\!/usr/sh\\n\\nmontage \\"; for Y in `seq 0 31`; do for X in `seq 0 31`; do echo "submarine-cable-map-2014-zoom5-x$X-y$Y.png \\"; done; done; echo -n "-geometry +32+32 -mode Concatenate submarine-cable-map-2014-zoom5.png") > submarine-cable-map-2014-zoom5.sh && chmod +xx submarine-cable-map-2014-zoom5.sh

Share this post


Link to post
Share on other sites

-tile 32x32 еще чтобы работало быстрее.

 

Только "-geometry +32+32":

$ time ./submarine-cable-map-2014-zoom5.sh

real	0m9.174s
user	0m12.429s
sys	0m0.924s

Добавляем "-tile 32x32":

$ time ./submarine-cable-map-2014-zoom5.sh

real	0m9.221s
user	0m12.441s
sys	0m0.904s

То же самое...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this