question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot build the `Map Tile packager` using gradle

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:39 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
roostaamircommented, Apr 20, 2016

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

0reactions
hannesa2commented, Sep 26, 2020

Maybe you can try out if this modernized repo helps

Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.hannesa2:osmdroid:6.1.6.2'
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

how to use osmdroid's OSM MAP Tile Packager - Stack Overflow
Download the project from github; run a 'gradle build' in the top folder ... Just call gradle compileJava in OSMMapTilePackager directory.
Read more >
Problem: The Create Map Tile Package tool returns ...
The Create Map Tile Package tool returns incomplete tiles when the input raster does not have pyramids and statistics. Solution or Workaround.
Read more >
osmdroid
... New sample, compass/heading up #304; setNumberOfTileDownloadThreads should be static #303; cannot build the Map Tile packager using gradle #300 ...
Read more >
Secrets Gradle plugin | Maps SDK for Android
Installation and usage · In your top-level settings. · In Android Studio, open your project-level build. · Open your module-level build. · Save...
Read more >
Release notes for 100.6 | ArcGIS Runtime API for iOS
After closing the package, do not continue to use any objects (maps, ... The build.gradle and pom.xml files do not have a dependency...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found