From b888b90a5795f81d19ad1c1ffa26f56fd9eadd0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Fri, 13 Jun 2025 20:32:16 +0200 Subject: [PATCH 01/23] Add first version for gallery example epsg_codes --- examples/gallery/maps/epsg_codes.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 examples/gallery/maps/epsg_codes.py diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py new file mode 100755 index 00000000000..d7fae646e3e --- /dev/null +++ b/examples/gallery/maps/epsg_codes.py @@ -0,0 +1,19 @@ +""" +EPSG codes +========== + +Besides one of the :doc:`31 projections supported by GMT `, users +can pass an EPSG (European Petroleum Survey Group) code to the ``projection`` parameter. +A commonly used EPSG code is ``EPSG:3857``, that refers to the Web Mercator projection +WGS84. More information on the EPSG dataset can be found at https://epsg.org/home.html. + +""" + +import pygmt + +fig = pygmt.Figure() + +fig.basemap(region=[-180, 180, -60, 60], projection="EPSG:3857/10c", frame="30") +fig.coast(shorelines="1/0.1p,gray10") + +fig.show() From c4bd9993c5786b9831fb2997602c336eef3e36f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Fri, 13 Jun 2025 20:44:48 +0200 Subject: [PATCH 02/23] Add docs and comments --- examples/gallery/maps/epsg_codes.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py index d7fae646e3e..0e39bce67fe 100755 --- a/examples/gallery/maps/epsg_codes.py +++ b/examples/gallery/maps/epsg_codes.py @@ -3,9 +3,10 @@ ========== Besides one of the :doc:`31 projections supported by GMT `, users -can pass an EPSG (European Petroleum Survey Group) code to the ``projection`` parameter. -A commonly used EPSG code is ``EPSG:3857``, that refers to the Web Mercator projection -WGS84. More information on the EPSG dataset can be found at https://epsg.org/home.html. +can pass an EPSG (European Petroleum Survey Group) code to the ``projection`` parameter +of the methods :meth:`Figure.basemap` and :meth:`Figure.coast`. A commonly used EPSG +code is ``EPSG:3857``, that refers to the Web Mercator projection WGS84. More +information on the EPSG dataset can be found at https://epsg.org/home.html. """ @@ -13,6 +14,8 @@ fig = pygmt.Figure() +# Pass the desired EPSG code and the width of the map, here 10 centimeters, to the +# projection parameter fig.basemap(region=[-180, 180, -60, 60], projection="EPSG:3857/10c", frame="30") fig.coast(shorelines="1/0.1p,gray10") From 9f0fccdc0a9d4e0814f4199cc7ce92f8c1aa1854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Fri, 13 Jun 2025 20:45:39 +0200 Subject: [PATCH 03/23] Remove execution permission --- examples/gallery/maps/epsg_codes.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 examples/gallery/maps/epsg_codes.py diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py old mode 100755 new mode 100644 From 1ddb693974610311bfbe9f4f08e62e9ca87f90a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Fri, 13 Jun 2025 20:50:23 +0200 Subject: [PATCH 04/23] Add code block seperator --- examples/gallery/maps/epsg_codes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py index 0e39bce67fe..e8d3715093a 100644 --- a/examples/gallery/maps/epsg_codes.py +++ b/examples/gallery/maps/epsg_codes.py @@ -10,6 +10,7 @@ """ +# %% import pygmt fig = pygmt.Figure() From 27372042ff9d422192ac18c4397364c4788ae4a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Sat, 14 Jun 2025 15:05:42 +0200 Subject: [PATCH 05/23] Shorten URL Co-authored-by: Dongdong Tian --- examples/gallery/maps/epsg_codes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py index e8d3715093a..2aeae3e7661 100644 --- a/examples/gallery/maps/epsg_codes.py +++ b/examples/gallery/maps/epsg_codes.py @@ -6,7 +6,7 @@ can pass an EPSG (European Petroleum Survey Group) code to the ``projection`` parameter of the methods :meth:`Figure.basemap` and :meth:`Figure.coast`. A commonly used EPSG code is ``EPSG:3857``, that refers to the Web Mercator projection WGS84. More -information on the EPSG dataset can be found at https://epsg.org/home.html. +information on the EPSG dataset can be found at https://epsg.org. """ From 11cef0a2427d4c0a43dc37b32a457809916bf335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Sat, 14 Jun 2025 15:06:32 +0200 Subject: [PATCH 06/23] Remove blank line Co-authored-by: Dongdong Tian --- examples/gallery/maps/epsg_codes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py index 2aeae3e7661..a3a553d1f1a 100644 --- a/examples/gallery/maps/epsg_codes.py +++ b/examples/gallery/maps/epsg_codes.py @@ -7,7 +7,6 @@ of the methods :meth:`Figure.basemap` and :meth:`Figure.coast`. A commonly used EPSG code is ``EPSG:3857``, that refers to the Web Mercator projection WGS84. More information on the EPSG dataset can be found at https://epsg.org. - """ # %% From dd72248b85882c80e8914912f3b00a0f82fcbb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Sat, 14 Jun 2025 15:06:49 +0200 Subject: [PATCH 07/23] Use float data type Co-authored-by: Dongdong Tian --- examples/gallery/maps/epsg_codes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py index a3a553d1f1a..f87ec696e52 100644 --- a/examples/gallery/maps/epsg_codes.py +++ b/examples/gallery/maps/epsg_codes.py @@ -16,7 +16,7 @@ # Pass the desired EPSG code and the width of the map, here 10 centimeters, to the # projection parameter -fig.basemap(region=[-180, 180, -60, 60], projection="EPSG:3857/10c", frame="30") +fig.basemap(region=[-180, 180, -60, 60], projection="EPSG:3857/10c", frame=30) fig.coast(shorelines="1/0.1p,gray10") fig.show() From 1a55f599759a08ba5ebc13285bd5df360dfe9007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 16:51:39 +0200 Subject: [PATCH 08/23] Mention EPSG codes in projection files --- doc/techref/projections.md | 3 +++ examples/projections/GALLERY_HEADER.rst | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index a6c765f33d8..d8384979385 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -47,3 +47,6 @@ The table below shows the projection codes for the 31 GMT map projections: | **W**[{{ lon0 }}/]*width* | [](/projections/misc/misc_mollweide.rst) | | **X***width*[**l**\|**p***exp*\|**T**\|**t**][/*height*[**l**\|**p***exp*\|**T**\|**t**]][**d**] | Cartesian [linear](/projections/nongeo/cartesian_linear.rst), [logarithmic](/projections/nongeo/cartesian_logarithmic.rst), [power](/projections/nongeo/cartesian_power.rst), and time | | **Y**{{ lon0 }}/{{ lat0 }}/*width* | [](/projections/cyl/cyl_equal_area.rst) | + +Besides these projection codes, the usage of :doc:`EPSG codes ` +is suppported. \ No newline at end of file diff --git a/examples/projections/GALLERY_HEADER.rst b/examples/projections/GALLERY_HEADER.rst index ceb7227f8e9..7c4a5b0d3c3 100644 --- a/examples/projections/GALLERY_HEADER.rst +++ b/examples/projections/GALLERY_HEADER.rst @@ -6,6 +6,7 @@ Use the ``projection`` parameter to specify which one you want to use in all plo methods. The projection is specified by a one-letter code along with (sometimes optional) reference longitude and latitude and the width of the map (for example, **A**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*). The map height is determined based on the -region and projection. +region and projection. Furthermore, the usage of :doc:`EPSG codes ` +is suppported. These are all the available projections: From 76968382673b8bf26759844fa0d38e153d59c242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 17:36:24 +0200 Subject: [PATCH 09/23] Set link in markdown --- doc/techref/projections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index d8384979385..d9722b4707b 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -48,5 +48,5 @@ The table below shows the projection codes for the 31 GMT map projections: | **X***width*[**l**\|**p***exp*\|**T**\|**t**][/*height*[**l**\|**p***exp*\|**T**\|**t**]][**d**] | Cartesian [linear](/projections/nongeo/cartesian_linear.rst), [logarithmic](/projections/nongeo/cartesian_logarithmic.rst), [power](/projections/nongeo/cartesian_power.rst), and time | | **Y**{{ lon0 }}/{{ lat0 }}/*width* | [](/projections/cyl/cyl_equal_area.rst) | -Besides these projection codes, the usage of :doc:`EPSG codes ` +Besides these projection codes, the usage of [EPSG codes](https://www.pygmt.org/latest/techref/projections.html) is suppported. \ No newline at end of file From 9fce5caf7217e37538d4fa5f6a966d61b7421eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 17:51:15 +0200 Subject: [PATCH 10/23] Use correct URL --- doc/techref/projections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index d9722b4707b..100447a9215 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -48,5 +48,5 @@ The table below shows the projection codes for the 31 GMT map projections: | **X***width*[**l**\|**p***exp*\|**T**\|**t**][/*height*[**l**\|**p***exp*\|**T**\|**t**]][**d**] | Cartesian [linear](/projections/nongeo/cartesian_linear.rst), [logarithmic](/projections/nongeo/cartesian_logarithmic.rst), [power](/projections/nongeo/cartesian_power.rst), and time | | **Y**{{ lon0 }}/{{ lat0 }}/*width* | [](/projections/cyl/cyl_equal_area.rst) | -Besides these projection codes, the usage of [EPSG codes](https://www.pygmt.org/latest/techref/projections.html) +Besides these projection codes, the usage of [EPSG codes](https://www.pygmt.org/latest/gallery/maps/epsg_codes) is suppported. \ No newline at end of file From a70141e2c1a2005d6fdf7aae51f8cc136e0e3eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 17:54:43 +0200 Subject: [PATCH 11/23] Improve formulation --- doc/techref/projections.md | 7 +++---- examples/projections/GALLERY_HEADER.rst | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index 100447a9215..db5373cc033 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -12,7 +12,9 @@ myst: # GMT Map Projections -The table below shows the projection codes for the 31 GMT map projections: +The table below shows the projection codes for the 31 GMT map projections. Besides these +GMT-specific projection codes, [EPSG codes](https://www.pygmt.org/latest/gallery/maps/epsg_codes) +are suppported. | PyGMT Projection Argument | Projection Name | | --- | --- | @@ -47,6 +49,3 @@ The table below shows the projection codes for the 31 GMT map projections: | **W**[{{ lon0 }}/]*width* | [](/projections/misc/misc_mollweide.rst) | | **X***width*[**l**\|**p***exp*\|**T**\|**t**][/*height*[**l**\|**p***exp*\|**T**\|**t**]][**d**] | Cartesian [linear](/projections/nongeo/cartesian_linear.rst), [logarithmic](/projections/nongeo/cartesian_logarithmic.rst), [power](/projections/nongeo/cartesian_power.rst), and time | | **Y**{{ lon0 }}/{{ lat0 }}/*width* | [](/projections/cyl/cyl_equal_area.rst) | - -Besides these projection codes, the usage of [EPSG codes](https://www.pygmt.org/latest/gallery/maps/epsg_codes) -is suppported. \ No newline at end of file diff --git a/examples/projections/GALLERY_HEADER.rst b/examples/projections/GALLERY_HEADER.rst index 7c4a5b0d3c3..78a94d1e95d 100644 --- a/examples/projections/GALLERY_HEADER.rst +++ b/examples/projections/GALLERY_HEADER.rst @@ -6,7 +6,7 @@ Use the ``projection`` parameter to specify which one you want to use in all plo methods. The projection is specified by a one-letter code along with (sometimes optional) reference longitude and latitude and the width of the map (for example, **A**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*). The map height is determined based on the -region and projection. Furthermore, the usage of :doc:`EPSG codes ` -is suppported. +region and projection. Beside these GMT-specific projection codes, +:doc:`EPSG codes ` are suppported. These are all the available projections: From 1c8972219426de421314555e9e14ffd94c836424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 18:07:15 +0200 Subject: [PATCH 12/23] Move to projection gallery --- examples/projections/epsg/GALLERY_HEADER.rst | 2 ++ examples/projections/epsg/epsg_codes.py | 22 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 examples/projections/epsg/GALLERY_HEADER.rst create mode 100755 examples/projections/epsg/epsg_codes.py diff --git a/examples/projections/epsg/GALLERY_HEADER.rst b/examples/projections/epsg/GALLERY_HEADER.rst new file mode 100755 index 00000000000..a5c305d65f8 --- /dev/null +++ b/examples/projections/epsg/GALLERY_HEADER.rst @@ -0,0 +1,2 @@ +EPSG-codes +---------- \ No newline at end of file diff --git a/examples/projections/epsg/epsg_codes.py b/examples/projections/epsg/epsg_codes.py new file mode 100755 index 00000000000..f87ec696e52 --- /dev/null +++ b/examples/projections/epsg/epsg_codes.py @@ -0,0 +1,22 @@ +""" +EPSG codes +========== + +Besides one of the :doc:`31 projections supported by GMT `, users +can pass an EPSG (European Petroleum Survey Group) code to the ``projection`` parameter +of the methods :meth:`Figure.basemap` and :meth:`Figure.coast`. A commonly used EPSG +code is ``EPSG:3857``, that refers to the Web Mercator projection WGS84. More +information on the EPSG dataset can be found at https://epsg.org. +""" + +# %% +import pygmt + +fig = pygmt.Figure() + +# Pass the desired EPSG code and the width of the map, here 10 centimeters, to the +# projection parameter +fig.basemap(region=[-180, 180, -60, 60], projection="EPSG:3857/10c", frame=30) +fig.coast(shorelines="1/0.1p,gray10") + +fig.show() From 55feaa753e1283f07d6e7fa15932048079e3dd3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 18:09:35 +0200 Subject: [PATCH 13/23] Remove file --- examples/gallery/maps/epsg_codes.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 examples/gallery/maps/epsg_codes.py diff --git a/examples/gallery/maps/epsg_codes.py b/examples/gallery/maps/epsg_codes.py deleted file mode 100644 index f87ec696e52..00000000000 --- a/examples/gallery/maps/epsg_codes.py +++ /dev/null @@ -1,22 +0,0 @@ -""" -EPSG codes -========== - -Besides one of the :doc:`31 projections supported by GMT `, users -can pass an EPSG (European Petroleum Survey Group) code to the ``projection`` parameter -of the methods :meth:`Figure.basemap` and :meth:`Figure.coast`. A commonly used EPSG -code is ``EPSG:3857``, that refers to the Web Mercator projection WGS84. More -information on the EPSG dataset can be found at https://epsg.org. -""" - -# %% -import pygmt - -fig = pygmt.Figure() - -# Pass the desired EPSG code and the width of the map, here 10 centimeters, to the -# projection parameter -fig.basemap(region=[-180, 180, -60, 60], projection="EPSG:3857/10c", frame=30) -fig.coast(shorelines="1/0.1p,gray10") - -fig.show() From b10bc325865591504fbab8fc113b65e14d2d2a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 18:11:45 +0200 Subject: [PATCH 14/23] Use no hypen --- examples/projections/epsg/GALLERY_HEADER.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projections/epsg/GALLERY_HEADER.rst b/examples/projections/epsg/GALLERY_HEADER.rst index a5c305d65f8..c95ee247016 100755 --- a/examples/projections/epsg/GALLERY_HEADER.rst +++ b/examples/projections/epsg/GALLERY_HEADER.rst @@ -1,2 +1,2 @@ -EPSG-codes +EPSG codes ---------- \ No newline at end of file From bb571ff13d8c0e2038c81e157706426dfaa65291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 18:15:29 +0200 Subject: [PATCH 15/23] Add blank line at the end --- examples/projections/epsg/GALLERY_HEADER.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projections/epsg/GALLERY_HEADER.rst b/examples/projections/epsg/GALLERY_HEADER.rst index c95ee247016..cb62dd6aab4 100755 --- a/examples/projections/epsg/GALLERY_HEADER.rst +++ b/examples/projections/epsg/GALLERY_HEADER.rst @@ -1,2 +1,2 @@ EPSG codes ----------- \ No newline at end of file +---------- From c76299761d218ebcbecb40f05043c2bf49e4a6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 18:28:44 +0200 Subject: [PATCH 16/23] Remove execution permission --- examples/projections/epsg/GALLERY_HEADER.rst | 0 examples/projections/epsg/epsg_codes.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 examples/projections/epsg/GALLERY_HEADER.rst mode change 100755 => 100644 examples/projections/epsg/epsg_codes.py diff --git a/examples/projections/epsg/GALLERY_HEADER.rst b/examples/projections/epsg/GALLERY_HEADER.rst old mode 100755 new mode 100644 diff --git a/examples/projections/epsg/epsg_codes.py b/examples/projections/epsg/epsg_codes.py old mode 100755 new mode 100644 From b4a7f0504629fb0522b4f013b5f40fb0d3301282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 20:21:30 +0200 Subject: [PATCH 17/23] Add subfolder to conf file --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index c3a7bd78562..589041b084e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -182,7 +182,7 @@ "../examples/projections/cyl", "../examples/projections/misc", "../examples/projections/nongeo", - "../examples/projections/table", + "../examples/projections/epsg", ], # Pattern to search for example files "filename_pattern": r"\.py", From 5a2033939b552ba0844aa71f773818f34dba42cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 21:55:32 +0200 Subject: [PATCH 18/23] Update links to projection gallery --- doc/techref/projections.md | 2 +- examples/projections/GALLERY_HEADER.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index db5373cc033..14de8683ade 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -13,7 +13,7 @@ myst: # GMT Map Projections The table below shows the projection codes for the 31 GMT map projections. Besides these -GMT-specific projection codes, [EPSG codes](https://www.pygmt.org/latest/gallery/maps/epsg_codes) +GMT-specific projection codes, [EPSG codes](https://www.pygmt.org/latest/gallery/projections/epsg) are suppported. | PyGMT Projection Argument | Projection Name | diff --git a/examples/projections/GALLERY_HEADER.rst b/examples/projections/GALLERY_HEADER.rst index 78a94d1e95d..eb4e262cadd 100644 --- a/examples/projections/GALLERY_HEADER.rst +++ b/examples/projections/GALLERY_HEADER.rst @@ -7,6 +7,6 @@ methods. The projection is specified by a one-letter code along with (sometimes reference longitude and latitude and the width of the map (for example, **A**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*). The map height is determined based on the region and projection. Beside these GMT-specific projection codes, -:doc:`EPSG codes ` are suppported. +:doc:`EPSG codes ` are suppported. These are all the available projections: From ea896b28d266016093adc3954b63271378bc0632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 22:09:17 +0200 Subject: [PATCH 19/23] Color land --- examples/projections/epsg/epsg_codes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/projections/epsg/epsg_codes.py b/examples/projections/epsg/epsg_codes.py index f87ec696e52..d2551a25d86 100644 --- a/examples/projections/epsg/epsg_codes.py +++ b/examples/projections/epsg/epsg_codes.py @@ -17,6 +17,6 @@ # Pass the desired EPSG code and the width of the map, here 10 centimeters, to the # projection parameter fig.basemap(region=[-180, 180, -60, 60], projection="EPSG:3857/10c", frame=30) -fig.coast(shorelines="1/0.1p,gray10") +fig.coast(land="gray", shorelines="1/0.1p,gray10") fig.show() From af727f1e3af3bc99a99059ddc02bbddb0decf9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 15 Jun 2025 22:23:06 +0200 Subject: [PATCH 20/23] Update links to projection gallery --- doc/techref/projections.md | 2 +- examples/projections/GALLERY_HEADER.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index 14de8683ade..18db2072452 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -13,7 +13,7 @@ myst: # GMT Map Projections The table below shows the projection codes for the 31 GMT map projections. Besides these -GMT-specific projection codes, [EPSG codes](https://www.pygmt.org/latest/gallery/projections/epsg) +GMT-specific projection codes, [EPSG codes](https://www.pygmt.org/latest/projections/epsg) are suppported. | PyGMT Projection Argument | Projection Name | diff --git a/examples/projections/GALLERY_HEADER.rst b/examples/projections/GALLERY_HEADER.rst index eb4e262cadd..a6a4af1aecd 100644 --- a/examples/projections/GALLERY_HEADER.rst +++ b/examples/projections/GALLERY_HEADER.rst @@ -7,6 +7,6 @@ methods. The projection is specified by a one-letter code along with (sometimes reference longitude and latitude and the width of the map (for example, **A**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*). The map height is determined based on the region and projection. Beside these GMT-specific projection codes, -:doc:`EPSG codes ` are suppported. +:doc:`EPSG codes ` are suppported. These are all the available projections: From 7d43c72a466b987b54c8a916f8324fc7052f1b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Mon, 16 Jun 2025 10:22:15 +0200 Subject: [PATCH 21/23] Shorten link Co-authored-by: Dongdong Tian --- doc/techref/projections.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index 18db2072452..d9443595252 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -13,8 +13,7 @@ myst: # GMT Map Projections The table below shows the projection codes for the 31 GMT map projections. Besides these -GMT-specific projection codes, [EPSG codes](https://www.pygmt.org/latest/projections/epsg) -are suppported. +GMT-specific projection codes, [EPSG codes](/projections/epsg) are suppported. | PyGMT Projection Argument | Projection Name | | --- | --- | From 5f28e605e84a3e56e1892a927f118563e4247ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Mon, 16 Jun 2025 21:25:13 +0200 Subject: [PATCH 22/23] Add second url --- examples/projections/epsg/epsg_codes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/projections/epsg/epsg_codes.py b/examples/projections/epsg/epsg_codes.py index d2551a25d86..9982cdba5ad 100644 --- a/examples/projections/epsg/epsg_codes.py +++ b/examples/projections/epsg/epsg_codes.py @@ -6,7 +6,8 @@ can pass an EPSG (European Petroleum Survey Group) code to the ``projection`` parameter of the methods :meth:`Figure.basemap` and :meth:`Figure.coast`. A commonly used EPSG code is ``EPSG:3857``, that refers to the Web Mercator projection WGS84. More -information on the EPSG dataset can be found at https://epsg.org. +information on the EPSG dataset can be found at https://epsg.org and +https://spatialreference.org/. """ # %% From c337d10569c46db91e60acce6a20d8db74b53ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Wed, 18 Jun 2025 23:09:12 +0200 Subject: [PATCH 23/23] Fix typo --- doc/techref/projections.md | 2 +- examples/projections/GALLERY_HEADER.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/techref/projections.md b/doc/techref/projections.md index d9443595252..9fe7871ad57 100644 --- a/doc/techref/projections.md +++ b/doc/techref/projections.md @@ -13,7 +13,7 @@ myst: # GMT Map Projections The table below shows the projection codes for the 31 GMT map projections. Besides these -GMT-specific projection codes, [EPSG codes](/projections/epsg) are suppported. +GMT-specific projection codes, [EPSG codes](/projections/epsg) are supported. | PyGMT Projection Argument | Projection Name | | --- | --- | diff --git a/examples/projections/GALLERY_HEADER.rst b/examples/projections/GALLERY_HEADER.rst index a6a4af1aecd..6b757a3d8b2 100644 --- a/examples/projections/GALLERY_HEADER.rst +++ b/examples/projections/GALLERY_HEADER.rst @@ -7,6 +7,6 @@ methods. The projection is specified by a one-letter code along with (sometimes reference longitude and latitude and the width of the map (for example, **A**\ *lon0/lat0*\ [*/horizon*\ ]\ */width*). The map height is determined based on the region and projection. Beside these GMT-specific projection codes, -:doc:`EPSG codes ` are suppported. +:doc:`EPSG codes ` are supported. These are all the available projections: