Re: [gdal-dev] VRT ComputeStatistics fails because of self-reference

2014-05-14 Thread Matt Gregory
Hi Even, On 5/14/2014 2:22 AM, Even Rouault wrote: Matt, thanks for the report. I'm a bit surprised this hasn't been reported before as it dates back to 1.10.0. Anyway, I've created a ticket http://trac.osgeo.org/gdal/ticket/5468 for that issue and pushed a fix for 1.10, 1.11 and trunk branches

[gdal-dev] VRT ComputeStatistics fails because of self-reference

2014-05-13 Thread Matt Gregory
Hi all, I'm trying to compute statistics on a VRT file using the python band.ComputeStatistics method. I'm using GDAL 1.10.1 on a Windows 7 64-bit box. First, I create a VRT clip of a larger raster using gdal_translate, e.g. gdal_translate -of VRT -projwin in.tif out.vrt Then, in Python

[gdal-dev] gdalwarp coordinate alignment with -tap option

2014-02-12 Thread Matt Gregory
Hi all, We have been using -tap as a command-line argument to gdalwarp to force pixels to be aligned with the origin (0,0) in the output coordinate system. We now have a situation where we want to specify a different 'snap' coordinate for pixel alignment (e.g. (15,15)). Is there a simple me

Re: [gdal-dev] gdalwarp - trouble projecting from EPSG:4326 to EPSG:3857

2012-12-31 Thread Matt Gregory
On 12/27/2012 3:31 PM, Gregory, Matthew wrote: I'm trying to project a raster from EPSG:4326 to EPSG:3857 and I get the following error: gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -of GTiff -dstnodata 255 vc_2006.tif vc_2006_2.tif ERROR 1: failed to load NAD27-83 correction file ERROR 1:

[gdal-dev] Re: python SetCacheMax, GetCacheMax

2012-05-14 Thread Matt Gregory
On 5/11/2012 4:55 PM, Gregory, Matthew wrote: Hi all, Probably a newbie question. I'm trying to investigate some read rates without the benefit of caching from Python. When I do this: from osgeo import gdal gdal.SetCacheMax(0) print gdal.GetCacheMax() I always get the environment v