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

Поклеить можно 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.