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
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to