Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
map calibration file
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    TrekBuddy Forum Index -> General discussion
View previous topic :: View next topic  
Author Message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sat Feb 13, 2016 8:51 pm    Post subject: map calibration file Reply with quote

If I have (want) to create my own .map calibration file from scratch, exactly which items in the Ozi file are used and which could be left out or empty?

Is this documented somewhere?
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sat Feb 13, 2016 9:37 pm    Post subject: Reply with quote

It is Smile
http://www.trekbuddy.net/forum/viewtopic.php?p=15099
Long time no one asked about it Wink
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sat Feb 13, 2016 10:37 pm    Post subject: Reply with quote

Thanks for the link! Thumb up

There kruch says:
Quote:
At present, if MMPXY and MMPLL lines are found in calibration, TB will use them instead of PointXY. *
To sum it up, in Ozi calibration file, TB uses

5th line (map datum)
Map Projection
PointXY *
Projection Setup
MMPXY *
MMPLL *
IWH


But if I try the following shortened .map file I get an error:Too few calibration points

Code:
OziExplorer Map Data File Version 2.2
t_.png
t_.png
1 ,Map Code,
SWEREF99,WGS 84,   0.0000,   0.0000,WGS 84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Transverse Mercator,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No
Point01,xy,    0,    0,in, deg,    ,        ,N,    ,        ,W, grid,   ,     503936,    6573184,N
Point02,xy, 1280,    0,in, deg,    ,        ,N,    ,        ,W, grid,   ,     524416,    6573184,N
Point03,xy, 1280, 1280,in, deg,    ,        ,N,    ,        ,W, grid,   ,     524416,    6552704,N
Point04,xy,    0, 1280,in, deg,    ,        ,N,    ,        ,W, grid,   ,     503936,    6552704,N
Projection Setup,     0.000000000,    15.000000000,     0.999600000,       500000.00,            0.00,,,,,
IWH,Map Image Width/Height, 1280, 1280


If I need the bottom (MMPXY *; MMPLL *) points, it means I have to do the conversion to lat, lon values, which I was hoping would not be necessary...
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Feb 14, 2016 1:24 am    Post subject: Reply with quote

Sorry, but I never used maps in this grid Smile
If you have one, try first to calibrate it in OziE trial, to be sure about working calibration.
There are some mistakes, ie if size of pict is 1280x1280, x, y changes from 0-1279, etc. See below calibrated empty image using same data.

Code:
OziExplorer Map Data File Version 2.2
Sweref89.jpg
SWEREF89.jpg
1 ,Map Code,
SWEREF99,WGS 84,   0.0000,   0.0000,WGS 84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Transverse Mercator,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No
Point01,xy,    0,    0,in, deg,    ,        ,N,    ,        ,E, grid,   ,     503936,    6573184,N
Point02,xy, 1279,    0,in, deg,    ,        ,N,    ,        ,E, grid,   ,     524416,    6573184,N
Point03,xy, 1279, 1279,in, deg,    ,        ,N,    ,        ,E, grid,   ,     524416,    6552704,N
Point04,xy,    0, 1279,in, deg,    ,        ,N,    ,        ,E, grid,   ,     503936,    6552704,N
Projection Setup,     0.000000000,    15.000000000,     0.999600000,       500000.00,            0.00,,,,,
Map Feature = MF ; Map Comment = MC     These follow if they exist
Track File = TF      These follow if they exist
Moving Map Parameters = MM?    These follow if they exist
MM0,Yes
MMPNUM,4
MMPXY,1,0,0
MMPXY,2,1280,0
MMPXY,3,1280,1280
MMPXY,4,0,1280
MMPLL,1,  15.069106,  59.297521
MMPLL,2,  15.428957,  59.296834
MMPLL,3,  15.426655,  59.112777
MMPLL,4,  15.068735,  59.113460
MM1B,16.012510
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,1280,1280
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sun Feb 14, 2016 7:58 am    Post subject: Reply with quote

I have been playing around with OziExplorer for exactly this reason and this file was created by OziExplorer. And it works correctly with a small test map of 5x5 till tiles.
Then I started taking away rows to see if it would work when very compact.
I tried both with 1279 and 1280 (OziExplorer accepts both), and when using 1280 it calculated the meters per pixel more accurately (16 in this case).
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Feb 14, 2016 8:10 am    Post subject: Reply with quote

