Feature #116

GDAL logic in GMT_grd_get_format() fails if scale/offset/invalid given

Added by Florian about 6 years ago. Updated almost 6 years ago.

Status:NewStart date:2012-07-15
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


if (val == GMT_GRD_IS_GD && header->name[i+2] && header->name[i+2] == '?') { /* A SUBDATASET request for GDAL */
assumes that only the two-character string, gd, is given. But the user may specify gd/scale/offset/invalid?... The GDAL option parsing should be generalized and put into a separate function.


#1 Updated by Joaquim almost 6 years ago

  • Tracker changed from Bug to Feature

Though a desirable behavior, this is not exactly a bug and is explained with a grdmath example in section 4.22.2 of the CookBook.

#2 Updated by Florian almost 6 years ago

Indeed. But certainly desirable.

Also available in: Atom PDF