[gdal-dev] VRTWarpedDataset with ChunkandWarpImage

David Olson olsond at google.com
Mon Oct 27 15:41:12 PDT 2014


Evan,
  The source and destination data are 3-band RGB so I don't believe that is
the problem...
  However I did define GdalWarp->nDstAlphaBand = 0 with the same result.
Basically getting three
  erorrs - one for each band:

ERROR 6: WriteBlock() not supported for this dataset.
ERROR 6: WriteBlock() not supported for this dataset.
ERROR 6: WriteBlock() not supported for this dataset.

Thanks, David

On Mon, Oct 27, 2014 at 3:21 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Le lundi 27 octobre 2014 22:42:11, David Olson a écrit :
> > Hi,
> >   I've set up a c++ code which creates a VRTWarpedDataset from a source
> > image then uses ChunkAndWarpImage to warp additional source images and
> > create a mosaic with the VRTWarpedDataset destination (hdst_ds).
> >  The code is tested and runs fine without memory leak.
> >  However I do get an error upon calling GDALClose(hdst_ds) :
> >       *ERROR 6: WriteBlock() not supported for this dataset*.
> >  GDALClose calls FlushCache which calls WriteBlock.
> >  Just wanting to get some insight on this error. And possibly how to
> avoid
> > it.
>
> David,
>
> Difficult to tell without a reproducable snippet. But my guess is that you
> have
> an issue with setting up alpha band. Perhaps you have not defined
> nDstAlphaBand
> in the warping options ?
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141027/ec5ea4ae/attachment.html>


More information about the gdal-dev mailing list