Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-17 Thread Nevzat Guler
I have the 2.0.1 version: C:\warmerda\bld\bin>gdalinfo --version GDAL 2.0.1, released 2015/09/15 I will check the history of the file I have. Maybe it is modified. I will also download the same file from earthexplorer and try my routines on it. Thanks for the suggestions. I appreciate. - Nevzat

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-17 Thread Dmitry Baryshnikov
I downloaded this scene from earthexplorer, and everything is fine: $ gdalinfo LC80080472013174LGN00_B1.TIF Driver: GTiff/GeoTIFF Files: LC80080472013174LGN00_B1.TIF ./LC80080472013174LGN00_MTL.txt Size is 7571, 7411 Coordinate System is: PROJCS["WGS 84 / UTM zone 19N", GEOGCS["WGS 84"

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-17 Thread Nevzat Guler
Thank you Dmitry, What is the best way to extract the information we got using gdalinfo.exe by using GDAL classes, within a C++ code? As I mentioned, I am using GetGeoTransform and GetProjectionRef() but the results miss many of the information (specifically the map info elements as I explained

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-17 Thread Dmitry Baryshnikov
Hi Nevzat, The landsat geotiff already have CRS embeded in file $ gdalinfo LC80150362013097LGN03_B1.TIF Driver: GTiff/GeoTIFF Files: LC80150362013097LGN03_B1.TIF ./LC80150362013097LGN03_MTL.txt Size is 7281, 7261 Coordinate System is: PROJCS["WGS 84 / UTM zone 17N", GEOGCS["WGS 84",