Re: [gdal-dev] Add to PythonGotchas: saving and closing raster datasets

2014-05-27 Thread Mike Toews
Thanks Even and Sean for the input. I'll proceed to add this to the wiki when I have an extended moment. I think I'll rephrase this gotcha to also apply to OGR datasources, where the API reads "you should always close any opened datasource with OGR_DS_Destroy() that will ensure all data is correct

Re: [gdal-dev] Add to PythonGotchas: saving and closing raster datasets

2014-05-05 Thread Sean Gillies
Hi Mike, On 5/3/14, 10:03 PM, Mike Toews wrote: Hi, This seems to be a common gotcha: http://gis.stackexchange.com/q/93212/1872 I've been caught by it before, and I'm certain many others have too. This is a gotcha since "WriteArray" doesn't write the array to disk, but rather it is written whe

Re: [gdal-dev] Add to PythonGotchas: saving and closing raster datasets

2014-05-04 Thread Even Rouault
Le dimanche 04 mai 2014 06:03:28, Mike Toews a écrit : > Hi, > > This seems to be a common gotcha: http://gis.stackexchange.com/q/93212/1872 > > I've been caught by it before, and I'm certain many others have too. > This is a gotcha since "WriteArray" doesn't write the array to disk, > but rather

[gdal-dev] Add to PythonGotchas: saving and closing raster datasets

2014-05-03 Thread Mike Toews
Hi, This seems to be a common gotcha: http://gis.stackexchange.com/q/93212/1872 I've been caught by it before, and I'm certain many others have too. This is a gotcha since "WriteArray" doesn't write the array to disk, but rather it is written when the dataset object is dereferenced. I've drafted