[gdal-dev] Removing GCPs from tiff

Frank Warmerdam warmerdam at pobox.com
Tue Apr 12 09:25:43 EDT 2011


On 11-04-12 03:17 AM, Goo Creations wrote:
> Hi all
>
> I've got a tiff file with a number of stored GCPs. How can I remove these GCPs
> from the file?
>
> I've tried:
>
> SetGCPs
> <http://www.gdal.org/classGDALDataset.html#3c812b05467213f05055c1f18438d874>(int nGCPCount,
> const GDAL_GCP <http://www.gdal.org/structGDAL__GCP.html> *pasGCPList, const
> char *pszGCPProjection)
>
> with the first parameter of 0, but without luck. Seems like SetGCPs only adds
> the GCPs, rather than re-assigns the entire stored set.

Chris,

Jukka's suggestion is good.  I would also encourage you to file a ticket on
this.  Calling SetGCPs() with zero GCPs *ought* to clear them.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list