Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.
Trekbuddy is on Github now

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
spojenie mapy rozrezanej cez tb cutter?

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Česky-Slovensky
View previous topic :: View next topic  
Author Message
guest



Joined: 08 Oct 2006
Posts: 5020

PostPosted: Wed Nov 21, 2007 9:48 pm    Post subject: spojenie mapy rozrezanej cez tb cutter? Reply with quote

Je nejaky tool co dokaze spojit tie rezy do jednej velkej mapy automaticky?
Back to top
View user's profile Send private message Visit poster's website
tomXX



Joined: 21 Nov 2007
Posts: 14
Location: Hlohovec

PostPosted: Wed Nov 21, 2007 10:53 pm    Post subject: Re: spojenie mapy rozrezanej cez tb cutter? Reply with quote

guest wrote:
Je nejaky tool co dokaze spojit tie rezy do jednej velkej mapy automaticky?


Takze odpovedam sam sebe Very Happy Da sa to, napisal som skript v PHP, nech mi to lokalne mergne. Ako zdroj som pouzil GIFy z http://mapy.atlas.sk/mapviewer/mapviewer.aspx - maju strukturu napr. 15_12.gif, je to X a Y suradnica. Kod sa da lahko upravit na spajanie akychkolvek obrazkov...
Code:

<?php

$iw = 300;
$ih = 250;

$max_x = 54;
$max_y = 32;

$merged = @imagecreate($max_x * $iw, $max_y * $ih);

for($x=0; $x<=$max_x; $x++){
   for($y=0; $y<$max_y; $y++){
      $fname = "slices/{$x}_$y.gif";
      if (file_exists($fname)) {
         $slice = imagecreatefromgif($fname);
         $dstx = $x * $iw;
         $dsty = ($max_y - $y) * $ih;
         imagecopy($merged, $slice, $dstx, $dsty-$ih, 0, 0, $iw, $ih);
         imagedestroy($slice);
      }
   }
}
imagepng($merged, 'merged.png', 4);
imagedestroy($merged);

?>


Za par sekund to spojilo 1400 GIF suborov do jedneho velkeho PNG s velkostou takmer 40 MB (16200x8000px), je to mapa celeho Slovenska. V pripade zaujmu ju mozem skalibrovat a zavesit niekam na net Wink

_________________
N6120c + LD-3W, bude GoTraxx
Back to top
View user's profile Send private message Visit poster's website
teto



Joined: 29 Sep 2007
Posts: 15

PostPosted: Thu Nov 22, 2007 6:23 am    Post subject: Reply with quote

To by bolo skvele. A co tak spravit mapu aj s mestami? (da sa to vobec automaticky kalibrovat? keby ano, tak by sa dal spravit user interface k tomu php podobne ako ten na google maps)
Back to top
View user's profile Send private message
tomXX



Joined: 21 Nov 2007
Posts: 14
Location: Hlohovec

PostPosted: Thu Nov 22, 2007 7:40 am    Post subject: Reply with quote

teto wrote:
To by bolo skvele. A co tak spravit mapu aj s mestami? (da sa to vobec automaticky kalibrovat? keby ano, tak by sa dal spravit user interface k tomu php podobne ako ten na google maps)


Je to kopa manualnej roboty, moc sa mi do toho nechce... Ale dalo by sa to urobit ako "atlas" Idea

_________________
N6120c + LD-3W, bude GoTraxx
Back to top
View user's profile Send private message Visit poster's website
tomXX



Joined: 21 Nov 2007
Posts: 14
Location: Hlohovec

PostPosted: Thu Nov 22, 2007 8:25 am    Post subject: Reply with quote

Mapa na stiahnutie, edisk.cz

http://www.edisk.cz/stahni/09625/merged.png_37.8MB.html

Bude tam len 30 dni, tak sa ponahlajte Wink

_________________
N6120c + LD-3W, bude GoTraxx
Back to top
View user's profile Send private message Visit poster's website
josa



Joined: 13 Nov 2007
Posts: 1

PostPosted: Fri Nov 23, 2007 7:25 pm    Post subject: Reply with quote

Ak by si to skalibroval bolo by to fakt super. Smile
Back to top
View user's profile Send private message
tepich



Joined: 31 Jul 2007
Posts: 37
Location: Praha, Czechia

PostPosted: Fri Nov 23, 2007 9:13 pm    Post subject: Reply with quote

