[gdal-dev] Deskewing geo-referenced scanned prints

2010-04-10 Thread Zoltan Szecsei
Hi, I'm using viewing software that cannot rotate images on the fly (see non-zero rotation parameters in TFW below.) I have almost 2000 scans in GeoTIFF that I hence need to deskew and also want to crop. I've been looking at gdalwarp, but can't see an obvious way to bash-script deskewing, so plea

[gdal-dev] write error

2010-04-10 Thread weixj2003ld
I use the following code to read data from a geotiff file and write it into a new one.the bands number is 6; ... GDALDataset *poSrcDS,*poDstDS;//poSrcDs:the source file,poDstDS:the goal source GDALRasterBand *poSrcBand,*poDstBand;//poSrcBand:the source band,poDstBand:the goal band GDALDriver *