[gdal-dev] A Problem with GDALWarp
Brad Hards
bradh at frogmouth.net
Wed Aug 19 03:40:41 PDT 2015
On Wed, 19 Aug 2015 04:01:32 PM user gdal wrote:
> Dear friends,
> I have to programmatically clip (using Visual C++) with
> GDALWarp. I proceeded like this:
>
> GDALDataset *outimg;
>
> outimg->(GDALDataset *) GDALOpen(filename, GA_Update);
> /* I also tried, instead of the above, outimg=driver->Create(filename,
> NewCol, NewRow, Band, DataType, NULL); */
>
> GDALWarpOptions *WO=GDALCreateWarpOptions( );
>
> if(WO)
> {
> WO->hSrcDS=inimg; WO->nBandCount=Band;
What is inimg?
What (exactly) are you passing as filename?
Can you try posting an actual, compilable example?
Does the tutorial (just by itself, exactly as written) work on your machine?
Brad
More information about the gdal-dev
mailing list