berlog / androzic

Automatically exported from code.google.com/p/androzic
0 stars 0 forks source link

Map Index error with Australian NSW maps #251

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I get a map index error: index=0 length=0 when I start Androzic with any NSW 
topo maps in the map folder.

All my NSW maps worked fine in older (>6 months) versions of androzic and work 
fine in the desktop and android versions of oziexplorer.

Below is a map file which causes this error:

OziExplorer Map Data File Version 2.2
86261S__RENDEZVOUS_CREEK
86261S__RENDEZVOUS_CREEK.ozf2
1 ,Map Code,
WGS 84,WGS84,   0.0000,   0.0000,WGS84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Latitude/Longitude,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No
Point01,xy,    0,    0,in, deg,  35,    37.5,S, 148,       45,E, grid,   ,      
     ,           ,N
Point02,xy,    5120,    2560,in, deg,  35,      45,S, 149,        0,E, grid,   
,           ,           ,N
Point03,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point04,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point05,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point06,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point07,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point08,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point09,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point10,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point11,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point12,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point13,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point14,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point15,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point16,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point17,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point18,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point19,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point20,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point21,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point22,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point23,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point24,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point25,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point26,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point27,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point28,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point29,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point30,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Projection Setup,,,,,,,,,,
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,5120,0
MMPXY,3,5120,2560
MMPXY,4,0,2560
MMPLL,1, 148.750000, -35.625000
MMPLL,2, 149.000000, -35.625000
MMPLL,3, 149.000000, -35.750000
MMPLL,4, 148.750000, -35.750000
MM1B,4.476923
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,5120,2560

Original issue reported on code.google.com by bren...@howefamily.ath.cx on 19 Apr 2012 at 9:55

GoogleCodeExporter commented 8 years ago
I also have this problem using 1.5. 1.6b also has the defect.

Original comment by phillip....@gmail.com on 23 Apr 2012 at 4:06

GoogleCodeExporter commented 8 years ago
Can you share ozf2 file also, so I can test it?

Original comment by novikov on 12 May 2012 at 8:09

GoogleCodeExporter commented 8 years ago
Here is a copy of a .map & .ozf2 file that fails.

http://dl.dropbox.com/u/11425568/86261S__RENDEZVOUS_CREEK.map
http://dl.dropbox.com/u/11425568/86261S__RENDEZVOUS_CREEK.ozf2

Original comment by bren...@howefamily.ath.cx on 13 May 2012 at 8:47

GoogleCodeExporter commented 8 years ago
Same problem, it started getting map index error when I installed v1.4.1, v1.4 
works fine.

Original comment by scraps4...@gmail.com on 28 May 2012 at 9:15

GoogleCodeExporter commented 8 years ago
I'm a  new user and have the same problem with all my NSW topo maps that I hav 
tried. I am using version 1.6

Original comment by er...@pillemer.net on 18 Jun 2012 at 12:51

GoogleCodeExporter commented 8 years ago
Installed version 1.4 on my Acer tablet and the maps now load

Original comment by er...@pillemer.net on 19 Jun 2012 at 11:03

GoogleCodeExporter commented 8 years ago
New user with Galaxy Note, using v1.6 having same problem with NSW topo maps.

Original comment by dwaine...@gmail.com on 22 Jun 2012 at 1:01

GoogleCodeExporter commented 8 years ago
I wante to attach 2 Australian maps, but I see the attachment storage quota is 
exceeded so have included the .map files. The 531_Bairnsdale works with version 
1.6 the 9131_Gosford works with version 1.4 and not wiyh 1.6. I think the 
problem is in the map file and I have tried some editing without success. Any 
help would be appreciated.
############
OziExplorer Map Data File Version 2.2
BAIRNSDALE
531.ozf2
1 ,Map Code,
Australian Geocentric 1994 (GDA94),,   0.0000,   0.0000,WGS 84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,(VICGRID) Victoria 
Australia,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No
Point01,xy,    0,    0,in, deg,    ,        ,S,    ,        ,E, grid,   ,    
2720000,    4428000,S
Point02,xy, 4800, 4800,in, deg,    ,        ,S,    ,        ,E, grid,   ,    
2750000,    4398000,S
Point03,xy,     ,     ,in, deg,    ,        ,S,    ,        ,E, grid,   ,       
    ,           ,S
Point04,xy,     ,     ,in, deg,    ,        ,S,    ,        ,E, grid,   ,       
    ,           ,S
Point05,xy,     ,     ,in, deg,    ,        ,S,    ,        ,E, grid,   ,       
    ,           ,S
Point06,xy,     ,     ,in, deg,    ,        ,S,    ,        ,E, grid,   ,       
    ,           ,S
Point07,xy,     ,     ,in, deg,    ,        ,S,    ,        ,E, grid,   ,       
    ,           ,S
