Talk:JTileDownloader

From OpenStreetMap Wiki
Latest comment: 12 years ago by Zverik in topic General Discussion
Jump to navigation Jump to search

General Discussion

  • I'm not sure the best way to submit patches, hopefully this is ok. There are two, both here: http://icculus.org/~chunky/stuff/jtileDownloader/ User:chunkyks
    • mapquest_data.diff is a patch to use mapquest OSM rendered, and satellite tiles. MQ Usage policy: http://developer.mapquest.com/web/products/open/map
    • OSMTileProvider is for downloading from OSM. Usage policy: http://wiki.openstreetmap.org/wiki/Tile_usage_policy
    • Obviously this one requires an addition "new OSMTileProvider()" added to the list in TileProviderList
      • I'll add MapQuest source in next version, but what's the difference between OSMTileProvider and [1]? Also, such minor things as adding new layers could be done with a simple URL of tiles. --Zverik (talk) 20:29, 13 September 2013 (UTC)Reply
        • Oh, man... mapnik is exactly what I want. Don't know why I didn't notice that :-/ . Just forget about the OSMProvider!
    • I've just added another patch [tilelist_append.diff] there, that adds an extra button to the gui next to "export", called "append" User:chunkyks
    • http://icculus.org/~chunky/stuff/jtileDownloader/
    • I keep wanting to download non-square patches of data. Long-term, I'd like to be able to draw an outline to the slippy map rather than a box, but append allows me to choose multiple boxes without having to mess with the filesystem
      • If you plan on using JTD in long term, you are doing it wrong. Please install PostGIS/Mapnik, setting up your own rendering toolchain. As a bonus, you'll be able to produce tiles for any shape with polytiles.py. --Zverik (talk) 15:16, 18 September 2013 (UTC)Reply
        • I'm in the process of setting that up. But JTD is still the tool I'm going to help other people use to batch download tiles from my server [typical usage is to download so they can drag to an airgapped network or standalone device]

Feature Requests

  • (R2)(included in v0-0-1) An option to only download a certain amount of tiles, then pause for an amount of time to prevent overloading a server with requests --Solexious 01:32, 2 August 2008 (UTC)Reply
    • should also be no problem, included one of the next versions
  • (R1)(included in v0-0-1) The option to choose to export the list of tile locations into a txt file rather than downloading them --Solexious 01:32, 2 August 2008 (UTC)Reply
    • no problem, included in next version

Bugs

  • (B13-Solution) - This is actually no bug but a feature...sort of. The jTileDownloader v0.6.0 requires Java SE 7 (aka Java v1.7.x). Fixing this so also older Java Runtimes are supported is quite simple as only two methods are effected. The build I created (source is available too) should be working on Java SE 5 and Java SE 6: http://help.openstreetmap.org/questions/11508/tiles-arent-being-generated/11596
  • (B13a) Got the same error:
java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.3)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
me@me-desktop:~$ java -jar /home/me/jTileDownloader/jTileDownloader-0-6-0.jar 
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: java.lang.Integer.compare(II)I
	at org.openstreetmap.fma.jtiledownloader.datatypes.TileComparatorFactory$QuadComparator.compare(TileComparatorFactory.java:57)
	at org.openstreetmap.fma.jtiledownloader.datatypes.TileComparatorFactory$QuadComparator.compare(TileComparatorFactory.java:55)
[...]
  • (B13b) I was attempting to download a tileset and got the error below:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: java.lang.Integer.compare(II)I
	at org.openstreetmap.fma.jtiledownloader.datatypes.TileComparatorFactory$QuadComparator.compare(TileComparatorFactory.java:57)
	at org.openstreetmap.fma.jtiledownloader.datatypes.TileComparatorFactory$QuadComparator.compare(TileComparatorFactory.java:55)
[...]
  • (B12) OpenCycleMap Tileserver URL Needs to be updated, some tiles can't be loaded. Please refer to this page: http://www.gravitystorm.co.uk/shine/change-of-tileserver-url/
  • (B11) Does not work with a bounding box with negative longitudes. For instance when you try the US (min lat 25, max lat 52, min long -124, max long -64) - it only downloads the Eastern part of the US (the farthest west is Illinois). This has the same cause as Bug 9. The MIN_LON and MAX_LONG values are WRONG. Version 0.5. akreider 19 August 2011
  • (B10) Copying and pasting an OSM permalink into the 'paste url' doesn't update the latitude and longitude boxes. One needs to change tabs and then come back to Paste Url to update the boxes. --Nickelliott 19 June 2010
  • (B9) Buggy behaviour when longitude > 90, for e.g. try to download something in Indonesia.
   -- B9 is due to invalid Lat Lon clamping. To fix, Swap MIN_LAT,MIN_LON and MAX_LAT,MAX_LON in Constants.java. Had the same problem with San Francisco.

Example if you try to download a tile near the coast:

java.io.FileNotFoundException: http://tah.openstreetmap.org/Tiles/tile/6/19/25.png
at sun.net.www.protocol.http.HttpURLConnection.getputStream(HttpURLConnection.java:1239)
at org.openstreetmap.fma.jtiledownloader.JTileDownloader$1.run(JTileDownloader.java:149)
at java.lang.Thread.run(Thread.java:619) --Psikodad 14:21, 3 August 2008 (UTC)Reply