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 provides a basic interface for accessing shapefiles.
alias of |
|
|
Provide an interface for accessing the contents of a shapefile. |
|
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#
|
|
|
|
|
Image tiles#
These classes 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)#
There are 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 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. |