Locus Map - forum

Support => Troubles & Questions => Topic started by: superscout03 on January 17, 2011, 12:41:02

Title: Garmin Map conversion
Post by: superscout03 on January 17, 2011, 12:41:02
I have a garmin map of the area I am in it is a (.img) file and I am wondering if Locus will read and display it. or if there is any way to convert this map file into something that Locus can read.
Thanks
Title: Re: Garmin Map conversion
Post by: rkirmeier on January 18, 2011, 17:44:39
That would be a great feature but I doubt it will be added due to complexity of the Garmin img (polish) format. I used Mapdekode to export all the map lines to .plt files (oziexplorer) then use Oziconverter to convert to gpx format and import the gpx files. The only problem is there ends up being a LOT of tracks (why I requested the select all tracks button). Not sure if we are going to run in a limitation or performance issue with the number of tracks or not.

That being said it would be nice if Locus would import .plt (ozi) or .trk (garmin pcx5 track) format.
Title: Re: Garmin Map conversion
Post by: Menion on January 18, 2011, 20:10:26
Hmm,
  interesting. If you want support for import plt and trk files, may you send me any examples on mail? I'll look on them closer!

  about direct support of img files .. that should be problem. I was searching a little on google but I cannot find any method how to convert them into any usable format. Are they really so good that no one from now almost 40 maps (or more now in beta) in locus is not good enough? :)
Title: Re: Garmin Map conversion
Post by: rkirmeier on January 18, 2011, 20:35:20
I'll send a couple samples of the .trk and .plt files. I think .trk would be preferred cause when I export from Mapdekode I get 1 .trk file vs. many .plt files.

As for the Garmin maps... I have something called Roads and Recreation that has logging/trails roads that I can't find in any other maps so in my case I go through the effort convert/export the map details. I however will note that I NEED to overlay the garmin maps on top of the Sat/Earth maps so I think my need is different then the other guys.
Title: Re: Garmin Map conversion
Post by: David on July 19, 2011, 07:55:09
I agree that supporting Garmin maps would be great. I think they are best for topographic maps, where much more details are in there compared to OSM (curve levels, heights, etc) and so on. For example, take a look at these images:
https://buy.garmin.com/shop/alt-image.d ... ImageLarge (https://buy.garmin.com/shop/alt-image.do?pID=68656&img=productImageLarge)

