geovista.pantry
#
Download, cache and load geovista assets.
Notes
Added in version 0.5.0.
Submodules#
Package Contents#
Functions#
|
Get the Natural Earth coastlines for the required resolution. |
|
Download, uncompress and cache a raster file. |
- geovista.pantry.fetch_coastlines(resolution=None)[source]#
Get the Natural Earth coastlines for the required resolution.
If the resource is not already available in the geovista
geovista.cache.CACHE
, then it will be downloaded from thegeovista.cache.BASE_URL
.- Parameters:
- resolution
str
, optional The resolution of the Natural Earth coastlines, which may be either
110m
,50m
or10m
. Defaults togeovista.common.COASTLINES_RESOLUTION
.
- resolution
- Returns:
PolyData
The coastlines mesh.
Notes
Added in version 0.1.0.
- geovista.pantry.fetch_raster(fname)[source]#
Download, uncompress and cache a raster file.
If the resource is not already available in the geovista
geovista.cache.CACHE
, then it will be downloaded from thegeovista.cache.BASE_URL
.- Parameters:
- fname
str
The name of the raster file to be downloaded, uncompressed and cached.
- fname
- Returns:
Path
The absolute path to the raster file.
Notes
Added in version 0.5.0.