File: io.rst

package info (click to toggle)
python-cartopy 0.21.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,668 kB
  • sloc: python: 15,101; makefile: 166; javascript: 66; sh: 6
file content (110 lines) | stat: -rw-r--r-- 2,303 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.. _api.io:

.. currentmodule:: cartopy.io

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.

.. _api.io.shapereader:

Shapefiles
~~~~~~~~~~

Cartopy provides a basic interface for accessing shapefiles.

.. autosummary::
    :toctree: generated/

    shapereader.Reader
    shapereader.BasicReader
    shapereader.Record
    shapereader.natural_earth
    shapereader.NEShpDownloader
    shapereader.gshhs
    shapereader.GSHHSShpDownloader


Image collections
~~~~~~~~~~~~~~~~~

.. autosummary::
    :toctree: generated/

    img_nest.Img
    img_nest.ImageCollection
    img_nest.NestedImageCollection


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.

.. autosummary::
    :toctree: generated/

    img_tiles.OSM
    img_tiles.GoogleTiles
    img_tiles.GoogleWTS
    img_tiles.MapQuestOSM
    img_tiles.MapQuestOpenAerial
    img_tiles.MapboxStyleTiles
    img_tiles.MapboxTiles
    img_tiles.OrdnanceSurvey
    img_tiles.QuadtreeTiles
    img_tiles.Stamen


Open Geospatial Consortium (OGC)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There are several classes to enable interfacing with OGC clients.

.. autosummary::
    :toctree: generated/

    ogc_clients.WFSGeometrySource
    ogc_clients.WMSRasterSource
    ogc_clients.WMTSRasterSource


Shuttle Radar Topography Mission (SRTM)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The SRTM data can be accessed through the :mod:`cartopy.io.srtm` module
using classes and functions defined below.

.. autosummary::
    :toctree: generated/
    :recursive:

    srtm.SRTM1Source
    srtm.SRTM3Source
    srtm.SRTMDownloader
    srtm.read_SRTM
    srtm.read_SRTM1
    srtm.read_SRTM3
    srtm.add_shading


Base classes and functions
~~~~~~~~~~~~~~~~~~~~~~~~~~

These are the base classes that new resources can leverage
to implement a new reader or tile client.

.. autosummary::
    :toctree: generated/

    Downloader
    DownloadWarning
    LocatedImage
    RasterSource
    RasterSourceContainer
    PostprocessedRasterSource
    fh_getter