Skip to content

Commit

Permalink
Improve warning message when -W+k is used but image is projected. (#3413
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joa-quim authored May 31, 2020
1 parent ee8824e commit 3003c50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion doc/rst/source/psconvert.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ Optional Arguments
sets **-A** **-P**.

Use **-W+k** to create a minimalist KML file that allows loading the
image in GoogleEarth. Note that for this option the image must be in
image in GoogleEarth. Note that for this option to work it is necessary that the postscript
image must have been created with **-JX** or **-Jx** cartesian projection of
geographical coordinates. If not, a warning is issued but the KML
file is created anyway. Several modifier options are available to
customize the KML file in the form of **+**\ *opt* strings. Append
Expand Down
5 changes: 2 additions & 3 deletions src/psconvert.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* psconvert uses the ideas of the EPS2XXX.m from Primoz Cermelj published in MatLab Central
* and of psbbox.sh of Remko Scharroo.
*
*
*--------------------------------------------------------------------*/
/*
* Authors: Joaquim Luis and Remko Scharroo
Expand Down Expand Up @@ -2079,8 +2078,8 @@ EXTERN_MSC int GMT_psconvert (void *V_API, int mode, void *args) {
}
}
else if (Ctrl->W.kml) {
GMT_Report (API, GMT_MSG_ERROR, "To GE images must be in geographical coordinates. Very likely "
"this won't work as you wish inside GE.\n");
GMT_Report (API, GMT_MSG_ERROR, "To GE images must be in geographical coordinates (-JXd projected). "
"Very likely this won't work as you wish inside GE.\n");
}
}
else if (!strncmp (line, "%GMTBoundingBox:", 16)) {
Expand Down

0 comments on commit 3003c50

Please sign in to comment.