Opened 13 years ago
Closed 5 years ago
#3786 closed defect (wontfix)
RST driver doesn't read flag_value unless flag_def'n is set
Reported by: | sjurk | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | GDAL_Raster | Version: | 1.7.2 |
Severity: | normal | Keywords: | IDRISI NoData |
Cc: | ilucena |
Description
It appears that IdrisiDataset::GetNoDataValue() does not accept the attribute "flag_value" read from the documentation (.rdc) file unless the accompanying attribute "flag_defn" is set to something else than "none". Instead, it returns the default -9999 with pbSuccess==FALSE. The attribute "flag_defn" is usually "background" or "missing data", but is not used analytically within IDRISI, and is often ignored.
I propose to read and set NoDataValue to the value supplied in the .rdc file if this exists, regardless of whether or not flag_defn. was supplied in the .rdc fle.
This can be accomplished by: Instead of testing: if( ! EQUAL( pszFlagDefn, "none" ) ) call mCSLFetchNameValue( poGDS->papszRDC, rdcFLAG_VALUE ) in any case, and verify the returned string before setting
dfNoData = atof_nz(string).
Change History (3)
comment:1 by , 13 years ago
Cc: | added |
---|
comment:2 by , 9 years ago
Milestone: | 1.8.1 |
---|
comment:3 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
Removing obsolete milestone