-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from akrherz/patch_downloader
backport natural earth download URL
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/lib/cartopy/io/shapereader.py b/lib/cartopy/io/shapereader.py | ||
index 795b202c..386004fc 100644 | ||
--- a/lib/cartopy/io/shapereader.py | ||
+++ b/lib/cartopy/io/shapereader.py | ||
@@ -297,8 +297,8 @@ class NEShpDownloader(Downloader): | ||
# Define the NaturalEarth URL template. The natural earth website | ||
# returns a 302 status if accessing directly, so we use the naciscdn | ||
# URL directly. | ||
- _NE_URL_TEMPLATE = ('https://naciscdn.org/naturalearth/{resolution}' | ||
- '/{category}/ne_{resolution}_{name}.zip') | ||
+ _NE_URL_TEMPLATE = ('https://naturalearth.s3.amazonaws.com/' | ||
+ '{resolution}_{category}/ne_{resolution}_{name}.zip') | ||
|
||
def __init__(self, | ||
url_template=_NE_URL_TEMPLATE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5468ec5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This is the friendly automated conda-forge-webservice.
I updated the Github team because of this commit.
Go to https://github.com/orgs/conda-forge/invitation see your invitation.
You should get push access to this feedstock and CI services.
Feel free to join the community chat room.
NOTE: Please make sure to not push to the repository directly.
Use branches in your fork for any changes and send a PR.
More details here