Point08,xy,     ,     ,in, deg,    ,        ,S,    ,        ,E, grid,   ,       
    ,           ,S
Point09,xy,     ,     ,in, deg,    ,        ,S,    ,        ,E, grid,   ,       
    ,           ,S
Point10,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point11,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point12,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point13,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point14,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point15,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point16,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point17,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point18,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point19,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point20,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point21,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point22,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point23,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point24,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point25,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point26,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point27,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point28,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point29,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point30,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Projection Setup,,,,,,,,,,
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,4800,0
MMPXY,3,4800,4800
MMPXY,4,0,4800
MMPLL,1, 147.493, -37.6229 
MMPLL,2, 147.832, -37.6153
MMPLL,3, 147.842, -37.8855
MMPLL,4, 147.501, -37.8931
MM1B,6.246911
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,4800,4800

############
OziExplorer Map Data File Version 2.2
9131__GOSFORD
9131__GOSFORD.ozf2
1 ,Map Code,
WGS 84,WGS84,   0.0000,   0.0000,WGS84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Latitude/Longitude,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No
Point01,xy,    0,    0,in, deg,  33,     0,S, 151,      0,E, grid,   ,          
 ,           ,N
Point02,xy, 5120, 5120,in, deg,  33,    30,S, 151,      30,E, grid,   ,         
  ,           ,N
Point03,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point04,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point05,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point06,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point07,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point08,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point09,xy,     ,     ,in, deg,    ,        ,N,    ,        ,W, grid,   ,       
    ,           ,N
Point10,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point11,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point12,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point13,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point14,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point15,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point16,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point17,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point18,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point19,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point20,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point21,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point22,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point23,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point24,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point25,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point26,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point27,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point28,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point29,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Point30,xy,     ,     ,in, deg,    ,        ,,    ,        ,, grid,   ,         
  ,           ,
Projection Setup,,,,,,,,,,
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,5120,0
MMPXY,3,5120,5120
MMPXY,4,0,5120
MMPLL,1, 151.00, -33.00
MMPLL,2, 151.50, -33.00
MMPLL,3, 151.50, -33.50
MMPLL,4, 151.00, -33.50
MM1B,8.98
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,5120,5120
############

Original comment by er...@pillemer.net on 24 Jun 2012 at 11:58

GoogleCodeExporter commented 8 years ago
I was hoping we might hear from the developer by now.
I have looked and modified the map files yet they are still not loading so have 
placed the files and a comparison spreadsheet of the map file in Dropbox.

https://www.dropbox.com/sh/lxnx8oqlcfqq0a3/HEDvsHGnKQ

Perhaps someone else has more luck

Original comment by er...@pillemer.net on 29 Jun 2012 at 2:31

GoogleCodeExporter commented 8 years ago
Also have this problem, my hema maps load fine, just the 25k and 100k topo maps 
not working

Original comment by disposab...@gmail.com on 4 Jul 2012 at 11:27

GoogleCodeExporter commented 8 years ago
I also have this problem after recently upgrading Androzic from Google Play.

Now none of the maps from http://maps.festy.org/download/ozi seem to work. 8-(

How sad.

Androzic is so much better than the sluggish Ozi Explorer app for android.

Original comment by GeoK...@gmail.com on 3 Aug 2012 at 2:37

GoogleCodeExporter commented 8 years ago
Hi,

I also encountered a Map Index problem loading map files that came from "Festy 
Maps".

After many, many, many hours of research and testing I found that the "MM1B" 
setting in the Festy map file was causing the error. What I did to make the 
maps work:
1. Backup all your maps and map files.
2. Select a map to test.
3. Open map in OziExplorer.
4. Save the map file. Map button top right corner.
5. Exit OziExplorer.
6. Copy map and newly saved map file to your device. To save time during 
testing make sure no other maps are on device.
7. Open Androzic and see if this works for you.

I still haven't worked out a programmatic solution to the problem as for the 
life of me I can't replicate the Ozi scale calculation.

Hope this helps.

Original comment by gammapis...@gmail.com on 17 Aug 2012 at 3:01

GoogleCodeExporter commented 8 years ago
I also have the same - map index problem, with older versions all was fine!

Original comment by behma...@gmail.com on 12 Sep 2012 at 7:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes, I have same issues and waiting for the solution. thanks.

Original comment by vwuem...@gmail.com on 12 Dec 2012 at 12:02

GoogleCodeExporter commented 8 years ago
This was due to empty lines in a map file. Will be fixed in an upcoming release.

Original comment by novikov on 6 Jan 2013 at 7:08

GoogleCodeExporter commented 8 years ago
Yep - seems to be working with the festy (http://maps.festy.org/) maps (NSW 25k 
and 100k at least). Thanks!

Original comment by b...@bdlow.net on 14 Jan 2013 at 11:55