Skip to content

Commit 9e15ec7

Browse files
committed
MNT: use github mirror for gshhg data download
1 parent f2eef4f commit 9e15ec7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/cartopy/io/shapereader.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,18 +452,21 @@ class GSHHSShpDownloader(Downloader):
452452
-----
453453
The GSHHS data is no longer hosted by NOAA,
454454
https://www.nesdis.noaa.gov/about/documents-reports/notice-of-changes/2025-notice-of-changes/shorelinecoastline-resources
455-
but is available in an archive at the following url
455+
but it is available in an archive at the following url
456456
https://www.ncei.noaa.gov/data/oceans/archive/arc0234/0304143/1.1/data/0-data/GSHHS_shp/
457457
for historical reference. The current source of the data downloaded by
458458
Cartopy is from the University of Hawaii
459459
https://www.soest.hawaii.edu/pwessel/gshhg/
460+
using the GitHub mirror of the data at
461+
https://github.com/GenericMappingTools/gshhg-gmt
460462
"""
461463
FORMAT_KEYS = ('config', 'scale', 'level')
462464

463465
gshhs_version = '2.3.7'
464466

465467
_GSHHS_URL_TEMPLATE = (
466-
'https://www.soest.hawaii.edu/pwessel/gshhg/gshhg-shp-{gshhs_version}.zip'
468+
'https://github.com/GenericMappingTools/gshhg-gmt/releases/download/'
469+
'{gshhs_version}/gshhg-shp-{gshhs_version}.zip'
467470
)
468471

469472
def __init__(self,

0 commit comments

Comments
 (0)