Skip to content

Commit 3076ec9

Browse files
authored
Merge pull request #498 from joernu76/issue496
Update geos version number
2 parents acfa006 + a9c274e commit 3076ec9

File tree

2 files changed

+11
-31
lines changed

2 files changed

+11
-31
lines changed

.travis.yml

+7-31
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
addons:
1313
apt:
1414
packages:
15-
- libgeos-3.4.2
15+
- libgeos-3.5.0
1616
# matplotlib requirements
1717
- libpng12-dev
1818
- libfreetype6-dev
@@ -33,42 +33,21 @@ cache:
3333
# matrix generates 6 test cases
3434
matrix:
3535
include:
36-
# "minimum requirements" environments
37-
# test the bare minimum versions
38-
# compiles internal libgeos
39-
# Notes:
40-
# numpy 1.7.0 is the first version that works out of the box for Python 2.6 and 3.3
41-
# numpy 1.5.1 is the earliest version to compile and *might* be able to work on Python 2.6,
42-
# if two unit tests are skipped due to numpy.copy(a,order) not having 'order' parameter
43-
# 1.6.0-1.6.2 works out of the box for Python 2.6
44-
# matplotlib 1.2.0 was found to be the earliest version that installs
45-
- python: 2.6
46-
env:
47-
- NUMPY=numpy==1.7.0
48-
- MPL=matplotlib==1.2.0
49-
- BUILD_LIBGEOS=internal
50-
51-
# "middle of the road" environment
52-
# use prepackaged binaries
53-
# if no prepackaged binary available, use a previous stable version
54-
- python: 3.4
55-
env:
56-
- MPL=matplotlib==1.4.3
57-
- NUMPY=numpy==1.9.3
58-
- BUILD_LIBGEOS=internal
59-
6036
# "latest and greatest" stable environments
6137
# this uses the current stable versions
6238
# pip installs latest stable versions automatically
6339
- python: 2.7
6440
env:
6541
- BUILD_LIBGEOS=3.5.1
66-
- python: 3.5
67-
env:
68-
- BUILD_LIBGEOS=3.5.1
6942
- python: 3.6
7043
env:
7144
- BUILD_LIBGEOS=3.6.1
45+
- python: 3.7
46+
env:
47+
- BUILD_LIBGEOS=3.6.1
48+
- python: 3.8
49+
env:
50+
- BUILD_LIBGEOS=3.6.1
7251

7352
# "current development" environment
7453
# this test is diagnostic for development versions and is not required to pass
@@ -106,9 +85,6 @@ install:
10685
- pip install $PYPROJ
10786
- pip install -r requirements.txt
10887

109-
# extra requirements to support Python 2.6
110-
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install -r .requirements-2.6.txt; fi
111-
11288
- |
11389
# Is libgeos suppose to be built?
11490
if [[ $BUILD_LIBGEOS != 'false' ]]; then

lib/mpl_toolkits/basemap/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,10 @@ def _readboundarydata(self,name,as_polygons=False):
14591459
# convert polygons to line segments
14601460
poly = _geoslib.LineString(poly.boundary)
14611461
else:
1462+
# this is a workaround to avoid
1463+
# GEOS_ERROR: CGAlgorithmsDD::orientationIndex encountered NaN/Inf numbers
1464+
b[np.isposinf(b)] = 1e20
1465+
b[np.isneginf(b)] = -1e20
14621466
poly = Shape(b)
14631467
# this is a workaround to avoid
14641468
# "GEOS_ERROR: TopologyException:

0 commit comments

Comments
 (0)