Skip to content

Commit bad7943

Browse files
weiji14seisman
andauthored
Fix doctest on pygmt.datasets.tile_map.load_tile_map in ci_tests_legacy (#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]>
1 parent b7f0627 commit bad7943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/datasets/tile_map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def load_tile_map(
125125
spatial_ref int... 0
126126
>>> # CRS is set only if rioxarray is available
127127
>>> if hasattr(raster, "rio"):
128-
... raster.rio.crs
129-
CRS.from_wkt(...)
128+
... raster.rio.crs.to_string()
129+
'EPSG:3857'
130130
"""
131131
if not _HAS_CONTEXTILY:
132132
msg = (

0 commit comments

Comments
 (0)