abdojobs / gccv2

Automatically exported from code.google.com/p/gccv2
0 stars 0 forks source link

Unable to download mapnik map-tiles #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Version 4.7

Downloaded mapnik-tiles works like always, but downloading new tiles from 
within the GCC produces a "download error"

Investigated the problem, by monitoring the exact urls used by GCC (requests 
going throug my router)

Example URL producing a download error:
http://tile.openstreetmap.org/mapnik/14/8636/5137

The url SHOULD be:
http://tile.openstreetmap.org/mapnik/14/8636/5137.png

The error is not returned when using the Osmarender tile-server, because
it does not require the ".png" extension.

The url's seems to be hardcoded. Maybe the solution is to make them user 
customizable.

Original issue reported on code.google.com by azzazina...@gmail.com on 22 May 2011 at 1:53

GoogleCodeExporter commented 8 years ago
Sorry for the late answer - I was on holiday.
On my device downloading from mapnik is working.
The GET request (sniffed with WireShark) includes the extension:
"GET /mapnik/16/35009/22929.png HTTP/1.1"

If you select in GCC a map directory, GCC detects the type of map. If there are 
directories with names "0" to "18" it detects "OSM tiles map". In this case GCC 
takes the extension from the first file found (two levels down). (GCC can also 
handle .jpg, .bmp and other tiles.)
In your case I suppose that you have a file without an extension in your mapnik 
map directory. Please delete all files in your map directory which aren't valid 
tiles.
Klaus

Original comment by kmb...@gmx.de on 5 Jun 2011 at 7:42