Do not let go a -E<non-DCW code> and -M or -R. It would crash.#7486
Do not let go a -E<non-DCW code> and -M or -R. It would crash.#7486
Conversation
|
Maybe @Esteban82 could give this a more extensive testing. |
Esteban82
left a comment
There was a problem hiding this comment.
I got this message with
gmt pscoast -EEUR+p0.5 -REUR -JD28.213/52.993/40.865633333333335/77.24743333333333/15c -Baf -BWSen -P -K > lixo.ps
coast [ERROR]: Passing other than DCW codes to option -E together with -M or -R options is not possible.
|
Yes, that one I know it works. I just don't want to block any valid requests too. |
|
Great. Should we squash and merge? |
|
This causes custom codes from This works: This gives an error. I would expect a plot with all countries in the 'nato' collection to plot as red polygons. And I'm not using |
|
But that didn't work before either And to help to the party: WSL Windows |
|
I may be confused, but I'm very sure I was able to plot custom codes last(-ish) week. I ran this command on 2023-05-25 10:41:28, and I'm almost certain it produced a plot. |
|
Right, I still can do this in WSL that uses an older GMT version What we can't do is because that's a modern mode command and in modern mode there is no such a thing as pscoast. No error about this was issued though. But in summary, my change restricted what can be used and that's not good. So I need another condition that allows me to distinguish the DCW based regions from those that are purely set by a -R. These latter are the ones that we cannot let go into pscoast because they Kaboom it. |
|
BTW, is there any recommended way of creating custom regions? Do we have to edit the |
|
See coast docs. Create a |
|
Thanks. So the drama is: we can't let go (with -R or -M) regions that defined only by a |
|
Why can't -Eregion be used with -R or -M? I don't understand. What about a |
That's where this all started. Because in cases where the region is not supported by a code list it crashes GMT, and I don't have the patience nor time to fix it at the very low level. |
|
Ok, thanks. So it should work, but it crashes for some reason. |
|
It crashes because regions with no codes have nothing to print/dump but it still tries ... and crash. |
|
Got it, thanks. |
|
FYI, I've reverted this change directly on master. So, we are in the potential crash land again. |
|
And now my command works again (plotting custom codes). |
|
Not sure what this means: |
|
That's some pscoast joke. You don't have the Andreas custom collection where he's is playing that old game that I forgot the name right now. |
|
Now gone - maybe my gmt.conf had something. |
Fixes #7484