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.

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 
Another tool to download maps
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools
View previous topic :: View next topic  
Author Message
yaworski



Joined: 08 Jan 2007
Posts: 64

PostPosted: Mon Jan 29, 2007 7:28 pm    Post subject: Reply with quote

I'm looking at the code and, thankfully, I can read through it very easily (at least the stuff not connected directly to geographic transformations Smile). I would like to do some modifications to it if you allow it.

What do you think about placing source of the application on some repository? Do you know about code.google.com? They give 100MB space per project and they use SVN as their repository software. Or we can find some other place to keep the source there (I'm using eclipse so there is no problem what kind of repository we can use).

What do you think about using some external libraries to make some things easier a little? There is a little library in Jakarta Commons named CLI and it can be used to create command line interface which works like in most unix applications (for example -h and --help). The jar size is about 30KB.
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5662

PostPosted: Mon Jan 29, 2007 7:44 pm    Post subject: Reply with quote

I could ask this hosting owner if he could setup a source repository - and perhaps a bug tracking system, I'd prefer Bugzilla - if you think it would be good/suitable/*... Wink
Back to top
View user's profile Send private message
yaworski



Joined: 08 Jan 2007
Posts: 64

PostPosted: Mon Jan 29, 2007 8:30 pm    Post subject: Reply with quote

Kruch it would be great to have such repository Smile. I prefer SVN but it is harder to create repositories for new projects than in CVS.

I have read API specification for Commons-CLI and this can be very useful to use it (it does all the command line parsing and can validate type of parameters and every option can be set if it is required etc).
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5662

PostPosted: Mon Jan 29, 2007 9:04 pm    Post subject: Reply with quote

Yes, I'd also vote for SVN for source repository. Although I've never worked with it, my perception is that is kind of "advanced CVS" - and that's good.

I'll let you know how it goes; I'm not sure if sarath reads the forums regularly...
Back to top
View user's profile Send private message
Lakva



Joined: 09 Jan 2007
Posts: 212
Location: N 50,2380 E 12,8760

PostPosted: Tue Jan 30, 2007 7:51 am    Post subject: Reply with quote

yaworski wrote:
... Do you know about code.google.com? They give 100MB space per project ...

Do they check the type of project? I think it's not wise to put the code, that uses google maps in that way, to the code.GOOGLE.com?
But I never read their agreement, so I don't know...

_________________
The best thing a man can do for themselves is to help to the others.
-I know it sounds strange... but you may try it Smile
Back to top
View user's profile Send private message Visit poster's website
yaworski



Joined: 08 Jan 2007
Posts: 64

PostPosted: Tue Jan 30, 2007 8:55 am    Post subject: Reply with quote

Lakva that what I'm worrying about a little too Smile. That's why I also proposed to find some other server for repository.

It will be great if we have our own SVN because we can place there not only this app (we need to find some good name for it Smile because pure java google hack is good only for temporary name, what do you think s_bostjan?) but also other good apps which were created especially to work with TB.
Back to top
View user's profile Send private message
s_bostjan



Joined: 09 Jan 2007
Posts: 12

PostPosted: Tue Jan 30, 2007 9:38 am    Post subject: Reply with quote

Quote:
I would like to do some modifications to it if you allow it.


That's why i posted the source code - that someone should take it and make something of it! Consider it yours. Very Happy I really have so little free time that i'm not capable of further development.
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4914

PostPosted: Wed Jan 31, 2007 11:19 am    Post subject: Reply with quote

Download cmd-line for Maps of Austria, Styria, Vienna and Graz (in 256x256 slices)

java -jar GoogleHackPureJava.jar 1536 9.300 49.100 17.250 46.320 7 austria_s 256
java -jar GoogleHackPureJava.jar 1536 13.550 47.850 16.200 46.600 5 styria_s 256
java -jar GoogleHackPureJava.jar 1536 16.160 48.350 16.600 48.080 3 vienna_s 256
java -jar GoogleHackPureJava.jar 1536 15.350 47.100 15.520 47.000 3 graz_s 256

m.
Back to top
View user's profile Send private message Visit poster's website
luki



Joined: 01 Feb 2007
Posts: 142
Location: Milan, Italy

PostPosted: Tue Feb 06, 2007 7:23 pm    Post subject: Reply with quote

Hi to all! First of all I want to thank s_bostjan for this wonderful program! I have searched for long time for my sxg75! You're Great! Hope you'll have time to continue this great project (google maps rule)...anyway I want to ask you how can I use it, I have no great experience! Where can I take parameters for my maps? for example if I want to download Milan, italy maps, what are the gps parameteres i have to tell to your program? and what are the recommended for using it with a siemens sxg75??? Thank you and sorry for my poor english!
Back to top
View user's profile Send private message
temptrekbuddy



Joined: 27 Nov 2006
Posts: 193
Location: Poland

PostPosted: Wed Feb 07, 2007 8:26 am    Post subject: Reply with quote

^^ it's all explained in the first post
Back to top
View user's profile Send private message
lives



Joined: 28 Aug 2006
Posts: 42
Location: Praha

PostPosted: Wed Feb 07, 2007 11:09 am    Post subject: Reply with quote

Hi Bostjan, thanks for a great tool. I maybe found a little bug Sad . Try downloading this map at more zoom levels ( I tried 1,3,4,5,6).

The problem is, that every zoom level covers much different area.
Desired coord: 50,8.1786666666, 14,18.4639998 - 49,59.625499998, 14,35.5969998

Zoom level 1: 50,10.592242,N,14,18.987051 - 49,59.489255,N,14,36.290518,E

Zoom level 3: 50,11.700184,N,14,17.256704,E - 49,59.860045,N,14,35.713736,E

Zoom level 4: 50,11.134713,N,14,13.849742,E - 49,59.292241,N,14,32.306773,E

Zoom level 5: 50,16.127669,N,14,10.335318,E - 50,4.305812,N,14,28.792349,E

Zoom level 6: 50,22.020326,N,14,1.106802,E - 49,58.376598,N,14,38.020865,E

I understand, that you must do aproximations etc., but the problem is, that the map does not cover the desired area and the differences are big (for example: level 5 - 14,28.792349,E vs 14,35.5969998,E - difference 8 km). Downloaded map covers 8km smaller area than desired.

The problematic values are in bold (problematic = smaller map than desired). I also found problematic, if you get a big peace of map which you don't need, but more annoying is when get smaller map than you want.

java.exe -jar GoogleHackPureJava.jar 1792 14.30773333 50.1363111111 14.59328333 49.9937583333 4 praha 512


I would add one more little comment. Smile
Why do you use coordinates sequence 14.30773333 50.1363111111?
In every on-line map source and also in your generated *.map file is oposite coord. sequence (50.1363111111 14.30773333 ).
________
Ford hospital picture


Last edited by lives on Thu Feb 24, 2011 3:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Wed Feb 07, 2007 11:59 am    Post subject: Reply with quote

lives wrote:
The problem is, that every zoom level covers much different area.


Not question to me, but ...
Would you have cutted tiles in process ?
There is the simple way to check if error exist. Just get scale from .map file, multiply by tile pixels size and next by number of tiles ... You are rigth, no scale in .map from tool (but is enough to open and save map in Ozie)
Coverage can't be the same for layers with not cutted tiles.
Back to top
View user's profile Send private message
yaworski



Joined: 08 Jan 2007
Posts: 64

PostPosted: Wed Feb 07, 2007 5:05 pm    Post subject: Reply with quote

lives wrote:
[...]
I would add one more little comment. Smile
Why do you use coordinates sequence 14.30773333 50.1363111111?
In every on-line map source and also in your generated *.map file is oposite coord. sequence (50.1363111111 14.30773333 ).


I'm going to have some free time now so I will rewrite some initialization code in s_bostjan's application. What I'm thinking about is to provide more flexible startup parameter system consisting of specific options (for example: app -x startlon -y start lat -X endlon -Y endlat -w 256 -h 256 etc). Some of the attributes will be optional (for example tile width and height and map width and height, default zoom level). As an addition to this I want to add gpx parsing capabilities. I don't know how I do this yet, but the most probably this will look something like this:
1. User creates gpx file (for example using mapexplore) with waypoints.
2. Waypoints will need to have a specific names and will need to be in pairs. I'm thinking about something like this: mapname_start_zoomlevel + mapname_end_zoomlevel, for example: Warsaw_start_7 and Warsaw_end_7.
3. One GPX file will be able to define more than one waypoint pair (each pair will have to have a different mapname part). Loading this file will start the downloading of each map one at a time. This will create layers in one atlas.

How do you like this idea?
So possible ways of starting the application would be:
app -x -y -X -Y -n [-w -h -W -H -z]
(x and y starting coords, X and Y ending, n is a map name they are required, w and h defines tile size, W and H defines map size, z defines zoom level and they are optional).
app -g file.gpx
(loads map data from gpx file)
app -G
(opens dialog window to load gpx file easier, if you download map on the server through SSH, then it will be not usable, that is why -g option exists).
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4914

PostPosted: Thu Feb 08, 2007 4:54 pm    Post subject: Reply with quote

... sounds nice:

at first, please start to do a small update (with the new options you told).

please could you
... add own directories for the OZI files
... add an option to delete the OZI files after processing

... after this do a new PRO version with your gpx ideas

thanx
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4914

PostPosted: Thu Feb 08, 2007 4:55 pm    Post subject: Reply with quote

... dear all,
please post data (cmd-line) for your maps for cities, countries (e.g.praque) etc.

... thanx
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 2 of 8

 
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