- class cartopy.io.shapereader.GSHHSShpDownloader(url_template='https://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/latest/gshhg-shp-2.3.7.zip', target_path_template=None, pre_downloaded_path_template='')¶
cartopy.io.Downloaderto download the zipped GSHHS shapefiles and extract them to the defined location.
The keys which should be passed through when using the
scale(a single character indicating the resolution) and
level(a number indicating the type of feature).
- __init__(url_template='https://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/latest/gshhg-shp-2.3.7.zip', target_path_template=None, pre_downloaded_path_template='')¶
Download the zip file and extracts the files listed in
zip_file_contents()to the target path.
Return a GSHHSShpDownloader instance that expects (and if necessary downloads and installs) shapefiles in the data directory of the cartopy installation.
from_configstatic method implements the logic for acquiring a Downloader (sub)class instance from the config dictionary.
Returns the path to a file on disk that this resource represents.
The path on disk of the file that this resource represents, if it does not exist, then no further action will be taken with this path, and all further processing will be done using
The path on disk of the file that this resource represents, must either exist, or be writable by the current user.
The full URL that this resource represents.
Return a generator of the filenames to be found in the downloaded GSHHS zip file for the specified resource.
The minimum keys which should be provided in the
format_dictargument for the