The recent release of PostGIS 3.0 brings an updated spatial reference system table that includes over 8000 projections out of the box and we're happy to report that the Equal Earth Projection is one of them!
As a CARTO user, this means you can start using this popular projection in your maps right away!
A future update will bring all 8000 projections to CARTO automatically, but for now, you have to add them manually to your account's spatial_ref_sys
table. The most straight forward way to do this is through your Dashboard.
From the Data view, click on any table to open it. Copy the projection's definition below and paste it in the SQL pane and click Apply.
INSERT INTO
"spatial_ref_sys" ("srid","auth_name","auth_srid","srtext","proj4text")
VALUES
(8857,'EPSG',8857,'','+proj=eqearth +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs')
Once you've done that, you can start using the projection with the SRID 8857
.
To learn more about adding projections into your spatial reference table with CARTO visit this advanced cartography resource.
Below are links with examples using the Equal Earth Projection in CARTO Builder, CARTO VL, and CARTOframes.
https://bl.ocks.org/makella/ffcd3be98c5354d384008528d0e11fe7
https://colab.research.google.com/drive/1BMXjankqpe4oc7yZIFLquy5-hF66JKol
The option above, centers the map on 0,0
but if you want to vary the central meridian, there are a couple of additional options:
EPSG 8858 : WGS 84 / Equal Earth Americas
INSERT INTO "spatial_ref_sys" ("srid","auth_name","auth_srid","srtext","proj4text") VALUES (8858,'EPSG',8858,'','+proj=eqearth +lon_0=-90 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs')
EPSG 8859 : WGS 84 / Equal Earth Asia-Pacific
INSERT INTO "spatial_ref_sys" ("srid","auth_name","auth_srid","srtext","proj4text") VALUES (8859,'EPSG',8859,'','+proj=eqearth +lon_0=150 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs')
Template for header map:
https://colab.research.google.com/drive/1cax0F5WyzuTwqwOdI8H-e_6KQG9S6e8O