map info and projections from GeoTIFF file to create ENVI header
I am reading LANDSAT GeoTIFF files and combining bands to create and ENVI cube.
I am using GDAL to read the GeoTIFF file, and my own custom cube writer to write
the ENVI style cube. Transferring the map information proved to be a bit
convoluted. I seek your help to figure out this.
My first problem is to access map info from GeoTIFF file. The map info includes:
GDAL gives me PROCCS, unnamed. And no GEOGCS information is given. I am able to
get the coordinate system properties by using the following commands but I first
need to set few things to use exportToWTK.
But I need to set SetProjCS, SetWellKnownGeogCS and SetUTM first. However, I
don't know these before I read the file. Is there any way to get them from the
file so that I don't need prior knowledge to create the header. When I pull the
GeoTIFF file into ENVI, all these information is already there.
I appreciate your help and suggestions.