Re: [gdal-dev] WMS MINRESOLUTION can lead to overflow of raster dimensions

2015-11-24 Thread Timothy Astle
Thanks for the feedback Even, comments inline below. On 23/11/2015 5:25 PM, Even Rouault wrote: Tim, Would it make sense to do something as follows? (Note: I haven't tried this yet, I'm just soliciting early feedback so please bare with me ) if (osMinResolution.size() != 0) {

Re: [gdal-dev] WMS MINRESOLUTION can lead to overflow of raster dimensions

2015-11-23 Thread Even Rouault
Tim, > Would it make sense to do something as follows? (Note: I haven't tried > this yet, I'm just soliciting early feedback so please bare with me ) > > > if (osMinResolution.size() != 0) > { > double dfMinResolution = CPLAtofM(osMinResolution); > > while (nOvervi

[gdal-dev] WMS MINRESOLUTION can lead to overflow of raster dimensions

2015-11-23 Thread Timothy Astle
I'm trying to open a WMS dataset using the minimally documented MINRESOLUTION option. (http://www.gdal.org/frmt_wms.html) When providing a way-too-fine resolution, I manage to create a raster that exceeds GDALs 32-bit integer based dimensions. Below shows what I'm seeing. You can see that on