Opened 12 years ago
Closed 12 years ago
#4687 closed defect (fixed)
Partial Cell Indicator not saved in DTED file
Reported by: | bugbuster | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.9.2 |
Component: | GDAL_Raster | Version: | |
Severity: | normal | Keywords: | DTED |
Cc: |
Description
When converting an SRTM cell to DTED format, the "Partial Cell Indicator" is not saved in DSI header. The correct value is indeed computed after elevation nodes reading / writing step. Curiously enough, this particular field is not treated like all other fields in UHL, DSI and ACC headers. Although the structure psDTED->pachDSIRecord is correctly updated, headers are never rewritten onto hard drive (see DTEDCreateCopy() in dteddataset.cpp).
A solution may be :
1) add a new value to DTEDMetaDataCode enumerate in dted_api.h (DTEDMD_PARTIALCELL_DSI)
2) deal with this new value in DTEDGetMetadataLocation() (see dted_api.c)
3) call DTEDSetMetadata() after Partial Cell Indicator computation (see DTEDCreateCopy() in dteddataset.cpp)
Attached :
proposed patchs for dted_api.h and .c, dteddataset.cpp
an SRTM cell with unknown elevation values
Attachments (4)
Change History (5)
by , 12 years ago
Attachment: | dted_api.h.patch added |
---|
comment:1 by , 12 years ago
Component: | default → GDAL_Raster |
---|---|
Milestone: | → 1.9.2 |
Resolution: | → fixed |
Status: | new → closed |
Version: | 1.8.0 |
Patch for dted_api.h