using ozi explorer maps in locus

Started by bongo, November 24, 2011, 23:43:58

0 Members and 1 Guest are viewing this topic.

bongo

it would be a very nice feature if locus was able to directly use maps in oziexplorer format.
this would save space on the flash, as each map would only be required to be stored in one dataformat.
  •  

krzysiekz

#1
It should first support custom datums and projections to fully use these maps.
  •  

Menion

#2
support for custom projections is already implemented (for around 14 days). I use it now only on WMS services, but next will come. Probably configuration files from converted Ozi maps? If you want, you may help me with this ... at least with some sample files :)

anyway about direct using of Ozi maps .. this isn't possible. Ozi format is as I know, binary format that cannot be used in any other then Ozi application. Also I don't saw any documentation for this on web
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

ormoru

#3
But you can support OZI image format. OZI can read png file with map and map file with calibration data ...
  •  

Menion

#4
you mean read huge *.png file with one *.map file on phone? This is really terrible ... it will be really very slow even impossible to cut off only part from png file that you want currently display and it's also impossible to hold in memory some bigger png file ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

krzysiekz

#5
Quote from: "menion"support for custom projections is already implemented (for around 14 days). I use it now only on WMS services, but next will come. Probably configuration files from converted Ozi maps? If you want, you may help me with this ... at least with some sample files :)

My custom datum file from ozi explorer (datums.dat):
Pulkovo 1942 POL, 15, 23.74, -123.83, -81.81
Borowa Gora, 27, 655, 22, 444
Borowa Gora (Ranger), 3, 633, 33, 456
First is for '80 1:50k military topo maps, second and third are used with old ('35) Polish military maps.

Projection file for Pulkovo 1942 POL
OziExplorer Map Data File Version 2.2
M-34-005-a.png
m-34-005-a.ozfx3
1 ,Map Code,
Pulkovo 1942 POL,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,   62,   67,in, deg,  52,       0,N,  20,       0,E, grid,   ,           ,           ,N
Point02,xy, 1945,   69,in, deg,  52,       0,N,  20,      15,E, grid,   ,           ,           ,N
Point03,xy, 1942, 2113,in, deg,  51,      50,N,  20,      15,E, grid,   ,           ,           ,N
Point04,xy,   55, 2109,in, deg,  51,      50,N,  20,       0,E, grid,   ,           ,           ,N
Projection Setup,     0.000000000,    21.000000000,     1.000000000,      4500000.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,2000,0
MMPXY,3,2000,2166
MMPXY,4,0,2166
MMPLL,1,  19.991625,  52.005407
MMPLL,2,  20.257401,  52.005670
MMPLL,3,  20.257584,  51.828967
MMPLL,4,  19.992849,  51.828710
MM1B,9.121782
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,2000,2166

Borowa gora sample projection file
OziExplorer Map Data File Version 2.2
P40_s33_minsk_mazowiecki.png
P40_S33_Minsk_Mazowiecki.ozfx3
1 ,Map Code,
Borowa Gora,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,  537,  759,in, deg,    ,        ,N,    ,        ,E, grid,   ,     556000,     524000,N
Point02,xy, 4075,  975,in, deg,    ,        ,N,    ,        ,E, grid,   ,     586000,     522000,N
Point03,xy, 4087, 3100,in, deg,    ,        ,N,    ,        ,E, grid,   ,     586000,     504000,N
Point04,xy,  783, 3352,in, deg,    ,        ,N,    ,        ,E, grid,   ,     558000,     502000,N
Projection Setup,     0.000000000,    22.000000000,     0.999500000,       599927.00,     -5259887.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,357,288
MMPXY,2,5477,0
MMPXY,3,4392,3568
MMPXY,4,0,4091
MMPLL,1,  21.334442,  52.249263
MMPLL,2,  21.970485,  52.271029
MMPLL,3,  21.834639,  51.999390
MMPLL,4,  21.292538,  51.959281
MM1B,8.477804
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,5477,4091

More about old mil's maps http://www.mapywig.org/
  •  

bongo

#6
i thought that if androzic, which is on a much lower level than locus in many things, is able to support ozi maps, locus should be able to do so too.
  •  

Menion

#7
androzic use some other library that violate terms of use OziExplorer authors

EDIT: hmm anyway I don't know how this all works .. have anyone some more specific information about Ozi Explorer map format? For example this program I discovered http://www.geopainting.com/en/limitations.html can read Ozi maps and it's payed, so it is possible that it do it's work illegaly, but it's also possible that no ...

NEXT EDIT: ah nice ... http://code.google.com/p/ozfenc/ .. so map format of OZFX2 can be found here in these pythons scripts. Good enough ... so now main question is if there exist any tool that allow convert from new OZFX3, to older OZFX2 format and also what about the "terms of use" ... any ideas?

LAST EDIT (after next hour of seaching) : oki guys. Because Locus now allow to handle all possible map projections, I'm willing to sacrifice few days to try and test OZFX map format (surely num. 2, maybe 3. also). Main thing for me is here ability to public propagation of this feature. So I need some information if there is allowed to use this format or not. If author of OziExplorer do not allow this at all cost, I'll not do this ... otherwise ... hmm :)

REALLY LAST EDIT: damn, I discovered this .. http://www.oziexplorer.com/ ... seems I'll try to contact OziExplorer creator by myself to check possibilities ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

bongo

#8
great - thanx!
  •  

sinda

#9
It would be fantastic. Many Locus users have maps in Ozi format (map+jpg, Ozfx2, Ozfx3)
Quotemenion wrote:
if there exist any tool that allow convert from new OZFX3, to older OZFX2 format
There is such tool - OzfConverter, by hnedka from gpsforum.sk
Last version (1.5) is there:
//http://www.gpsforum.sk/index.php/topic,956.msg37667.html#msg37667
I think whole topic is worth reading.
Hnedka also made reverse engineering of the ozfx2 and ozfx3 format:
//http://trac.osgeo.org/gdal/browser/sandbox/klokan/ozf/ozf-binary-format-description.txt

And what about legal issues with map, ozfx2 and ozfx3? I think it is the same situation like with Microsoft format .doc. There are programs (OpenOffice, Libre Office), which can read and save files in those formats although doc is closed and unpublished format.
  •  

Menion

#10
hmm this is really very informative post, thanks sinda!

- I already wrote to creator of Ozi, but no answer yet (to be true I don't expect answer)
- I read some posts from links (and also many more now) and seems like someone is trying to take care about unwanted applications ... I found this http://www.trekbuddy.net/forum/viewtopic.php?p=30861. I had already issues with online map and even that OZFX format seems pretty easy, I'll not do some direct support for this. I really cannot risk it.
- anyway there is still chance to add some fully working support. Few years ago, I did tool for cutting maps into tile pieces ... ah here ... http://code.google.com/p/locus-image-cutter/. Locus now allow to handle various coordinate formats (at least I hope it will work), so maybe it's time to improve this tool a little and add better support for converted maps. Fine, I can surely promise I'll work on it. Currently I have few important things (and some I want to do more then this) to do, but during winter I'll surely find enough time for this ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •