Preloader of nacis natural earth shapefiles
Project description
README
This package is a preloader for nacis (North American Cartographic Information Society) shapefiles. It is intended to supplement python applications making use of cartopy shapefiles (which are downloaded from nacis servers). By using this preloader, the nacis download can be replaced with loading shapefiles from s3 instead (where available).
Currently includes:
- 10m roads
- 10m, 50m, 110m countries
- 10m, 50m, 110m states_provinces
- 10m, 50m, 110m coastline
- 10m, 50m, 110m rivers_lake_centerlines
see http://www.naturalearthdata.com/downloads/ for more information about available shapefiles (those not provided by this preloader). see also https://gist.github.com/DanielJWood/b71237cc200831acf8e637c05ce2c375#file-natural_earth_s3_links-md for alternate download location for the source shapefile zips.
How to i use it?
from nacis.preloader import Preloader preloader = Preloader('yours3bucket','yours3prefix')
preload roads, countries, coastlines:
preloader.preload('roads','cultural','10m') preloader.preload('countries','cultural','10m') preloader.preload('coastline','physical','10m')
make a chart:
import matplotlib.pyplot as plt import cartopy import cartopy.crs as ccrs
fig = plt.figure(figsize=(7,7)) ax = plt.axes(projection=ccrs.PlateCarree()) ax.coastlines(resolution='10m', color = 'black', linewidth=1.0) cartopy.feature.NaturalEarthFeature('cultural','countries','10m') cartopy.feature.NaturalEarthFeature('cultural','roads','10m') ax.set_extent([-180,180,-90,90]) plt.savefig('out.png') plt.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nacispreloader-0.2.4.tar.gz.
File metadata
- Download URL: nacispreloader-0.2.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c395f58f7e93a6d4a11cf6819526efa45f9dee54ede8e5bc17d9109e65ae1c72
|
|
| MD5 |
28a612106e0f27b2e5708e928751301d
|
|
| BLAKE2b-256 |
af6dc978fc3672282203956177197281d25a0ea1811ca3b324fa9b307940119d
|
File details
Details for the file nacispreloader-0.2.4-py3-none-any.whl.
File metadata
- Download URL: nacispreloader-0.2.4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8c8473bfb75664bbbe7d52bcfa9489473b67a0063caf28c55db7ad4c16d20e1
|
|
| MD5 |
52dff74f61bea02d3a496cabef01cbd0
|
|
| BLAKE2b-256 |
302446ba0ac6402235c443c89a42723b07ee4f836191ec69b9578c24bc58a49e
|