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)
Change History (6)
by , 9 years ago
comment:1 by , 9 years ago
Component: | default → GDAL_Raster |
---|---|
Priority: | normal → high |
Version: | unspecified → 1.11.1 |
comment:2 by , 9 years ago
Priority: | high → normal |
---|
follow-up: 4 comment:3 by , 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.
comment:4 by , 9 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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.
the original file