Repository navigation
Attempt to fix coast holes in Canada for some -A settings - #7121
Merged
Merged
Conversation
See #7109 for background. We did have checks for this but it seemed only tailored to the Antarctica case and the code refers to #1295 which we tried to fix. This PR restricts that Antarctica check to Antarctica only (< 60S) and applies the general fix elsewhere, which is to reduce the node level of the corner if a polygon covering it is skipped. This seems to fix the problem and older tests still work.
joa-quim
approved these changes
Nov 27, 2022
KristofKoch
approved these changes
Nov 27, 2022
KristofKoch
left a comment
Contributor
There was a problem hiding this comment.
Works as expected for me now in 6.5.0_578b7c8_2022.11.27 Thank you Paul!
Contributor
|
To be really sure that Paul's fix works I had a closer look at Earth from all sides. I used Some code that produces two jpeg files about 25MB each: while read minA maxA stepsize rows columns
do
gmt begin globes_${minA}_${maxA} jpg
gmt subplot begin ${rows}x${columns} -Fs8c -M1c/3c \
-T"Tiling test -A${minA} ... -A${maxA}\r"
for ((a = ${minA}; a <= ${maxA}; a=a+${stepsize}))
do
for ((lat = -45; lat <= 45; lat = lat+90))
do
for ((lon = -120; lon <= 120; lon = lon+120))
do
gmt subplot set
gmt coast -JG${lon}/${lat}/8c -Rg -Bg -Di -A${a} \
-Gblack -Sgrey95 -B+t"-A${a}"+s"Lat ${lat} / Lon ${lon}"
done
done
done
gmt subplot end
gmt end show
done << EOF
0 10500 500 11 12
11000 20500 500 11 12
EOF |
Contributor
Author
|
Nice test, @KristofKoch ! A bit too big to add to our suite though. Looks like this is fixed for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

See #7109 for background. We did have checks for this but it seemed only tailored to the Antarctica case and the code refers to #1295 which we tried to fix. This PR restricts that Antarctica check to Antarctica only (< 60S) and applies the general fix elsewhere, which is to reduce the node level of the corner if a polygon covering it is skipped. This seems to fix the problem and older tests still work.