osmdroid: cannot build the `Map Tile packager` using gradle

I am trying to build the tile packager in order to build an offline map. But I am unable to build the tile packager using the gradle compilejava command. I get the two following errors:

Cannot resolve external dependency org.apache.httpcomponents:httpmime:4.0.1 be cause no repositories are defined. Required by: :OSMMapTilePackager:unspecified Cannot resolve external dependency org.apache.james:apache-mime4j:0.6 because no repositories are defined. Required by: :OSMMapTilePackager:unspecified

how can I resolve this?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 39 (1 by maintainers)

Most upvoted comments

ok I started the application using the file in the /bin folder and used the -gui switch. I left the url textbox to what it already is and set the bounding boxes for my map. I set the destinatino file to D:\Maps\Mapnik\maps.zip and the temp folder to D:\Maps\Mapnik (don’t really know what this temp folder does, if you could enlighten me that would be great too. The application will download the tiles successfully (I can see the folders and some png files inside them) but the problem is, it will start to build the maps.zip file to the point that there is no space left in my drive and I get a not enough space error.This is what the command line shows to me:

Zipping files to D:\Maps\Mapnik\maps.zip …java.io.IOException: There is not en ough space on the disk at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:345) at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java: 253) at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:21 1) at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:314) at org.osmdroid.tileprovider.util.StreamUtils.copy(StreamUtils.java:64) at org.osmdroid.mtp.util.FolderZipper.addFolderToZip(FolderZipper.java:7 2) at org.osmdroid.mtp.util.FolderZipper.zipFolderToFile(FolderZipper.java: 48) at org.osmdroid.mtp.OSMMapTilePackager.runZipToFile(OSMMapTilePackager.j ava:268) at org.osmdroid.mtp.OSMMapTilePackager.execute(OSMMapTilePackager.java:1 95) at org.osmdroid.mtp.ui.OSMMapTilePackagerUI$6$1.run(OSMMapTilePackagerUI .java:485) at java.lang.Thread.run(Thread.java:745)

done.


Deleting temp folder …Could not delete D:\Maps\Mapnik\maps.zip done.

the last two lines of error shows up after the gui asks me if I want to delete the temp folder. what should I do now?

ps: I am using only 9 and 10 zoom levels in a little bounding box for testing right now. So it cannot be the size of the map itself