Skip to content

Commit

Permalink
Fix doctest on pygmt.datasets.tile_map.load_tile_map in ci_tests_lega…
Browse files Browse the repository at this point in the history
…cy (#3642)

Use rio.crs.to_string() to get the 'EPSG:3857' string representation that should make the test compatible with rasterio 1.4.2 or older.

---------

Co-authored-by: Dongdong Tian <[email protected]>
  • Loading branch information
weiji14 and seisman authored Nov 22, 2024
1 parent b7f0627 commit bad7943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmt/datasets/tile_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def load_tile_map(
spatial_ref int... 0
>>> # CRS is set only if rioxarray is available
>>> if hasattr(raster, "rio"):
... raster.rio.crs
CRS.from_wkt(...)
... raster.rio.crs.to_string()
'EPSG:3857'
"""
if not _HAS_CONTEXTILY:
msg = (
Expand Down

0 comments on commit bad7943

Please sign in to comment.