Author Topic: Backup of User Map Calibration Data?  (Read 4912 times)

bobmaloney@compuserve.com

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Backup of User Map Calibration Data?
« on: November 13, 2011, 04:42:38 PM »
Where are the calibration points of User Maps stored?

I accidentally clobbered the calibration of a User Map while trying to install a new map.

I then looked to see where the User Map was stored  in order to restore the old map and its calibration points from my backup files. However when I looked there, I only found the image file (JPG) but no calibration points.

Can you let me know where the calibration points are stored so that I can restore them.

Thanks,

Bob M

ScottMorris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 2756
  • TopoFusion Author
    • View Profile
    • http://www.topofusion.com/diary
Re: Backup of User Map Calibration Data?
« Reply #1 on: November 13, 2011, 10:18:53 PM »
Hi Bob,

The calibration values are actually in the main TopoFusion.ini file.  That may, unfortunately, mean that the correct values are gone.  TF really needs a file type for calibration info that can go with the map... or perhaps adopt one that other software use.

If you've had that user map for a while it's possible you might have the old value in an old .ini file, but you probably wouldn't have thought to back it up.  It should be here:

C:\Documents and Settings\*Your USER NAME*\Local Settings\Application Data\TopoFusion\TopoFusion.ini

Or for older installs:

C:\Program Files\TopoFusion\TopoFusion.ini

Let me know if you need help finding the info in an old .ini.
Scott Morris - founder and co-author of TopoFusion
email: smorris@topofusion.com

bobmaloney@compuserve.com

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Backup of User Map Calibration Data?
« Reply #2 on: November 14, 2011, 03:12:33 PM »
Thanks for the response.

Unfortunately, the only back up I have for the file is from an image backup. I am not sure I can get an individual file out of the image but will try.

Fortunately, I believe I understand the fields required:
  -Latitude and longitude and pixel points, correct?
  -No more than 3 calibration points, right?
I think I can easily hack together something by hand from my OZIEXPLORER calibrations. I might even be able to write a Basic program to convert my OZI calibrations for about 20 files to be TOPOFUSION User Maps.

Bob

   

bobmaloney@compuserve.com

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Backup of User Map Calibration Data?
« Reply #3 on: November 16, 2011, 04:55:12 PM »
Well, what I thought was a trivial task has gotten nowhere. I presumed that I could take the  locations of OZIEXPLORER  calibration points  latitude, longitude, x pixel, y pixel) and just substitute them in the the TOPOFUSION User Map definition and I would be home free.

After fooling around for a day or so, I have not gotten there.

Below is the TOPOFUSION USER MAP Calibration I have defined for Harriman2007A.jpg. Comments are on each line:

UserEnabled0=0                                   0 or 1 depending on whether the file is enabled or no
UserAlpha0=0                                      0 to 255 determined by the opacity
UserImagex0p0=2839                            X axis coordinate of the first pontl (0 is the leftmost pixel)
UserImagey0p0=398                              Y axis coordinate of the first pointl (0 is the most northern pixel)
UserLat0p0=41.324577                           Latitude of the pixel
UserLon0p0=-73.987617                         Longitude of the pixel       
UserImagex0p1=2235                             Corresponding data for the next point
UserImagey0p1=966
UserLat0p1=41.296881
UserLon0p1=-74.02772
UserImagex0p2=311                               Corresponding data for the third point                           
UserImagey0p2=1629
UserLat0p2=41.265132
UserLon0p2=-74.15438
UserFilename0=C:\topofusion\Harriman2007A.jpg      Location and name of the image.

The image is 3362 by 1629 pixels.

All data shown was copied from the OZI map file for the image.

The resulting USER map is close to the OZI map but is not really good enough. I can generate a better map using the TOPOFUSION techniques.

Am I missing something? Are my assumptions on that the OZI and TOPOFUSION definitions of the pixel location are the same. Is there a projection difference?  The fact that OZI typically uses 3 points makes there calibration better?

If you want, I can send you the same track on the OZIEXPLORER map, on a TOPOFUSION technique map and my attempt so that you can see the differences.

Bob M

ScottMorris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 2756
  • TopoFusion Author
    • View Profile
    • http://www.topofusion.com/diary
Re: Backup of User Map Calibration Data?
« Reply #4 on: November 21, 2011, 08:52:31 PM »
Bob,

I think you've got all the parameters correct, so it is strange you are seeing a difference that is significant.  One possibility is a difference in the datum of the lat/lon coords?  For TF they should be WGS84 (same as GPX).

Other thing I might suggest if you haven't already is to wipe out any UserXXXX values in the .ini file so you start with a clean slate.

Let me know if neither of those ideas help.  Good luck.
Scott Morris - founder and co-author of TopoFusion
email: smorris@topofusion.com

bobmaloney@compuserve.com

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Backup of User Map Calibration Data?
« Reply #5 on: November 22, 2011, 06:15:26 AM »
Thanks for reply.

 I am glad to know I have the calibration points correct. I can't check now but I believe the datum of the image is WGS84 or at worst NAD83.

 The OZI calibration does have four points, will Topofusion accept more than 3 points?

  If all else fails, I may try the Topofusion calibration points in OZI and see what results.

  I won't get back to this until next week since I am leaving home this morning to go to my daughter's for the Thanksgiving holiday.

  Thanks for all and enjoy  your Thanksgiving,
   Bob M