Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport fix to -I- option #25

Merged
merged 1 commit into from
Aug 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Backport fix to -I- option
 Do to not show the WKT info when it exists in a nc grid and -I- is set
  • Loading branch information
joa-quim committed Aug 20, 2018
commit 2844241918183a587f8a14c50985e516d69587e7
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