Skip to content

Commit

Permalink
Backport fix to -I- option (#25)
Browse files Browse the repository at this point in the history
Do to not show the WKT info when it exists in a nc grid and -I- is set
  • Loading branch information
joa-quim authored and PaulWessel committed Aug 20, 2018
1 parent d115ac2 commit b0baa93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grdinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,9 @@ int GMT_grdinfo (void *V_API, int mode, void *args) {

GMT_Report (API, GMT_MSG_VERBOSE, "Processing grid %s\n", G->header->name);

if (G->header->ProjRefPROJ4 && !Ctrl->C.active && !Ctrl->T.active)
if (G->header->ProjRefPROJ4 && !Ctrl->C.active && !Ctrl->T.active && !Ctrl->I.active)
projStr = strdup(G->header->ProjRefPROJ4); /* Copy proj string to print at the end */
else if (G->header->ProjRefWKT && !Ctrl->C.active && !Ctrl->T.active)
else if (G->header->ProjRefWKT && !Ctrl->C.active && !Ctrl->T.active && !Ctrl->I.active)
projStr = strdup(G->header->ProjRefWKT);

for (n = 0; n < GMT_Z; n++) GMT->current.io.col_type[GMT_OUT][n] = GMT->current.io.col_type[GMT_IN][n]; /* Since grids may differ in types */
Expand Down

0 comments on commit b0baa93

Please sign in to comment.