#1778 closed defect (fixed)
Problem with conversion from GeoTIFF to ENVI
Reported by: | mariocavicchi | Owned by: | chowell |
---|---|---|---|
Priority: | normal | Milestone: | 2.2.0 |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | ENVI |
Cc: | dmarino, warmerdam, antonio |
Description
I have converted a GeoTIFF image with gdal_translate to ENVI and i have obtained a header file without rotation information, and it's wrong, instead ENVI program make a header file right.
I made a simple program that uses function GDALCreateCopy, but the result is equal. I can send original image if it may help.
I use this version og GDAL:
$ gdal_translate --version GDAL 1.5dev, released 2007/04/01
Attachments (2)
Change History (10)
by , 17 years ago
Attachment: | LN7-10-From_GDAL.hdr added |
---|
by , 17 years ago
Attachment: | LN7-10-From_ENVI.img.hdr added |
---|
comment:1 by , 16 years ago
Cc: | added |
---|---|
Component: | default → GDAL_Raster |
Keywords: | ENVI added |
Milestone: | → 1.5.2 |
comment:2 by , 16 years ago
Owner: | changed from | to
---|
comment:3 by , 12 years ago
Cc: | added |
---|
comment:4 by , 10 years ago
Some findings: Document http://www.exelisvis.com/docs/ENVIHeaderFiles.html does not list "rotation" as an info item of ENVI header file in the "map info" section but that must be an error in the documentation. A page linked from the header file section http://www.exelisvis.com/docs/enteroptionalheaderinformation.html#Enter2 describes the usage of rotation as "If North is not up in the image, enter a rotation angle in degrees in the Map Rotation field. Measure the angle in a clockwise direction where zero degrees is straight up."
For me this ticket feels a bit like invalid because it handles the case when GDAL is used for converting tiff file into ENVI. I do not know how where the original tiff file could hold the info about rotation and based on the latter document above even in ENVI user interface user must feel the rotation parameter by hand. It could be suitable for a case when original GeoTIFF is georeferenced with GCPs in such a way that rotating the image would be enough and no warping would be needed which feels like a special case.
There is a perhaps more critical issue with reading ENVI images with rotation. See http://lists.osgeo.org/pipermail/gdal-dev/2013-January/035146.html and a ticket that is closed as invalid but which probably is still valid http://trac.osgeo.org/gdal/ticket/4342.
comment:5 by , 10 years ago
comment:8 by , 8 years ago
Milestone: | → 2.2.0 |
---|
Chris,
Could you confirm this problem (in trunk)? If the problem is confirmed as still present, we can either turn it over to Donnie Marino (dmarino) (who maintains this driver) or you could fix it with some support from him.
If the changes to support it are not too disruptive we should try to retrofit to 1.5 branch, otherwise fix only in trunk.