GPSMap-OS map calibration file (.mcd) format

Frequently Asked Questions, of course.

GPSMap-OS map calibration file (.mcd) format

Postby shanks on Sat May 02, 2009 2:24 pm

Interested in writing code to automatically generate the map calibration file for use with GPSMap-OS so you don't have to enter calibration points manually? The following info should help...

When loading a map image (eg. MyMap.jpg) GPSMap automatically looks for a file in the same location as the image and having the extension .mcd (eg. MyMap.mcd) which contains the saved calibration data for that map.

The .mcd map calibration data file used by GPSMap-OS is a 72 byte binary file, which is simply a series of nine double precision floating point values (in 8-byte, IEEE 754 encoding, little-endian byte order), defining two map calibration point coordinates and the map magnetic variation value in the following sequence:

    point 1 image x coordinate (pixels)
    point 1 image y coordinate (pixels)
    point 1 full OS map Eastings (metres)
    point 1 full OS map Northings (metres)
    point 2 image x coordinate (pixels)
    point 2 image y coordinate (pixels)
    point 2 full OS map Eastings (metres)
    point 2 full OS map Northings (metres)
    magnetic variation (degrees)


NB. Image x,y coordinates have their origin at the bottom-left (ie. the Standard Cartesian system).

dr. matt.
User avatar
shanks
Site Admin
 
Posts: 51
Joined: Thu Sep 20, 2007 8:18 pm
Location: Shepton Mallet, Somerset, UK.

Postby jolly47roger on Tue May 05, 2009 3:24 pm

.... or if you already have a calibration file (map, jpr, cal, tfw, gmi, gux) then mapc2mapc available at http://www.the-thorns.org.uk/mapping will create a .mcd for you (or the non-OS version if the map is not for the UK)
jolly47roger
 
Posts: 22
Joined: Tue Jul 15, 2008 9:24 pm


Return to FAQ

Who is online

Users browsing this forum: No registered users and 1 guest

cron