Find out more about OpenStreetMap's upcoming license change (translations) (discussion)

JTileDownloader

From OpenStreetMap Wiki

Jump to: navigation, search

JTileDownloader is a Java application for downloading OSM tiles. You can paste a 'Permlink' to the application, select a radius in km and zoomlevel, select a renderer and download the tiles.

The application is free and the source code is available under the GPL.

Contents

General Information

I have written this small program, because OSMtiledownloader does not support pasting an OSM-URL for downloading the tile files.

Currently there are no error/info messages shown if something went wrong or some values were not entered correctly. This will be fixed in future versions.

Use the discussion tab for reporting bugs and adding feature requests

As I'm very busy at the moment, I do not have time to include new features to the JTileDownloader

Screenshots


Description

Main

Paste URL (Square)

BoundingBox (Lat/Lon)

Select a area to download specified by Latitude/Longitude

BoundingBox (X/Y)

Select a area to download specified by X/Y tile numbers


Update Tiles

Provides functionality to update existing tiles. Folder and tile server are taken from Main tab. Just press search and the table is filled with existing zoom levels. Select zoom level(s) and press update button. The tiles get updated.

Options

Wait Options

If this is enabled, the JTileDownloader will wait after the specified amount of tiles for the specified seconds before continue downloading the tiles. This option should be enabled if you download a huge amount of tile files to prevent overloading the tile server.

Tile Preview


Network

Proxy Settings

Enable this settings if you want to connect through a proxy server.

Install

Just download the .zip file and extract it somewhere on your PC.

Starting the application

Installed java version >= 1.5.0 is required

To start the application, just doubleclick/click (depending on operating system) on the downloaded .jar file.

Additionally start the application with java -jar [NameOfDownloadedFile] (eg. java -jar JTileDownloader-0-4-0.jar)

java -jar JTileDownloader-0-4-0.jar

Use the command line interface

java -jar JTileDownloader-0-4-0.jar dl=tilesUrlSquare.xml
java -jar JTileDownloader-0-4-0.jar dl=tilesBBoxLatLon.xml

example for tilesUrlSquare.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="Type">UrlSquare</entry>
<entry key="OutputLocation">C:\data\JTileDownloader\tiles</entry>
<entry key="PasteUrl">http://www.openstreetmap.org/?lat=47.777&lon=13.322&zoom=11&layers=B000TTF</entry>
<entry key="TileServer">http://tah.openstreetmap.org/Tiles/tile/</entry>
<entry key="OutputZoomLevel">11</entry>
<entry key="Radius">20</entry>
</properties>

example for tilesBBoxLatLon.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="Type">BBoxLatLon</entry>
<entry key="OutputLocation">tiles</entry>
<entry key="TileServer">http://tah.openstreetmap.org/Tiles/tile/</entry>
<entry key="MaxLat">48.2</entry>
<entry key="MaxLon">12.86</entry>
<entry key="MinLat">48.11</entry>
<entry key="OutputZoomLevel">8,9,10,11,12</entry>
<entry key="MinLon">12.77</entry>
</properties>


application specific settings may be set via appConfig.xml (file has to be in the same directory as the .jar file) example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="WaitSeconds">10</entry>
<entry key="ShowTilePreview">true</entry>
<entry key="UseProxyServer">false</entry>
<entry key="WaitAfterNrTiles">true</entry>
<entry key="ProxyServer"></entry>
<entry key="WaitNrTiles">50</entry>
<entry key="ProxyServerPort"></entry>
<entry key="ProxyServerUser"></entry>
<entry key="AutoCloseTilePreview">true</entry>
<entry key="UseProxyServerAuth">false</entry>
<entry key="OverwriteExistingFiles">true</entry>
</properties>


Releases

Planned for next version

JTileDownloader-0-4-0

Released 07, November 2008

JTileDownloader-0-3-0

Released 24, October 2008

JTileDownloader-0-2-0

Released 20, October 2008

JTileDownloader-0-1-0

Released 09, October 2008

JTileDownloader-0-0-2

Released 22, August 2008

JTileDownloader-0-0-1

Released 21, August 2008

JTileDownloader-preTest2

Released 31, July 2008

Following functionality was implemented but I'm really not sure if it would work. Please try the options to connect via some proxy from the 'Network' tab. Please tell me here if the http-proxy settings were working.

JTileDownloader-preTest1

Released 14, July 2008


Download

Requirements: Java Runtime Environment (Version >= 1.5.0 required)


Source is available at SVN

Links

Personal tools
Namespaces
Variants
Actions
Recent changes
Navigation
Toolbox