On 11-06-30 10:20 AM, RSyaoxin wrote:
Hi,all. I want to correct the envisat N1 image, the gcps I used are come from the image.This image haven't geo-referenced information and projection,but it's GCPs have geo-referenced information.However I can not get correct results,the corrected image pixels are all zero.Here is my code:
...
psWarpOptions->nBandCount=0;
RSyaoxin, I don't see anywhere that you establish the real list of bands to be transferred. Perhaps that is the problem? In general the warp api is tricky to use, and if it is sufficient for your needs to use a simplified interface like GDALCreateAndReprojectImage() or GDALReprojectImage() then I would encourage that. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev