JTileDownloader gets Forbidden from Mapnik

fksr86

I need to download some tiles to use them offline in a webpage using JTileDownloader, version 0-6-1.

When I use Mapnik as the source, it get a 'Forbidden' message. what may be happening?

I've heard that this happens if you don't declare an user-agent, but the programs seem not to offer this option.

Anyhow, does anybody know an option to download tiles through Mapnik?

Ilja Zverev

This tile grabber was forbidden from downloading tiles by OSM administrators. They did not listen to any reasoning for allowing it to download tiles. The policy is that they block all tile downloaders, regardless of how it works.

If a tile layer does not matter, use another one, like MapQuest Open.

Now, to download tiles, JTileDownloader is the best option, because it is easy on a server, having delays between requests and downloading tiles in quadtile order. You will have to change User-Agent string, and for that you'll need to recompile the project. Download the source code:

svn co http://svn.openstreetmap.org/applications/utils/downloading/JTileDownloader/trunk/ JTileDownloader

Then find TileListDownloader.java in src/org/... and find a string Agent inside it. Replace JTileDownloader with any other word, and then compile and run the new version with ant run in JTD's root directory.

Note that you should not download too many tiles, that is, more than a couple thousand. If you need more, please install PostgreSQL and Mapnik and generate as many tiles as you like locally.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

iOS Twitter Kit usage gets error 'Request failed: forbidden'

From Dev

Rendering feature labels in mapnik

From Dev

Rendering feature labels in mapnik

From Dev

403 Forbidden from Azure Graph API

From Dev

403 Forbidden from bitcoind -server run on docker

From Dev

Import contact from Outlook api access forbidden

From Dev

TypeError: Inheritance a class from URL is forbidden

From Dev

parsing from website which return 403 forbidden

From Dev

Reading HTML from a website returning 403 forbidden

From Dev

Installing phpMyAdmin from repository, 403 Forbidden error

From Dev

Nginx from source, return 403 Forbidden

From Dev

Ajax POST with csrfmiddlewaretoken and csrftoken cookie set still gets django 403 Forbidden

From Dev

class that gets a value from database

From Dev

Trying to create a namespace in an AWS EKS cluster with kubectl - Getting: Error from server (Forbidden): namespaces is forbidden

From Dev

403 Forbidden Access to CodeIgniter controller from ajax request

From Dev

javascript check from input if any values are in array of forbidden words

From Dev

Can't publish to Azure from VS 2013 RC (403 Forbidden)

From Dev

Deploy from Maven to Nexus got error: ReasonPhrase:Forbidden

From Dev

What could be the cause of Forbidden command : SHOW WARNINGS to MySql from SpringJDBC

From Dev

Want to fetch information from a website but it shows "250 forbidden" with Python

From Dev

GMail API access from chrome extension? 403 Forbidden

From Dev

Current Observation feed from weather.gov forbidden (403)

From Dev

403 Forbidden response from jQuery.ajax request with PhoneGap Desktop

From Dev

403 (Forbidden) publishing Azure Web Job from Visual Studio

From Dev

Skip forbidden rows from a BigQuery query, using Python

From Dev

Error 403 Forbidden while trying to download file from Google Drive

From Dev

403 Forbidden Access to CodeIgniter controller from ajax request

From Dev

What could be the cause of Forbidden command : SHOW WARNINGS to MySql from SpringJDBC

From Dev

Forbidden Error after ssh transfer from plesk to cpanel

Related Related

  1. 1

    iOS Twitter Kit usage gets error 'Request failed: forbidden'

  2. 2

    Rendering feature labels in mapnik

  3. 3

    Rendering feature labels in mapnik

  4. 4

    403 Forbidden from Azure Graph API

  5. 5

    403 Forbidden from bitcoind -server run on docker

  6. 6

    Import contact from Outlook api access forbidden

  7. 7

    TypeError: Inheritance a class from URL is forbidden

  8. 8

    parsing from website which return 403 forbidden

  9. 9

    Reading HTML from a website returning 403 forbidden

  10. 10

    Installing phpMyAdmin from repository, 403 Forbidden error

  11. 11

    Nginx from source, return 403 Forbidden

  12. 12

    Ajax POST with csrfmiddlewaretoken and csrftoken cookie set still gets django 403 Forbidden

  13. 13

    class that gets a value from database

  14. 14

    Trying to create a namespace in an AWS EKS cluster with kubectl - Getting: Error from server (Forbidden): namespaces is forbidden

  15. 15

    403 Forbidden Access to CodeIgniter controller from ajax request

  16. 16

    javascript check from input if any values are in array of forbidden words

  17. 17

    Can't publish to Azure from VS 2013 RC (403 Forbidden)

  18. 18

    Deploy from Maven to Nexus got error: ReasonPhrase:Forbidden

  19. 19

    What could be the cause of Forbidden command : SHOW WARNINGS to MySql from SpringJDBC

  20. 20

    Want to fetch information from a website but it shows "250 forbidden" with Python

  21. 21

    GMail API access from chrome extension? 403 Forbidden

  22. 22

    Current Observation feed from weather.gov forbidden (403)

  23. 23

    403 Forbidden response from jQuery.ajax request with PhoneGap Desktop

  24. 24

    403 (Forbidden) publishing Azure Web Job from Visual Studio

  25. 25

    Skip forbidden rows from a BigQuery query, using Python

  26. 26

    Error 403 Forbidden while trying to download file from Google Drive

  27. 27

    403 Forbidden Access to CodeIgniter controller from ajax request

  28. 28

    What could be the cause of Forbidden command : SHOW WARNINGS to MySql from SpringJDBC

  29. 29

    Forbidden Error after ssh transfer from plesk to cpanel

HotTag

Archive