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

2016-01-18 Thread nguler
Dmitry, After doing this, I following your suggested steps, I get the string: Earth Projection 8, 104, "m", -69, 0, 0.9996, 50, 0 Bit, the map info string I need to use looks like this: map info = {UTM, 1, 1, 145185, 2189715, 30, 30, 19, North} I tried other ExportTo functions but none giv

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

2016-01-18 Thread nguler
It is solved. Thank you very much Even and Dmitry for your helps. I have missed the GDAL_DATA variable and it caused me all that trouble. Now I need to get the map info string: map info = {UTM, 1, 1, 145185, 2189715, 30, 30, 19, North,WGS-84} Using hDS->GetGeoTransform(adfGeoTransform) does not g

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

2016-01-18 Thread nguler
Yes, Thank you Even, I was missing the GDAL_DATA environmental variable. Now I get the same gdalinfo output. Do I need to set this variable while using the C++ classes you suggested before: GetGeoTransform and GetProjectionRef()..? Because, there also I had the same problem. Best regards, - Nevzat

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

2016-01-18 Thread nguler
Dmitry and All, I just downloaded the set of tiff files from earthexplorer and run gdalinfo on it. Please see below. I am missing some fields in the output information. It is different from what you got. I don't know what can cause this? My gdalinfo.exe is not good? Any idea? C:\Cubes\LC8008047201

Re: [gdal-dev] ENVI Header information from GeoTIFF file

2016-01-14 Thread nguler
Than you Even, double adfGeoTransform[6]; srcDS->GetGeoTransform(adfGeoTransform) gives me 6 values: center, pixel size and rotation. But when I do CreateCopy I get: map info = {UTM, 1, 1, 145185, 2189715, 30, 30, 19, North} Is there any way of getting the first three elements of this map info {

[gdal-dev] ENVI Header information from GeoTIFF file

2016-01-13 Thread nguler
Dear GDAL users, I am just starting to use GDAL and apparently I don't quite understand many classes. My purpose is to extract some map information from GeoTIFF files (LANDSAT data). I need to access this information to generate an ENVI file header. When i import the tiff file, I can see the follo

Re: [gdal-dev] GDAL and Sentinel2

2016-01-13 Thread nguler
I apologize for stealing the subject line. I only realized after clicking the send button. - Nevzat > Dear GDAL users, > > I am trying to extract some map information from geotiff files. I need to > access this information to generate an ENVI file header. > > I use > hDS->GetGeoTransform(adfGeoTra

Re: [gdal-dev] GDAL and Sentinel2

2016-01-13 Thread nguler
Dear GDAL users, I am trying to extract some map information from geotiff files. I need to access this information to generate an ENVI file header. I use hDS->GetGeoTransform(adfGeoTransform); coo_system_str = hDS->GetGCPProjection(); to get some information I need. But still missing few things a

[gdal-dev] Metadata from GeoTIFF to ENVI

2015-12-31 Thread nguler
Dear GDAL Users, I am reading a GeoTIFF file and creating an ENVI file. I don't want to use the CreateCopy method but the Create method. I tried something like the following to transfer the metadata: char **papszMetadataSet; papszMetadataSet = poDataset->GetMetadata(); poDstDS->SetMetad