Opened 9 years ago

Closed 9 years ago

#5703 closed defect (worksforme)

ENVI .hdr file wrong when open with GA_Update mode

Reported by: kassol Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version:
Severity: normal Keywords: ENVI hdr
Cc:

Description

When I open a ENVI .hdr format data with GA_Update mode, then I close the dataset immediately. But the .hdr file had been modified, and the format are totally wrong.

The codes are below:

GDALDataset* pdataset =  (GDALDataset*)GDALOpen("C:\\Users\\Administrator\\Desktop\\01-157_50mic.img", GA_Update);
GDALClose((GDALDatasetH)pdataset);

and the .hdr file modified to 2.hdr , the original file is 1.hdr

You can see from the attached files.

There must be some thing wrong !

Attachments (2)

1.hdr (364 bytes ) - added by kassol 9 years ago.
the original file
2.hdr (364 bytes ) - added by kassol 9 years ago.
the file modified to

Download all attachments as: .zip

Change History (6)

by kassol, 9 years ago

Attachment: 1.hdr added

the original file

by kassol, 9 years ago

Attachment: 2.hdr added

the file modified to

comment:1 by kassol, 9 years ago

Component: defaultGDAL_Raster
Priority: normalhigh
Version: unspecified1.11.1

comment:2 by kassol, 9 years ago

Priority: highnormal

comment:3 by Even Rouault, 9 years ago

Are you sure you are testing with GDAL 1.11.1 ? This has been fixed per #5467 and I cannot reproduce the issue anymore.

in reply to:  3 comment:4 by kassol, 9 years ago

Resolution: worksforme
Status: newclosed
Version: 1.11.1

Replying to rouault:

Are you sure you are testing with GDAL 1.11.1 ? This has been fixed per #5467 and I cannot reproduce the issue anymore.

Sorry for that. You are absulutely right.

I didn't find that ticket before. And my git version of gdal wasn't compiled on time. I test it just now.

Sorry again.

Note: See TracTickets for help on using tickets.