[gdal-dev] Removing GCPs from tiff

2011-04-12 Thread Goo Creations
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:

 
SetGCPshttp://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
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Removing GCPs from tiff

2011-04-12 Thread Frank Warmerdam

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, 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