Beiträge von b451

    I don't want to convert the files. The link has documentation and source for the ozf2/ozfx3 formats, which was sufficient to implement it in GM; any chance of adding native support for these formats to QV?

    Yes but I want to use ozf2/ozfx3 directly because I have a licence for QV but not GM. The format is documented (for reading, at least) in a link in the forum thread I posted, and there is a GPL source code in a project called ozex and swampex.

    FYI There is a python file on emule called something like decode qct calibration which looks like it might have the info needed to get the calibration data from Memory Map qct files.


    It decodes 40 8-byte (double-precision) floating point numbers stored at offset 60hex in the qct file. These are four sets each of ten coefficients.


    These sets are coefficients for four conversion equations::
    1. xy to latitude
    2. xy to longitude
    3. lat/lon to x
    4. lat/lon to y


    Each set is the coefficients in an equation like:
    c0+c1*a+c2*b+c3*a*a+c4*a*b+c5*b*b+c6*a*a*a+c7*a*a*b+c8*a*b*b+c9*b*b*b


    Substitute into a and b as follows:
    x and y to latitude or longitude: x and y
    lat and lon to x or y: lat and lon


    The program as it stands prints the lat/lon of the corners of the map, and puts these through the reverse conversion back to pixel coordinates as a check.


    HTH
    b451