Nope, if you calibrate map using picture in size 1280x1280, there is no way to set such value like 1280 as x or y in Ozie. Can be, if you set it other way Wink
As you see, TB checks points x,y exactly Smile BTW, OzieE accepts some maps without central meridian set too ... Laughing
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sun Feb 14, 2016 8:34 am    Post subject: Reply with quote

I have not used OziExplorer for many years (and it was not on my computer) so I downloaded the latest version yesterday and it allowed me to use either 1279 or 1280.
And both resulting calibration files worked when using the complete file. Perhaps it is critical for trekbuddy when using a shortened file. I will check again. Carefully. Thanks.
Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Feb 14, 2016 8:42 am    Post subject: Reply with quote

Which way ? Shows filed size bigger than pict is ?
Version I used is rather old (3.95.5t), but you know, upgrades and degrades ... Wink
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sun Feb 14, 2016 9:01 am    Post subject: Reply with quote

With the mouse I picked first the left upper corner (0,0) then the right upper corner (gave me 1279,0). Then I picked the bottom right corner and it gave me 1279, 1280. I then changed 1280 to 1279 in the input box. Lastly I picked the lower left corner and made sure it was 0,1279. Then I saved the file. I tested it and it worked.
Then I went back (since it allowed me to pick 1280) and changed all the 1279 to 1280 (in the input boxes of the points). Saved the file and tested that it worked. The only difference that I noticed was the meters per pixel value (16, when using 1280).
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sun Feb 14, 2016 9:29 am    Post subject: Reply with quote

All points picked with the mouse when zoomed in to max possible.

Ozi 3.95.6f



2016-02-13.png
 Description:
Point 2
 Filesize:  23.04 KB
 Viewed:  9544 Time(s)

2016-02-13.png


Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Feb 14, 2016 9:33 am    Post subject: Reply with quote

One line more for y in corner ? Interesting Smile
In version I use - no way to do it, using map pointer.
About picts upside - you don't use scale 100% for calibration ?
BTW, one pixel difference isn't problem when calibration points are inside field, but on edges ...
As I wrote, TB doesn't accept maps with empty central meridian too.
I'm using maps in PL-1992, it is similar to SWEREF 99 TM, just size of country is a bit different Wink
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sun Feb 14, 2016 9:52 am    Post subject: Reply with quote

Ranger wrote:
One line more for y in corner ? Interesting Smile

Works the same for the bottom points. I can choose 1280 for y also

Ranger wrote:
About picts upside - you don't use scale 100% for calibration ?

To make picking easier I just zoomed in with the mouse wheel. (my laptop screen is quite small...)

Ranger wrote:
BTW, one pixel difference isn't problem when calibration points are inside field, but on edges ...

Yes, I did not notice any difference in the lat, lon values, but did not really look for differences either. I was just trying to make it work in Trekbuddy.

I have now changed to 1279 in the shortened .map file, but Trekbuddy still says:Too few calibration points.

Perhaps it recognizes only use lat lon values?



2016-02-14.png
 Description:
Error message
 Filesize:  27.85 KB
 Viewed:  9531 Time(s)

2016-02-14.png


Back to top
View user's profile Send private message
Ranger



Joined: 12 Dec 2006
Posts: 6030

PostPosted: Sun Feb 14, 2016 10:16 am    Post subject: Reply with quote

Ozie shows cross on enlarged map view to make calibration easier. Enough for me. Do you have grid lines on map pictures ?
My proposal is - start with full content of calibration file as from OziE is, and next try to remove parts of calibration file.
You will see when app will stop working Smile
I don't remember what lines are needed exactly for this kind of maps; ones I use just have full calibration info Smile Maybe Kruch remembers ? Smile
App just shows some calibration points not recognized, that's all.
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5664

PostPosted: Sun Feb 14, 2016 10:33 am    Post subject: Reply with quote

"Too few calibration points" exception is thrown

when number of PointXY or MMPLL lines is less than 2.

The topic describing manadatory content of calibration file may be inaccurate, sorry Embarassed
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 413
Location: Sweden

PostPosted: Sun Feb 14, 2016 10:57 am    Post subject: Reply with quote

kruch wrote:
number of PointXY or MMPLL lines is less than 2.


So the MMPLL lines must also be there? Do they have to give lat/lon values?
(Since the tiles are in SWEREF99TM it is very easy to calculate Northing and Easting (based on tile numbering), but to convert to Lat/Lon adds quite a bit of complexity...

Are there other calibration file formats that can be used? Iremember vaguely "gmi" was mentioned somewhere? Would that help in this case?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> General discussion All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group