tomXX wrote:
Mapa na stiahnutie, edisk.cz

http://www.edisk.cz/stahni/09625/merged.png_37.8MB.html

Bude tam len 30 dni, tak sa ponahlajte Wink


Při pokusu o stažení Firefoxem to hodí tohle:

Obrázek “http://data3.edisk.cz:8080/8/81ebe4325a009d010d307c3b6fc823bc/merged.png” nelze zobrazit, protože obsahuje chyby.

Nešlo by prosím ten obrázek radši zabalit, aby se ho prohlížeč nesnažil zobrazovat, ale spíš uložit?
Back to top
View user's profile Send private message
tomXX



Joined: 21 Nov 2007
Posts: 14
Location: Hlohovec

PostPosted: Sun Nov 25, 2007 6:38 pm    Post subject: Reply with quote

tepich wrote:
tomXX wrote:
Mapa na stiahnutie, edisk.cz

http://www.edisk.cz/stahni/09625/merged.png_37.8MB.html

Bude tam len 30 dni, tak sa ponahlajte Wink


Při pokusu o stažení Firefoxem to hodí tohle:

Obrázek “http://data3.edisk.cz:8080/8/81ebe4325a009d010d307c3b6fc823bc/merged.png” nelze zobrazit, protože obsahuje chyby.

Nešlo by prosím ten obrázek radši zabalit, aby se ho prohlížeč nesnažil zobrazovat, ale spíš uložit?


Ahoj, ja taketo veci riesim jednorazovym spustenim IE... Nabuduce ked budem nieco posielat, tak to ZIPnem.

_________________
N6120c + LD-3W, bude GoTraxx
Back to top
View user's profile Send private message Visit poster's website
teto



Joined: 29 Sep 2007
Posts: 15

PostPosted: Mon Nov 26, 2007 6:49 am    Post subject: Reply with quote

Vo firefoxe zacni tahat, po chvilke daj stop. vypise spomenutu hlasku. Daj save as a subor sa ti stiahne ako png subor.

Taka otazka, obsahuju tie mapy (pri tahani - URL alebo cokolvek) informaciu o pozicii? Da sa podla toho zkalibrovat ta mapa? Je mi jasne, ze potom by z toho siel spravit atlas, len rucne by to nekalibroval asi nikto.
Back to top
View user's profile Send private message
tepich



Joined: 31 Jul 2007
Posts: 37
Location: Praha, Czechia

PostPosted: Mon Nov 26, 2007 12:48 pm    Post subject: Reply with quote

Díky, vyřešil jsem to pomocí IE, akorát to ukládalo do BMP, takže cca 120 MB. Ale povedlo se.
Ještě jeden dotaz. Jaké je měřítko té mapy?

Ještě jednou díky za rady.
Back to top
View user's profile Send private message
tomXX



Joined: 21 Nov 2007
Posts: 14
Location: Hlohovec

PostPosted: Wed Nov 28, 2007 5:57 pm    Post subject: Reply with quote

tepich wrote:
Díky, vyřešil jsem to pomocí IE, akorát to ukládalo do BMP, takže cca 120 MB. Ale povedlo se.
Ještě jeden dotaz. Jaké je měřítko té mapy?

Ještě jednou díky za rady.

Mierka je nasledovna:


http://mapy.atlas.sk/mapviewer/mapviewer.aspx

_________________
N6120c + LD-3W, bude GoTraxx
Back to top
View user's profile Send private message Visit poster's website
tepich



Joined: 31 Jul 2007
Posts: 37
Location: Praha, Czechia

PostPosted: Thu Nov 29, 2007 2:49 pm    Post subject: Reply with quote

tomXX: Díky.

Takže podle bubliny u zoomu je to 1:100.000, pro ty, co to zajímá.
Back to top
View user's profile Send private message
rbr69



Joined: 18 Aug 2007
Posts: 17

PostPosted: Fri Nov 30, 2007 1:16 pm    Post subject: Reply with quote

tomXX wrote:
Mapa na stiahnutie, edisk.cz

http://www.edisk.cz/stahni/09625/merged.png_37.8MB.html

Bude tam len 30 dni, tak sa ponahlajte Wink


aj tu su nejake mapky, mozte kalibrovat po zimnych veceroch Smile
http://mapa.tym.sk
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Česky-Slovensky All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group