View Single Post
Posts: 10 | Thanked: 3 times | Joined on Sep 2007
#1
Been using MMapper since January, what a great program, I have noticed in several treads, folks wonder how to get a custom map into MMapper, here is what worked for me.

Start with MapCruncher from MS

http://research.microsoft.com/mapcruncher/

Tutorial at:
http://research.microsoft.com/mapcru...#_Toc148418544

Started by scanning some high quality Topo maps that include hiking trails that are highlighted on the map. Tried several levels; the 600 DPI seems to work best.

Once you have your map source file, you can open it in MapCruncher, check the borders, and create the GPS Correspondences. The program will render the Individual map tiles for the map. MS level 14 = MM level 3 for zoom (worked well for my maps). I also set the max zoom to 14 for the maps in Cruncher (limits the number of output tiles). See tutorial for getting the correspondences more accurate as you may need to add numerous points and adjust them based on the points 'Error'. The best points seem to be North - South Street intersections.

When MapCruncher renders the tiles, it will create a large number of .png files in a directory. The naming convention for these tiles is as follows: the number of characters in the file name indicates zoom level. So if the file is named 0012.png it means that it is zoom level 4. MS VE coded these tiles so they only contain 0 thru 3 as valid characters in the file name. These represent grid that is overlays the tile, so a picture of the world would have North America in quadrant 0 Europe in Quad 1 South America in Quad 2 and India in Quad 3. In this way one can read the name of the file one character a a time that indicates the quadrant that one is to zoom to for that zoom level. In our earlier example '0021.png' would read 0 first quadrant (North America) then each successive zoom to the quadrant of the tile that is zoomed too, read the next number and zoom to that quadrant. In my case I took all of the files that were 14 characters long and copied them to another directory.
At this point I also batch renamed all of the files to a jpg extension.
As I do not have a program to 'rename' the file name itself, only the files extension. Each has to be renamed, started by creating a VE repository on my N800 that roughly contained the area of the map from an X - Y area that the map covered. I then moving the directory over to the computer opened the MS VE Streets directory and the MapCruncher files in another view. I then identified the tiles that represent the same place on the map. Using this I renamed the MS Cruncher files to the MMapper format. To keep these clear I appended a -# to the end of the file to help keep them straight. For example one of the files 03023221300332.png is re-named 6055-2.jpg in the MapCruncher directory. Once I was done renaming all of the files for the map I would then copy a 'set' 6054-2.jpg, 6055-2.jpg, 6056-2.jpg, 6057-2.jpg into the 4710 'Y' directory of MMapper. Once the files are copied they are renamed to loose the -2 part of the name as MMapper would not reconize it. Once you have the files renamed to this format you can simply view the thumbnails by name, without this you may need to view by 'creation date' or 'modified' in order to keep them straight order-wise.

I have found that the maps I have processed have the actual trail within a meter or so to the actual GPS Track in MMapper. MMapper is ok with the files being .png files that are renamed .jpg.
It takes about an hour to scan in the map, crunch it, and rename the tiles. I would be great to have a script to read the 03023221300332.png name and place it into a directory name 4710 with a file name of 6054.jpg. Cruncher allows for transparency’s of layers of maps. I have also taken some historic maps of the area and crunched them with success. Odd display artifacts are visible when the tile is not complete, MMapper trys to 'fill' in the space by duplicating part of the tile itself (best not to use partial tiles -- looks cleaner in MMapper).
Happy Mapping, ps the tutorial for MapCruncher is good, MMapper is great....
 

The Following 2 Users Say Thank You to slamp For This Useful Post: