This object is in archive! 

"This folder is already in use" (where to store mbtiles file?)

Mikael Book shared this problem 5 years ago
Not a Problem

Hi,

I dowloaded the OpenSeaMap's charts for the Baltic Sea from here: https://ftp5.gwdg.de/pub/misc/openstreetmap/openseamap/charts/mbtiles/OSM-mbtile-Baltic.7z , and extracted the file Baltic.mbtiles from that archive.

Then I used adb to create the folder

i9300:/storage/emulated/0/Locus/maps/ ---i9300 is my Samsung phone

and pushed Baltic.mbtiles to that folder

whereafter I opened my brand new Locus Maps Pro app in order to add External Maps. When I click on the + sign Locus shows me the filename and size and a green icon with text "tile" something. BUT when I select that file, Locus says "This folder is already in use. Try another one"

I then created

i9300:/storage/emulated/0/Locus/mapsVector/

and

i9300:/storage/emulated/0/Locus/mapsVector/baltic

and tested whether Locus would find Baltic.mbtiles if I moved the file to these. The answer from Locus was always the same: "This folder is already in use..."

What to do?

(My phone has Lineage OS with Android 7.1.2)

Cheers, Mikael

Replies (2)

photo
1

Your help may not be needed, because when I moved the file Baltic.mbtiles to /sdcard/tmp and went to add it into Locus from there it was recognized by Locus. So now it seems that I have a working offline version of the Open Sea Map charts on my phone. Fine!

You may still want to explain why the file was not recognized when copied with adb to /sdcard/Locus/maps or /sdcard/Locus/mapsVector ?

Cheers,

Mikael

photo
1

Hi Mikael,

when you copy the mbtiles directly to Locus/Maps folder, it is unnecessary to add such maps as externals, Locus loads them automatically at its start - external maps are always stored out of dedicated Locus directory structure (e.g. on an external SD card). Similarly with the MapsVector folder, moreover, this folder is dedicated to vector maps (mbtiles is a database with raster map tiles).

Replies have been locked on this page!