You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL
+47-32Lines changed: 47 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,9 @@ Installing Cartopy
4
4
Conda pre-built binaries
5
5
------------------------
6
6
7
-
The easiest way to install Cartopy is through
8
-
`Conda <https://conda.io/miniconda.html>`_. If conda is already installed, installation is as easy as::
7
+
The easiest way to install Cartopy is by using
8
+
`Conda <https://conda.io/miniconda.html>`_. If conda is already installed,
9
+
installation is as easy as::
9
10
10
11
conda install -c conda-forge cartopy
11
12
@@ -23,92 +24,107 @@ Additional pre-built binaries can be found at a variety of sources, including:
23
24
Building from source
24
25
--------------------
25
26
26
-
Before building Cartopy from source, you need to **first** install the required dependencies listed below. Once these are installed, Cartopy can be installed using the pip installer::
27
+
Before building Cartopy from source, you need to **first** install the
28
+
required dependencies listed below. Once these are installed, Cartopy can be
29
+
installed using the pip installer::
27
30
28
31
pip install cartopy
29
32
30
-
To instead install the most recent version found on the GitHub master branch, use::
33
+
To instead install the most recent version found on the GitHub master branch,
In order to install Cartopy, or to access it's basic functionality, it will be necessary to first install **geos**, **numpy**, **cython**, **shapely**, **pyshp** and **six**. Many of these packages can be installed using pip or other package managers such as apt-get (linux) and brew (macos). Many of these dependencies are built as part of Cartopy's conda distribution, and the recipes for these can be found at https://github.com/conda-forge/feedstocks.
50
+
In order to install Cartopy, or to access it's basic functionality, it will be
51
+
necessary to first install **geos**, **numpy**, **cython**, **shapely**,
52
+
**pyshp** and **six**. Many of these packages can be installed using pip or
53
+
other package managers such as apt-get (linux) and brew (macos). Many of these
54
+
dependencies are built as part of Cartopy's conda distribution, and the recipes
55
+
for these packages can be found at https://github.com/conda-forge/feedstocks.
46
56
47
57
For macOS, the required dependencies can be installed in the following way::
48
58
49
59
brew install proj geos
50
60
pip3 install --upgrade cython numpy pyshp six
51
-
# shapely needs to be build from source. If it is already installed,
52
-
# uninstall it by: pip3 uninstall shapely
61
+
# shapely needs to be built from source to link to geos. If it is already
62
+
# installed, uninstall it by: pip3 uninstall shapely
53
63
pip3 install shapely --no-binary shapely
54
64
55
-
If you are installing dependencies with a package manager on Linux, you may need to install the development packages (look for a "-dev" suffix) in addition to the core packages.
65
+
If you are installing dependencies with a package manager on Linux, you may
66
+
need to install the development packages (look for a "-dev" suffix) in addition
67
+
to the core packages.
56
68
57
69
Further information about the required dependencies can be found here:
58
70
59
71
**Python** 2.7 or later (https://www.python.org/)
60
-
Cartopy requires Python 2.7 or later.
72
+
61
73
**Cython** 0.28 or later (https://pypi.python.org/pypi/Cython/)
62
74
63
75
**NumPy** 1.10 or later (https://numpy.org/)
64
76
Python package for scientific computing including a powerful N-dimensional
65
77
array object.
78
+
66
79
**GEOS** 3.3.3 or later (https://trac.osgeo.org/geos/)
67
-
GEOS is an API of spatial predicates and functions for processing geometry
68
-
written in C++.
80
+
69
81
**Shapely** 1.5.6 or later (https://github.com/Toblerity/Shapely)
70
-
Python package for the manipulation and analysis of planar geometric
71
-
objects.
82
+
72
83
**pyshp** 2.0 or later (https://pypi.python.org/pypi/pyshp)
73
-
Pure Python read/write support for ESRI Shapefile format.
84
+
74
85
**PROJ** 4.9.0 or later (https://proj4.org/)
75
-
Cartographic Projections library.
86
+
76
87
**six** 1.3.0 or later (https://pypi.python.org/pypi/six)
77
-
Python 2 and 3 compatibility.
78
88
79
89
80
90
Optional Dependencies
81
91
~~~~~~~~~~~~~~~~~~~~~
82
-
These are optional packages that you may want to install to enable
83
-
additional Cartopy functionality.
92
+
To make the most of Cartopy by enabling additional functionality, you may want
93
+
to install these optional dependencies.
84
94
85
95
**Matplotlib** 1.5.1 or later (https://matplotlib.org/)
86
-
Python package for 2D plotting. This package is required for any
87
-
graphical capability.
96
+
Python package required for any graphical capabilities.
88
97
98
+
<<<<<<< HEAD
89
99
**GDAL** version 1.10.0 (https://gdal.org/)
90
100
GDAL is a translator library for raster and vector geospatial data formats,
91
101
which has powerful data transformation and processing capabilities.
102
+
=======
103
+
**GDAL** version 1.10.0 (http://www.gdal.org/)
104
+
A translator library for raster and vector geospatial data formats
105
+
that has powerful data transformation and processing capabilities.
106
+
>>>>>>> Additional uptdates to INSTALL documenation
92
107
93
108
**Pillow** 1.7.8 or later (https://pypi.python.org/pypi/Pillow/2.3.0)
94
-
Popular fork of PythonImagingLibrary.
109
+
A popular fork of PythonImagingLibrary.
95
110
96
111
**pyepsg** 0.4.0 or later (https://github.com/rhattersley/pyepsg)
97
112
A simple Python interface to https://epsg.io
98
113
99
114
**pykdtree** 1.2.2 or later (https://github.com/storpipfugl/pykdtree)
100
-
Fast kd-tree implementation in Python; used for faster warping of images in
101
-
preference to SciPy.
115
+
A fast kd-tree implementation that is used for faster warping
0 commit comments