Re: [gdal-dev] Interrupt long operation

2011-02-03 Thread Stefano Moratto
Frank, thank you for your suggestion. I added a GDALProgressFunc as you suggested. In order to prevent blocking in the rasterio now I check a state variable indicating when I have to stop the reading. Since I call rasterio foreach line of the destination bitmap I have added a simple ch

Re: [gdal-dev] Interrupt long operation

2011-01-31 Thread Frank Warmerdam
On 11-01-31 04:26 AM, Stefano Moratto wrote: Hello, I need to interrupt a RasterIO and warp calls before they have been ended. The call is invoked in a background thread and It may happen that the user changes the requested area in the main thread (GUI) (eg. a pan/scroll operation).

[gdal-dev] Interrupt long operation

2011-01-31 Thread Stefano Moratto
Hello, I need to interrupt a RasterIO and warp calls before they have been ended. The call is invoked in a background thread and It may happen that the user changes the requested area in the main thread (GUI) (eg. a pan/scroll operation). Any suggestion, Stefano -