[Gdal-dev] Re: Why is origin different?

Frank Warmerdam warmerdam at pobox.com
Thu Feb 20 09:48:57 EST 2003

Diana Esch-Mosher wrote:
> I have the following method. The file I am trying to copy has no
> geotransform or projection or metadata. The file I create has the
> origin  0,1? Why? Both are HFA files.
> Thanks,
> Diana  
> def CopyDatasetInfo( self,src, dst ):
>         if src.GetGCPCount() > 0:
>             dst.SetGCPs( src.GetGCPs(), src.GetGCPProjection() )
>         dst.SetGeoTransform( src.GetGeoTransform() )
>         dst.SetProjection( src.GetProjection() )
>         dst.SetMetadata( src.GetMetadata() )


I have committed a fix for this bug.  I also modified the Imagine writing
code to not write out a "mapinfo" node for images with the default
geotransform (unreferenced).

I have cc:ed this to gdal-dev since that is a more appropriate venue for
GDAL specific issues.

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