[gdal-dev] gdal_translate via wmts.xml produces an empty tif

Even Rouault even.rouault at spatialys.com
Wed Jun 14 12:39:21 PDT 2017


On mercredi 14 juin 2017 12:16:06 CEST Helmut Kudrnovsky wrote:
> http://osgeo-org.1560.x6.nabble.com/file/n5324225/wmts_bm2.xml


Add   <TileMatrix>19</TileMatrix>

It appears that there are not tiles at zoom level 20, at least in this area.

If you add --debug on to the gdal_translate, you'll see:

HTTP: Request [13] https://maps1.wien.gv.at/basemap/bmaporthofoto30cm/normal/
google3857/20/369064/554862.jpeg : status = 404, content type = text/html; 
charset=iso-8859-1, error = <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /basemap/bmaporthofoto30cm/normal/
google3857/20/369064/554862.jpeg was not found on this server.</p>
<hr>
<address>Apache Server at maps1.wien.gv.at Port 80</address>
</body></html>

The reason the error is silent is because of the
<ZeroBlockHttpCodes>204,404</ZeroBlockHttpCodes>

If you remove that, then gdal_translate would have failed.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170614/da35862c/attachment.html>


More information about the gdal-dev mailing list