[Gdal-dev] number of GCPs

list67 at netscape.net list67 at netscape.net
Wed Dec 31 16:23:14 EST 2003


Hello.  I was wondering if there is a limit to the number of GCPs that can be added to a TIFF file.  A program that I'm working on uses GDALSetGCPs(...) to add GCPs to a TIFF file.  I've attatched a sample program that takes as input 2 filenames.  The first argument is a tiff filename of an existing tiff file.  The second argument is a filename for a new corresponding tiff file that has GCPs added for each pixel in the original file.  There are also some example tiff files attatched.

So, when I run the program with a 10x10 tiff file, gdalinfo outputs all the GCPs.  None of the other files seem to work (78x78, 256x256, 1200x1200).  I looked into the code and changed int16 to int (in frmts/gtiff/geotiff.cpp Line 2291) and u_short to int on Line 989 of frmts/gtiff/libtiff/tif_dir.c.  This did not seem to fix anything though.

I'm using a version of GDAL obtained via CVS.

    Mike


__________________________________________________________________
New! Unlimited Access from the Netscape Internet Service.
Beta test the new Netscape Internet Service for only $1.00 per month until 3/1/04.
Sign up today at http://isp.netscape.com/register
Act now to get a personalized email address!

Netscape. Just the Net You Need.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testGCPWrite.tar.gz
Type: application/x-gzip-compressed
Size: 6547 bytes
Desc: testGCPWrite.tar.gz
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20031231/46095fa3/testGCPWrite.tar.bin


More information about the Gdal-dev mailing list