kurniawanrizzki / osmdroid

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

GEMF archive from jpg not visible (from png works) #360

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make an offline "Osmdroid GEMF" atlas with Mobile Atlas Creator with 
MapQuest map source (jpg tiles)
2. Move the gemf archive to emulator or device (Android 4)
3. With an own project with a simple map view I cannot see the offline map.

What is the expected output? What do you see instead?
I should be able to see the map.

What version of the product are you using? On what operating system?
Code from SVN r1100, emulator (Win 7 - Android 4) or device (Android 4)

Please provide any additional information below.

If I make offline "Osmdroid GEMF" atlas with Mobile Atlas Creator with png 
tiles, for example Mapnik map source then the offline map is visible from the 
map view.

Is there any problem with the GEMF archive with jpg tiles ?

Original issue reported on code.google.com by devemu...@gmail.com on 17 Jul 2012 at 1:11

GoogleCodeExporter commented 8 years ago
Perfoming more tests I tried Qt viewer from http://www.cgtk.co.uk/gemf where 
the GEMF Map Store Format is described. Qt viewer shows only the GEMF archives 
which built with png tiles, and not GEMF archives which built with jpg tiles.
I even tried the menu "Open Maverick Folder" of the Qt viewer and while it 
parses correctly folders with png or jpg tiles, it shows only the png ones.

Original comment by devemu...@gmail.com on 18 Jul 2012 at 6:11

GoogleCodeExporter commented 8 years ago
Another thing that seems to not work correctly in gemf archives is the 
selection of tile sources for the map view.
For example I have 2 tile sources / gemf archives with names "MapQuest" with 
jpg tiles and "OSM CloudMade 1" with png tiles. The "OSM CloudMade 1" tile 
source with the png tiles is visible if I put the gemf file in 
/sdcard/osmdroid/ path. If I add the MapQuest gemf file in the same folder and 
I choose the MapQuest tile source because of the problem(?) of processing gemf 
archives from jpg tiles, the gemf archive which is seen again is the other one 
with the wrong name!
I have deleted cache folder "tiles" and also have set the map view in offline 
mode with setUseDataConnection(false), so it appears to parse gemf archives 
regardless the tile provider name that is written in gemf archives?
I made the gemf archives with Mobile Atlas Creator (which uses GEMFFile.java 
for creation) but also the original GEMFFile.java to create the gemf archives 
from folders of tiles with name "MapQuest" and "OSM CloudMade 1"

Original comment by devemu...@gmail.com on 19 Jul 2012 at 1:09