@@ -12,48 +12,50 @@ using matplotlib.
12
12
13
13
* matplotlib
14
14
15
- * numpy
15
+ * numpy
16
16
17
17
* [ pyproj] ( https://github.com/jswhit/pyproj )
18
18
19
19
* [ pyshp] ( https://github.com/GeospatialPython/pyshp )
20
20
21
21
* The GEOS (Geometry Engine - Open Source) library (version 3.1.1 or higher).
22
- Source code is included in the geos-3.3.3 directory.
22
+ Source code is included in the ` geos-3.3.3 ` directory.
23
23
24
- * On linux , if your python was installed via a package management system, make
25
- sure the corresponding " python-dev" package is also installed. Otherwise, you
26
- may not have the python header (` Python.h ` ), which is required to build python
24
+ * On Linux , if your Python was installed via a package management system, make
25
+ sure the corresponding ` python-dev ` package is also installed. Otherwise, you
26
+ may not have the Python header (` Python.h ` ), which is required to build Python
27
27
C extensions.
28
28
29
29
### Optional
30
30
31
- * [ OWSLib] ( https://github.com/geopython/OWSLib ) (optional) It is needed
32
- for the BaseMap.wmsimage function.
31
+ * [ OWSLib] ( https://github.com/geopython/OWSLib ) (optional) It is needed for
32
+ the ` BaseMap.wmsimage ` function.
33
33
34
- * [ Pillow] ( https://python-pillow.github.io/ ) (optional) It is
35
- needed for Basemap warpimage, bluemarble, shadedrelief, and etop methods.
36
- PIL should work on Python 2.x. Pillow is a maintained fork of PIL.
34
+ * [ Pillow] ( https://python-pillow.github.io/ ) (optional) It is needed for
35
+ Basemap warpimage, bluemarble, shadedrelief, and etop methods. PIL should
36
+ work on Python 2.x. Pillow is a maintained fork of PIL.
37
37
38
38
## Copyright
39
39
40
- Source code for the GEOS library is
41
- included in the ` geos-3.3.3 ` directory under the terms given in
42
- LICENSE_geos.
40
+ Source code for the GEOS library is included in the ` geos-3.3.3 ` directory
41
+ under the terms given in ` LICENSE_geos ` .
43
42
44
- The land-sea mask, coastline, lake, river and political boundary data are extracted
45
- from datasets provided with the [ Generic Mapping Tools (GMT)] ( http://gmt.soest.hawaii.edu )
46
- and are included under the terms given in LICENSE_data.
43
+ The land-sea mask, coastline, lake, river and political boundary data are
44
+ extracted from datasets provided with the
45
+ [ Generic Mapping Tools (GMT)] ( http://gmt.soest.hawaii.edu ) and are included
46
+ under the terms given in ` LICENSE_data ` .
47
47
48
- Everything else (including ` src/_geos.c ` , and ` src/_geos.pyx ` ):
48
+ Everything else (including ` src/_geos.c ` and ` src/_geos.pyx ` ) is licensed under
49
+ the terms given in ` LICENSE ` :
49
50
50
- copyright (c ) 2011 by Jeffrey Whitaker.
51
+ Copyright (C ) 2011 Jeffrey Whitaker
51
52
52
53
Permission to use, copy, modify, and distribute this software and its
53
54
documentation for any purpose and without fee is hereby granted,
54
55
provided that the above copyright notices appear in all copies and that
55
56
both the copyright notices and this permission notice appear in
56
57
supporting documentation.
58
+
57
59
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
58
60
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
59
61
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
@@ -62,44 +64,44 @@ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
62
64
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
63
65
PERFORMANCE OF THIS SOFTWARE.
64
66
65
- ## Documentation
67
+ ## Documentation
66
68
67
- see http://matplotlib.github.com/basemap/
69
+ See http://matplotlib.github.com/basemap/
68
70
69
- see scripts in ` examples ` directory for example usage.
71
+ See scripts in ` examples ` directory for example usage.
70
72
71
- read the FAQ and/or email the matplotlib-users mailing list if
72
- you have problems or questions.
73
+ Read the FAQ and/or email the matplotlib-users mailing list if you have
74
+ problems or questions.
73
75
74
76
## Install
75
77
76
- 0 . Install pre-requisite python modules numpy and matplotlib.
78
+ 0 . Install pre-requisite Python modules numpy and matplotlib.
77
79
78
- 1 . Then download ` basemap-X.Y.Z.tar.gz ` (approx 100 mb) from
79
- the [ GitHub Releases] ( https://github.com/matplotlib/basemap/releases ) page, unpack and cd to basemap-X.Y.Z.
80
+ 1 . Then download ` basemap-X.Y.Z.tar.gz ` (approx 100 MB) from the
81
+ [ GitHub Releases] ( https://github.com/matplotlib/basemap/releases ) page,
82
+ unpack and ` cd ` to ` basemap-X.Y.Z ` .
80
83
81
- 2 . Install the GEOS library. If you already have it on your
82
- system, just set the environment variable ` GEOS_DIR ` to point to the location
83
- of libgeos_c and geos_c.h (if libgeos_c is in ` /usr/local/lib ` and
84
- geos_c.h is in ` /usr/local/include ` , set GEOS_DIR to ` /usr/local ` ).
85
- Then go to step (3). If you don't have it, you can build it from
86
- the source code included with basemap by following these steps:
84
+ 2 . Install the GEOS library. If you already have it on your system, just
85
+ set the environment variable ` GEOS_DIR ` to point to the location of ` libgeos_c `
86
+ and ` geos_c.h ` (if ` libgeos_c ` is in ` /usr/local/lib ` and ` geos_c.h ` is in
87
+ ` /usr/local/include ` , set ` GEOS_DIR ` to ` /usr/local ` ). Then go to step (3 ).
88
+ If you don't have it, you can build it from the source code included with
89
+ basemap by following these steps:
87
90
88
91
```
89
92
> cd geos-3.3.3
90
93
> export GEOS_DIR=<where you want the libs and headers to go>
91
94
A reasonable choice on a Unix-like system is /usr/local, or
92
95
if you don't have permission to write there, your home directory.
93
- > ./configure --prefix=$GEOS_DIR
96
+ > ./configure --prefix=$GEOS_DIR
94
97
> make; make install
95
98
```
96
99
97
- 3 . cd back to the top level basemap directory (basemap-X.Y.Z) and
98
- run the usual ` python setup.py install ` . Check your installation
99
- by running "from mpl_toolkits.basemap import Basemap" at the python
100
- prompt.
100
+ 3 . ` cd ` back to the top level basemap directory (` basemap-X.Y.Z ` ) and run
101
+ the usual ` python setup.py install ` . Check your installation by running
102
+ `` "from mpl_toolkits.basemap import Basemap" `` at the Python prompt.
101
103
102
- 4 . To test, cd to the examples directory and run ` python simpletest.py ` .
104
+ 4 . To test, ` cd ` to the examples directory and run ` python simpletest.py ` .
103
105
To run all the examples (except those that have extra dependencies
104
106
or require an internet connection), execute ` python run_all.py ` .
105
107
115
117
116
118
## Thanks
117
119
118
- Special thanks to John Hunter, Andrew Straw, Eric Firing, Rob Hetland, Scott Sinclair, Ivan Lima, Erik Andersen, Michael Hearne, Jesper Larsen, Ryan May, David Huard, Mauro Cavalcanti, Jonas Bluethgen, Chris Murphy, Pierre Gerard-Marchant, Christoph Gohlke, Eric Bruning, Stephane Raynaud, Tom Loredo, Patrick Marsh, Phil Elson, and Henry Hammond for valuable contributions.
120
+ Special thanks to John Hunter, Andrew Straw, Eric Firing, Rob Hetland, Scott
121
+ Sinclair, Ivan Lima, Erik Andersen, Michael Hearne, Jesper Larsen, Ryan May,
122
+ David Huard, Mauro Cavalcanti, Jonas Bluethgen, Chris Murphy, Pierre
123
+ Gerard-Marchant, Christoph Gohlke, Eric Bruning, Stephane Raynaud, Tom Loredo,
124
+ Patrick Marsh, Phil Elson, and Henry Hammond for valuable contributions.
0 commit comments