[gdal-dev] Progress and cancel of gdalwarp program

Gane R gane.prog at gmail.com
Mon May 2 03:25:11 PDT 2016


I got it and saw the progress and cancel working,
thanks

Gane

On Tue, Apr 26, 2016 at 3:33 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Le mardi 26 avril 2016 11:58:22, Gane R a écrit :
> > [1] Is is possible to get the progress 10...20... into a variable and [2]
> > is it possible to cancel the warp progress, say cancel the operation.
>
> See how it is done in
> https://svn.osgeo.org/gdal/trunk/gdal/port/cpl_progress.cpp
>
> >
> > I saw the documentation and sample in JPEG CreateCopy, gdal_translate and
> > GDALDummyProgress used in quiet operation.
> >
> >
> > Thanks
> > Gane
> >
> > On Tue, Apr 26, 2016 at 3:13 PM, Even Rouault <
> even.rouault at spatialys.com>
> >
> > wrote:
> > > Le mardi 26 avril 2016 11:36:46, Gane R a écrit :
> > > > Is that any way to get the progress of the gdalwarp and make a cancel
> > > > request of gdalwarp.
> > > >
> > > > in gdal 1.10.1
> > > > In gdalwarp.cpp
> > > >
> > > >  I see psWO->pfnProgress = GDALTermProgress;
> > > >
> > > > This for only progress right ?
> > >
> > > No, if the function returns FALSE, the processing is stopped.
> > >
> > > > I want to have function called with the progress displayed and also
> > >
> > > check,
> > >
> > > > if cancel is requested.
> > > >
> > > > Gane
> > >
> > > --
> > > Spatialys - Geospatial professional services
> > > http://www.spatialys.com
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160502/ef1d8a5f/attachment-0001.html>


More information about the gdal-dev mailing list