Input/output capabilities (cartopy.io)#
Cartopy has many built-in image and map acquisition capabilities. These capabilities allow the maps to be loaded, saved, and retrieved in various data formats.
Shapefiles#
cartopy.io.shapereader
provides a basic interface for accessing shapefiles.
alias of |
|
|
Provide an interface for accessing the contents of a shapefile. |
|
Provides an interface for accessing the contents of a shapefile with the fiona library, which has a much faster reader than pyshp. |
|
A single logical entry from a shapefile, combining the attributes with their associated geometry. |
|
A single logical entry from a shapefile, combining the attributes with their associated geometry. |
|
Return the path to the requested natural earth shapefile, downloading and unzipping if necessary. |
|
Specialise |
|
Return the path to the requested GSHHS shapefile, downloading and unzipping if necessary. |
|
Specialise |
Image collections#
cartopy.io.img_nest
provides an interface for representing images.
|
Represents a simple geo-located image. |
|
Represents a collection of images at the same logical level. |
|
Represents a complex nest of ImageCollections. |
Image tiles#
Classes in cartopy.io.img_tiles
provide an interface to the respective tile resources to
automatically load the proper tile and resolution depending on the desired domain.
|
|
|
|
|
Implement web tile retrieval using the Google WTS coordinate system. |
|
|
|
|
|
Implement web tile retrieval from a user-defined Mapbox style. |
|
Implement web tile retrieval from Mapbox. |
|
Implement web tile retrieval from Ordnance Survey map data. |
|
Implement web tile retrieval using the Microsoft WTS quadkey coordinate system. |
|
Retrieves tiles from maps.stamen.com. |
Open Geospatial Consortium (OGC)#
cartopy.io.ogc_clients
contains several classes to enable interfacing with OGC clients.
|
Web Feature Service (WFS) retrieval for Cartopy. |
|
A WMS imagery retriever which can be added to a map. |
|
A WMTS imagery retriever which can be added to a map. |
Shuttle Radar Topography Mission (SRTM)#
The SRTM data can be accessed through the cartopy.io.srtm
module
using classes and functions defined below.
|
A source of SRTM1 data, which implements Cartopy's RasterSource interface. |
|
A source of SRTM3 data, which implements Cartopy's RasterSource interface. |
|
Provide a SRTM download mechanism. |
|
Read the array of (y, x) elevation data from the given named file-handle. |
|
Read the array of (y, x) elevation data from the given named file-handle. |
|
Read the array of (y, x) elevation data from the given named file-handle. |
|
Add shading to SRTM elevation data, using azimuth and altitude of the sun. |
Base classes and functions#
These are the base classes in cartopy.io
that new resources can leverage
to implement a new reader or tile client.
|
Represents a resource, that can be configured easily, which knows how to acquire itself (perhaps via HTTP). |
Issued when a file is being downloaded by a |
|
|
Define an image and associated extent in the form: |
Define the cartopy raster fetching interface. |
|
|
A container which simply calls the appropriate methods on the contained |
|
A |
|
Convenience function for opening files. |