Re: [gdal-dev] Intermittent raster read/write error

2019-03-15 Thread Jon Morris
Great. Many thanks for the quick fix and for all your great work so far! Jon -Original Message- From: Even Rouault Sent: 14 March 2019 16:17 To: gdal-dev@lists.osgeo.org Cc: Jon Morris Subject: Re: [gdal-dev] Intermittent raster read/write error Jon, > Is there a better way

Re: [gdal-dev] Intermittent raster read/write error

2019-03-14 Thread Even Rouault
Jon, > Is there a better way to determine that a write has failed? We've enabled > gdal.UseExceptions, but if you call rb.WriteArray() on a read-only dataset, > no error is raised. There is a write to stderr, but no exception. The RasterIO() method called by WriteArray() didn't check access mode,

Re: [gdal-dev] Intermittent raster read/write error

2019-03-14 Thread Jon Morris
geo.org Subject: [gdal-dev] Intermittent raster read/write error Hello all, I've had an intermittent error with reading and writing rasters and wondered if anyone else had seen something similar. Tl;dr: When writing tiles of data to a raster, sometimes one write will cause subsequent rea

[gdal-dev] Intermittent raster read/write error

2019-03-07 Thread Jon Morris
Hello all, I've had an intermittent error with reading and writing rasters and wondered if anyone else had seen something similar. Tl;dr: When writing tiles of data to a raster, sometimes one write will cause subsequent reads of that region to fail. This includes when reading the whole raster