[Tilecache] TileCache and The GDAL WMS-C Driver

Christopher Schmidt crschmidt at metacarta.com
Thu Dec 6 01:19:13 EST 2007


On Mon, Dec 03, 2007 at 03:05:22PM -0700, Christopher Helm wrote:
> If I issue gdalinfo on this file it reads it successfully (just as it does for the WMS example), but trying to access the file via any other route (ie gdal_translate) breaks with:
> 
> 0ERROR 1: GDALWMS: Unable to download block 0, 0 (http://labs.metacarta.com/wms-c/Basic.py?request=GetMap&version=1.1.1&layers=basic&styles=&srs=EPSG:4326&format=image/jpeg&width=1024&height=1024&bbox=-180.000000,-90.000000,-143.136000,-53.136000). HTTP status code: 404
> ERROR 1: IReadBlock failed at X offset 0, Y offset 0
> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0

What call are you using to generate this? (Are you *sure* you didn't
change anything in the .xml file?)

I just tested this, and I was able to files of all kinds of odd shapes
and sizes:

crschmidt at hypercube:~/gdal$ GDAL_DATA=data ./apps/gdal_translate
-projwin -72 43 -71 42 -outsize 512 512 -of PNG test.xml test.png
Input file size is 268435456, 134217728
Computed -srcwin 80530636 35045740 745654 745654 from projected window.
0...10...20...30...40...50...60...70...80...90...100 - done.

This is using an exact copy of the XML you sent to the list as an XML
file to load against.

Can you share the GDAL_TRANSLATE function that is failing for you?

Regards, 
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list