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

Improve warning message when -W+k is used but image is projected. #3413

Merged
merged 1 commit into from
May 31, 2020
Merged
Show file tree
Hide file tree
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
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