id summary reporter owner description type status priority milestone component version severity resolution keywords cc 3224 Problems with large raster sizes (WMS/TMS) tamas warmerdam "I've been testing with the WMS/TMS driver at large zoom levels according to the following WMS XML file: http://web0.nearmap.com/maps/hl=en&x=${x}&y=${y}&z=${z}&nml=Vert -20037508.34 20037508.34 20037508.34 -20037508.34 20 1 1 top EPSG:900913 256 256 3 # 1. By setting the TileLevel to 19 everything is working fine. However when I increase the TileLevel to 20 I always get the following error : ""Out of memory in InitBlockInfo()"". This is beacause gdal tries to pre-allocate the pointers for all tiles in the internal memory cache. This issue can be handled by replacing the matrix based common block cache implementation with a hashtable based implementation. # 2. When I set TileLevel to 23 I get : 'Invalid dataset dimensions : -2147483648 x -2147483648'. In this case the raster size would exceed the INT_MAX limitation. As a quick and dirty solution we could limit the raster size to INT_MAX in the wms driver. I've attached a patch to handle both cases. " defect closed normal 2.1.0 GDAL_Raster unspecified normal fixed EliL