Add the Equal Earth projection support following what was done for Spilhaus - #9199
Merged
Conversation
…ilhaus. Number of line changes are surprisingly small. - src/gmt_project.h — GMT_PROJ4_EQEARTH added to the 500-block enum. - src/gmt_init.c — detect eqearth in the PROJ string; also gmt_set_geographic(GMT_IN). gmtinit_parse_J_option is never called for PROJ-only projections, so a non-global -R-100/40/-20/70 was read as Cartesian and all annotations vanished. - src/gmt_proj.c (+52) — - gmtproj_proj4_pcyl_fwd/_inv: GDAL normalizes geographic lon to [-180,180] before subtracting lon_0, so with -Rg +lon_0=180 both W and E boundaries collapsed onto the west edge. Wind relative to central meridian, nudge the antimeridian GMT_PROJ_CONV_LIMIT inside. - gmtproj_left/right_proj4_pcyl: curved W/E edges. No analytic formula, so invert (origin[GMT_X], y) → lat, then project (west|east, lat). - src/gmt_map.c — map_init_proj4: central meridian from +lon_0, is_world, curved edges, parallel_straight, GMT_OBL_ANNOT_NORMAL_TICKS, and projection_GMT = projection (the frame/annotation switches all test projection_GMT, which stays GMT_NO_PROJ otherwise — that was the Bad case in gmt_map_clip_path (500)). Clip path + gmt_half_map_width get the Robinson treatment. - src/gmt_plot.c — boundary → gmtplot_basic_map_boundary; added to the proj_A list (annotate both 0 and 360). Assisted-by: Claude Opus 5.0
Esteban82
approved these changes
Sep 11, 2026
Esteban82
left a comment
Member
There was a problem hiding this comment.
It works for me. I got the same figure.
Contributor
|
Wasn’t this projection supported in GMT before?! I thought it was quite common.. |
Member
Author
|
No, it wasn't. This Guardian article brings some context. But this won't go without me saying that I find that article particularly ... silly. IMO, the Mercator projection is (was) the most important map projection to humanity as it gave the ability to sailing through oceans with a map and a compass (and a sextant). There is nothing colonial in that. UTM was colonial (created to draw the Pink-Rose maps). |
Contributor
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)Report last updated at commit 3f0a231 |
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.


Number of line changes are surprisingly small.
It contains also a test/psbasemap/eqearth.sh that will break the CI because the baseline ps missing.
Can be tested tested with:
Assisted-by: Claude Opus 5.0