They are really good for planning a hiking or MTB trip.
Title: Re: Garmin Map conversion
Post by: Scylla on December 01, 2011, 16:47:57
Until recently I was using Navitel for geocaching under Windows Mobile. Now I found Locus Pro and like it, but I'd like to use vector maps instead of online, although Locus provide me the best online map for Hungary (http://www.turistautak.hu (http://www.turistautak.hu)). From this site you can download the whole map in Garmin format. So +1 vote for Garmin *.img format support. Of course it's the same if there is an import feature or native use.
You can reach here the maps (only in hungarian, but in case of interest i'm going to help you): //http://turistautak.hu/garmin.php
Title: Re: Garmin Map conversion
Post by: krzysiekz on December 02, 2011, 15:10:18
I've found python script for converting garmin maps to osm, but i've run out of memory (2gb ram +4gb swap) with area 30x20km.
Title: Re: Garmin Map conversion
Post by: Menion on December 02, 2011, 15:15:33
hmm is this available on some public repository? If there is need for some powerful testing, let me know (script and also some sample map is needed ...)
Title: Re: Garmin Map conversion
Post by: krzysiekz on December 03, 2011, 08:44:07
I tried script from this page:
http://forums.gps.org.nz/viewtopic.php?f=37&t=4141 (http://forums.gps.org.nz/viewtopic.php?f=37&t=4141)
Title: Re: Garmin Map conversion
Post by: Scylla on December 03, 2011, 18:48:36
The maps from turistautak.hu are an "open source" project. The maps were built from public sources and mainly from tracklogs. (Similar to OSM, but older, and focusing mainly hiking.) They publis the maps in Garmin format. They are downloadable after a simple registration. Because this page accessible in hungarian only I downloaded and put the file into my dropbox public folder.
From this page: //http://dl.dropbox.com/u/1592144/Public.7z you can download it.
According the legal notice on the page the file downloadable for own purposes and it's not allowed to make publicly available without written permission, so I encrypted the file. I send you the password as private message if you agree: please provide an email address. If you don't need the link anymore, please let me know and I delete it.
Title: Re: Garmin Map conversion
Post by: Menion on December 05, 2011, 13:40:57
hi Scylla, if maps on dropbox are for me, then I have to regret. My response for krzysiekz was just if he have some already downloaded map and script that do not work for him due to limits of computer, I should try to run on my computer. Anyway I just don't have time and taste to play with some garmin conversion.
Title: Re: Garmin Map conversion
Post by: Scylla on December 06, 2011, 14:11:33
OK, I understand. It seemed to me, you interested in that topic.
I'm going to make a try with those python script with 8G RAM, when I will have a little time.
Title: Re: Garmin Map conversion
Post by: Menion on December 06, 2011, 14:16:03
yes, I'm interested in this topic .. but mainly in result :). I never had garmin device in my hands and except images, never saw their maps. So I'm personally not interested in maps. Just know that many people use them .. so if you'll need 24GB ram for some testing, let me know ...
Title: Re: Garmin Map conversion
Post by: gynta on December 08, 2011, 15:18:24
Quote from: "Scylla"OK, I understand. It seemed to me, you interested in that topic.
I'm going to make a try with those python script with 8G RAM, when I will have a little time.

+1
convert a gmapsupp.img in a "locus"format sounds very good.
thousands of garminusers can continue to use all of their maps to locus.
Title: Re: Garmin Map conversion
Post by: krzysiekz on December 10, 2011, 09:43:28
I converted sample map from mp to osm.pbf. Script limit is 50k nodes per file, and map labels must use english alphabet only. Still can't convert from pbf to map - got many errors and osmosis quits.
Title: Re: Garmin Map conversion
Post by: Scylla on December 11, 2011, 14:52:39
Yes, I have problem with the character encoding too, because my maps contains tons of hungarian special characters.
Title: Re: Garmin Map conversion
Post by: krzysiekz on December 11, 2011, 20:41:00
I used convert labels to russian in mapedit.
Title: Re: Garmin Map conversion
Post by: Scylla on January 30, 2012, 18:59:31
At last I have some time to deal with the conversion. I thought I should share the result I achieved.

I improve the python script a bit, so it can now deal with the utf-8 names which makes it more usable I suppose.
The second modification was to change the file format from version 0.5 to 0.6, because the compiler from the OSM site doesn't like the old format anymore. (I now that the old version accessible too, but everything must evolve.)

The converted file made by the modified script now accepted by the OSM compiler, though I wasn't able to compile it into the Locus understandable format because of a missing java library. If I succeed I will inform you.
Title: Re: Garmin Map conversion
Post by: jonas on June 01, 2012, 13:01:12
Hi,
I was searching for an offline Indonesia map for locus and found this post: //http://www.inigis.org/454/navigasi-net-releases-gps-map-indonesia-v2-11.html/.
After I've downloaded a zip file, there was only an .exe installer, that created file gmapsupp.img. But on that web site, they have an image of Locus screen with that map. How did they do that?
Jonas
Title: Re: Garmin Map conversion
Post by: Menion on June 01, 2012, 13:07:59
Hello Jonas,
  Navigasi maps are in list of online maps. They're probably also on this screenshot. Anyway you may download these maps directly in Locus so I suggest to try. If you're not experienced with Locus downloading system, you may check this manual http://docs.locusmap.eu/doku.php/manual:map_download (http://docs.locusmap.eu/doku.php/manual:map_download)
Title: Re: Garmin Map conversion
Post by: jonas on June 01, 2012, 13:50:44
Hi,
I've tried to download Navigasi directly in Locus, but it always failed after few tens of seconds. That's why I was looking for some ready offline maps. It haven't occured to me, that on the screenshot is the online version. I will keep trying download using Locus. I can still use vector map from vectormaps4locus.eu.
Thanks for the great application :-)
Jonas
Title: Re: Garmin Map conversion
Post by: Menion on June 01, 2012, 14:02:02
are you sure it do not work? I have just tested it and seems to work correctly. There are limits on map downloading. On Navigasi for example 5000 tiles per day so if you already exhausted this, you have to wait on second day
Title: Re: Garmin Map conversion
Post by: jonas on June 01, 2012, 16:13:26
I don't think, I've overdrawn 5000 tiles. And I did the second try at the same day, which was also interrupted after few tens of seconds. Maybe it was only some network problem. I can't test it right now, my phone is in the service. If I notice this problem after, I'll post it in czech section.
Have a nice day
Jonas
Title: Re: Garmin Map conversion
Post by: Menion on June 01, 2012, 16:19:50
Ah you're from Olomouc, nice :) Sure no problem, if you notice problem, let me know because this have to work. You may also check number of already downloaded tiles in online map information screen (just hold long click on map you want to check)
Title: Re: Garmin Map conversion
Post by: Menion on July 11, 2012, 14:52:13
I just discovered this ... anyone tried? http://www.trekbuddy.net/wiki/index.php ... _Trekbuddy (http://www.trekbuddy.net/wiki/index.php?title=Tutorial:_Garmin_maps_to_Trekbuddy)
Title: Re: Garmin Map conversion
Post by: Menion on July 12, 2012, 09:51:30
first test successful ... http://docs.locusmap.eu/doku.php/manual ... img_to_sql (http://docs.locusmap.eu/doku.php/manual:convert_img_to_sql)

only problem seems that MapEdit don't render IMG maps that looks as good as in MapSource
Title: Re: Garmin Map conversion
Post by: Robin99 on July 12, 2012, 14:39:30
MapEdit can't run on my PC:(