Welcome, Guest. Please login or register.

Login with username, password and session length
Forums Search:  


Author Topic: installing OSM routable maps in mapsource  (Read 10127 times)

ras_oscar

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
installing OSM routable maps in mapsource
« on: November 26, 2009, 01:41:28 PM »
I have downloaded several regions of the US and installed into mapsourdce using the provided installer. All gop smoothly except there is only 1 entry, OSM routable and its the most recently installed. Is there a way to permit all regions to be viewable (as separate sets) in mapsource? I have been combining wiht Topo and writing to my GPSr mem card, but it would be nice not to have to keep "reinbstalling" the sets.

question 2: is there a way to combine all the .img files using MapSetTpplkit so all the sets appear as a single contiguous set? would I combine all the .img files as individual tiles or only combine the 62340000.img files from each set?

The most recent sets I installed installed as families, whereas the previous vversions installed as products. What is the difference?

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #1 on: November 26, 2009, 02:38:15 PM »
He's talking about OSM.  Last time I tried (months ago) I couldn't get cgpsmapper to cpreview mkgmap compiled maps.  

I had to do it this way for "products":
Code: [Select]
java.exe -Xmx512M -enableassertions -jar "c:\program files\mkgmap\mkgmap.jar" --max-jobs=12 --ignore-osm-bounds --tdbfile --product-id=53  07250733.img 07250732.img 07250734.img 07250735.img 07250736.img 07250737.img 07250738.img 07250740.img 07250739.img 73240073.img
pause

And this way for "families":
Code: [Select]
java.exe -Xmx512M -enableassertions -jar "c:\program files\mkgmap\mkgmap.jar" --max-jobs=12 --ignore-osm-bounds --family-id=3141 --overview-mapname=Hikes --tdbfile --family-name="Hikes" --series-name="Hikes" 07250735.img 07250736.img 07250737.img 07250738.img 07250740.img 07250739.img
pause


The compiler gets updated a lot, so maybe it works now.
« Last Edit: July 12, 2010, 03:41:51 PM by Indrid Cold »

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #2 on: November 26, 2009, 03:43:08 PM »
That's the site.  I'll have to try MapSetToolkit on them.

ras_oscar

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #3 on: November 26, 2009, 06:02:34 PM »
Unfurtunately there's a limit on the number of tiles one can DL in a single request. Trying to assemble a routable map of the USA, it's approx 6 different download jobs. The button for "download an entire country" is "temporarailly disabled"

When I selected all the numbered tiles to create a new single image file I get "convet failed" no explanation, no error message.

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #4 on: November 26, 2009, 06:34:10 PM »
If you are trying to route on that map, make sure the areas you are traveling through are "Tiger Verified"  There are still a lot of errors in the Tiger data and you are relying on volunteers to find them.

If I remember your posts over at Groundspeak, you were having trouble getting MapSetToolkit to work with the OSM files.  Have you had any more luck with it?

ras_oscar

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #5 on: November 26, 2009, 06:42:04 PM »
nope, same problem. found a work around to get the maps in my GPSr but it required me to continually reload the routable maps of different areas. essentially I can only see 1 download at a time. Tried Dlding mkgmap but couldn't figure out how to run java.

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #6 on: November 26, 2009, 08:01:53 PM »
Your running Windows?  I'm still using XP, but I expect any Java installers should run w/ either XP or Vista, or Windows 7.
Browsing w/ IE or Firefox?
You went to http://www.java.com/en/download/index.jsp and ran the install?
On my machine Java lives in:
%windir%\SYSTEM32\java.exe
but  I invoke it from the batch files I posted above in this thread.

ras_oscar

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #7 on: November 26, 2009, 08:58:50 PM »
running win xp on an acer netbook. Not dual core, bit I assume java doesn't care. Never worked with Java before, so wasn't sure what questions to ask. I'll cut your code into a bat file and see what happens.

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #8 on: November 27, 2009, 05:07:33 AM »
I use Sendmap 2.0 to transfer mkgmap  compiled maps onto my GPSrs whenever I'm testing.  It will even transfer routing data and TYP files.

mkgmap gets rebuilt once or twice a week, so be sure to:
a) have a build you've tried and trust.
b) also try the latest build to see which bugs were fixed or introduced. 

mkgmap wiki's haven't been much help.  http://forum.openstreetmap.org/index.php is probably the place to look.

The following will get you a list of mkgmap switches and options.
Code: [Select]
java.exe -Xmx512M -jar "c:\program files\mkgmap\mkgmap.jar" --help=options > mkgmap_options.txt
pause
 

ras_oscar

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #9 on: November 27, 2009, 05:48:05 AM »
i guess my best option is to dl the updated mkgmap periodically and see which one works. when it finally does work: can i use wildcards to list the img files or do i need to list each tile individually? Can I use mkgmap to join the individual 63240000.img files or do i need to go back to the original tile .img files?

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #10 on: November 27, 2009, 06:13:35 AM »
I hadn't thought about wildcards, but I just tried them out, and they worked.  Thanks for the suggestion.

I'm pretty sure you need to rebuild the 63240000.IMG abd TDB files from the original tile files.  The batch files I posted assume that the batch file and all the files to be combined are in the same folder.

ras_oscar

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #11 on: November 27, 2009, 07:09:27 AM »
great. That means that once i get a build of mkgmap that works I can dump all the .img files in a single directory and add "updated" tiles as more info is added to openstreetmap, rebuild image file and mapsource won't know the difference.

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #12 on: November 27, 2009, 09:23:22 AM »
That's the beauty of it.  Just be sure to keep your "last good" 6324000.IMG and TDB some place so if your compile goes wrong, you won't have to re-install MapSource.  If one of those is bad, MapSource will say the installation is bad and to re-install.  Really all you have to do is replace the bad TDB or IMG.

This is the place to look for mkgmap.  I've tried r1404 and haven't had any problems yet except one specific to a complicated topo I'm working on in MP format.  I doubt it should give you any problems at all in making up your TDB and IMG files.

One other thing:
The xmx parameter in the batch file sets the amount of memory Java will have available.  (1280 is the maximum Java can use under 32 bit Windows.) The actual memory available will be affected by the amount of memory available after Windows is loaded.  If mkgmap quits early, or doesn't run, try making that number smaller until it runs.
« Last Edit: November 27, 2009, 09:36:34 AM by seldom_sn »

ras_oscar

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 0
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #13 on: November 28, 2009, 01:17:09 PM »
how do I determine which version of mkgmap I have?

Seldom

  • Expert Advisor
  • *****
  • Posts: 1852
  • Karma: 19
    • View Profile
Re: installing OSM routable maps in mapsource
« Reply #14 on: November 28, 2009, 02:39:48 PM »
Run This:
Code: [Select]
java.exe -Xmx512M -jar "c:\program files\mkgmap\mkgmap.jar" --help=options > mkgmap_options.txt
pause

One of the options it will list is a version.

The version should also be listed as part of the name of the zip file you downloaded.