Pradhi11 / osmdroid

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

OSMMapTilePackager - FolderZipper creates a zip with an empty root entry #476

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up a directory with tiles to import, e.g. dir = "tilesExample"
2. Call FolderZipper.zipFolderToFile
3.

What is the expected output? What do you see instead?
the first level of the zip file should be "tilesExample" whereas it is ""
and the second level is "tilesExample"

What version of the product are you using? On what operating system?
OSMMapTilePackager 3.10

Please provide any additional information below.
The pb is coming from the directory basename which should contain the final '/'.
I would correct as follows:
l.44: final String baseName = pFolderToZip.getParent() + '/';

but how come nobody came across this pb?? would proposed fix ruin sth???

Original issue reported on code.google.com by cecile.robin on 9 Sep 2013 at 5:55

GoogleCodeExporter commented 9 years ago
The OSMMapTilePackager has been retired. We suggest you use MobileAtlasCreator 
http://mobac.sourceforge.net/. Some very basic info can be found at the wiki: 
https://code.google.com/p/osmdroid/wiki/MobileAtlasCreator.

Original comment by kurtzm...@gmail.com on 9 Sep 2013 at 6:39