This object is in archive! 

Error: cannot obtain zoom levels

Mark Wallace shared this problem 9 years ago
Solved

getting an error on startup. I downloaded an offline hybrid mapquest map area. The map itself and zooming appear to be functioning appropriately. however I get an error upon every start up.

Not sure if I moved or deleted something in error.

Problem with map adding

File:/sdcard/locus/mapsonline/

Mapquest_hybrid.sqlitedb

errror: cannot obtain zoom levels.

What is odd is that it indicates sdcard when It appears the entire application and maps are on the device itself.

Any help?

Replies (9)

photo
1

Hello Mark,


just for your information, "sdcard" on Android do not always mean real external SD Card. It's quite a mess, but it may be an internal memory as well.


It's also weird that such error appear to you. It looks like Locus is trying to load map from cache as a regular offline map.


If you check menu > maps > tab Personal - and here three dot menu > "Add maps" - don't you have here anything that point to locus/mapsOnline directory? It should not be there, so please check it.

photo
1

Based on your comments above I removed the reference to the

locus/mapsonine directory after moving the 2 map files in that directory

to the /maps directory. The error still occurs but now points to the

new directory (the error followed the file)


Original Error Message New error message


Problem with map adding ---------------same


File:/sdcard/locus/mapsonline/-------- file /storage/emulated/0/locus/maps/

photo
1

Resolved. Ended up deleting the offending file after finding I had two similarly named files one being large and one being small (cache maybe?) I believe your original suggestion solved the issue.


photo
1

Hello Mark,


thank you for your testing. Seems that Android (Locus), has really some troubles with this maps file. If you don't care about cached map tiles, just simply delete this file.


If you want to fix this database, there is currently no 100% method. Anyway me or my colleague may try to fix it, if you share your file with us over any web service.

photo
1

Hmmm.

hello Menion, I found same problem.

So I erased all files ( "journal "-files and other, 2 per each map) in the folder and error message didnt come again.

But when I used online maps it comes again.

Stupid little...

Is there a solution or do I have to clickaway the error notice each time?

(I obviously did not exactly understand the tips above)

hannes

photo
1

Hello Hannes,


it's really weird. If you don't care about this map, just delete file in mapsOnline directory and Locus creates a new one after start.


Otherwise, may you share with me that map file that cause these troubles? Just the big one. The small one is useless. Thanks

photo
1

hi, can you help with this file.

error cannot obtain zoom levels

tried the link, but to no avail http://docs.locusmap.eu/doku.php?id=manual:various:repair_corrupted_sqlite_db

please find attached file in question

thanks rgds mark

photo
1

Good day mark,


unfortunately I do not know what exactly is your problem, as there is no attachment in you topic. May you please describe your problem more precisely. If may is too big (bigger then around 5MB), please use for sharing any web service, like Dropbox or another. Thanks

photo
1

Hi menion. I've the same issue with this map here. even after removing/reinstalling locus. I guess it has to do with mbtiles format. here is the map https://tnc.box.com/s/wesdwdirrj9tsltco2v5


- attached are the screens. any idea what that could be? thank you,

photo
1

Good day raffael,


I'm checking your map. Where did you downloaded this map? Because in map (SQLite database) is missing one table (view) that Locus use for getting a data from this database.


MBT specification is here https://github.com/mapbox/mbtiles-spec/blob/master/1.1/spec.md ... and Locus miss table named "tiles". This table is a "View" based on already existing tables "images" and "map", but it's not there!


So please forward this to creator of this map or fix it on your own. Or, give me some more information in case, issue is on my (Locus) side.

photo
1

Alright, thank you for the quick reply! I think he used maptiler.com - I will request another version.

photo
2

I've had the same problem error: ''can not obtain zoom level''. Two weeks I've tried to solve this problem. I could use a maps which was written earlier but I couldn't import and use new one. As result I did it. The problem was in ExtraSdCard. You can change a card or try to format it. In my case the problem was solved. Good luck!

Boris

Replies have been locked on this page!