[Gdal-dev] GDAL SetGeoTransform

Frank Warmerdam fwarmerdam at gmail.com
Mon Feb 28 15:59:29 EST 2005


On Mon, 28 Feb 2005 15:38:43 -0500, David Legault
<dlegault at vantpoint.com> wrote:
>  
> Hi 
>   
> I'm using GDAL via OpenEV and I opened a CEOS Radarsat Image. I then
> calculate some GCP -> Georeferencing and would like to enter that
> information to the Dataset of the opened image via gdal.SetGeoTransform(
> proj ) where proj is 
>   
> proj = (501929.34881043766, -4.5100679100614984, 9.5046426977106471,
> -4582123.3044389617, -20.003930603666962, 7.1569984133650371) 
>   
> and I get this error : 
>   
> ERROR 6: SetGeoTransform() not supported for this dataset. 
>   
> I would like to be able to set the new GeoStranform data to save the Dataset
> as a Geotiff image afterwards. 
>   
> Any thoughts on how I could proceed ? 

David,

The most straight forward approach is to translate to GeoTIFF and then
set this new geotransform. The CEOS format does not support setting
the geotransform. 

Alternatively you could create a VRT file cloned from the CEOS file, 
set the geotransform on that, and then write to geotiff.  

Did you need to know how to copy the CEOS file to GeoTIFF?  

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