shapely 1.2.13__tar.gz → 1.2.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Shapely-1.2.13 → Shapely-1.2.15}/CHANGES.txt +19 -4
- {Shapely-1.2.13 → Shapely-1.2.15}/CREDITS.txt +1 -0
- {Shapely-1.2.13/Shapely.egg-info → Shapely-1.2.15}/PKG-INFO +34 -21
- {Shapely-1.2.13 → Shapely-1.2.15}/README.rst +14 -15
- {Shapely-1.2.13 → Shapely-1.2.15/Shapely.egg-info}/PKG-INFO +34 -21
- {Shapely-1.2.13 → Shapely-1.2.15}/Shapely.egg-info/SOURCES.txt +3 -1
- Shapely-1.2.15/VERSION.txt +1 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/docs/manual.txt +41 -10
- {Shapely-1.2.13 → Shapely-1.2.15}/setup.py +62 -35
- Shapely-1.2.15/shapely/__init__.py +1 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/coords.py +53 -21
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/base.py +28 -16
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/linestring.py +4 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/multilinestring.py +1 -1
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/multipoint.py +4 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/multipolygon.py +1 -1
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/point.py +7 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/polygon.py +21 -8
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geos.py +3 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/speedups/_speedups.c +1090 -975
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/MultiPolygon.txt +8 -8
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/Point.txt +2 -2
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/Polygon.txt +3 -3
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/__init__.py +4 -1
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/attribute-chains.txt +2 -4
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/cascaded_union.txt +3 -2
- Shapely-1.2.15/shapely/tests/test_getitem.py +113 -0
- Shapely-1.2.15/shapely/tests/test_ndarrays.py +35 -0
- Shapely-1.2.13/shapely/__init__.py +0 -2
- Shapely-1.2.13/shapely/speedups/_speedups.pyx +0 -295
- {Shapely-1.2.13 → Shapely-1.2.15}/LICENSE.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/Shapely.egg-info/dependency_links.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/Shapely.egg-info/top_level.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/setup.cfg +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/algorithms/__init__.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/algorithms/cga.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/ctypes_declarations.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/examples/__init__.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/examples/dissolve.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/examples/geoms.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/examples/intersect.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/examples/world.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/ftools.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/__init__.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/collection.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/geo.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/geometry/proxy.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/impl.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/iterops.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/linref.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/ops.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/predicates.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/prepared.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/speedups/__init__.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/Array.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/GeoInterface.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/IterOps.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/LineString.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/MultiLineString.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/MultiPoint.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/Operations.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/Persist.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/Predicates.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/binascii_hex.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/dimensions.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/invalid_intersection.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/linemerge.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/polygonize.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_box.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_cga.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_collection.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_delegated.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_dlls.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_doctests.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_emptiness.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_equality.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_geomseq.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_linear_referencing.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_mapping.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_prepared.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_products_z.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_singularity.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_speedups.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_validation.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/test_xy.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/threading_test.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/tests/wkt_locale.txt +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/topology.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/validation.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/wkb.py +0 -0
- {Shapely-1.2.13 → Shapely-1.2.15}/shapely/wkt.py +0 -0
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
=======
|
|
2
|
-
|
|
2
|
+
Changes
|
|
3
3
|
=======
|
|
4
4
|
|
|
5
|
+
1.2.15 (2012-)
|
|
6
|
+
--------------
|
|
7
|
+
- Eliminate numerical sensitivity in a method chaining test (Debian bug
|
|
8
|
+
#663210).
|
|
9
|
+
- Account for cascaded union of random buffered test points being a polygon
|
|
10
|
+
or multipolygon (Debian bug #666655).
|
|
11
|
+
- Use Cython to build speedups if it is installed.
|
|
12
|
+
- Avoid stumbling over SVN revision numbers in GEOS C API version strings.
|
|
13
|
+
|
|
14
|
+
1.2.14 (2012-01-23)
|
|
15
|
+
-------------------
|
|
16
|
+
- A geometry's coords property is now sliceable, yielding a list of coordinate
|
|
17
|
+
values.
|
|
18
|
+
- Homogeneous collections are now sliceable, yielding a new collection of the
|
|
19
|
+
same type.
|
|
20
|
+
|
|
5
21
|
1.2.13 (2011-09-16)
|
|
6
22
|
-------------------
|
|
7
|
-
- Fixed errors in speedups on 32bit systems when GEOS references memory above
|
|
23
|
+
- Fixed errors in speedups on 32bit systems when GEOS references memory above
|
|
24
|
+
2GB.
|
|
8
25
|
- Add shapely.__version__ attribute.
|
|
9
26
|
- Update the manual.
|
|
10
27
|
|
|
@@ -139,9 +156,7 @@ TODO: fill gap here
|
|
|
139
156
|
- Prototype libgeos_c functions in a way that lets py2exe apps import shapely
|
|
140
157
|
(#189).
|
|
141
158
|
|
|
142
|
-
=========================
|
|
143
159
|
1.2 Branched (2009-09-19)
|
|
144
|
-
=========================
|
|
145
160
|
|
|
146
161
|
1.0.12 (2009-04-09)
|
|
147
162
|
-------------------
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 1.0
|
|
2
2
|
Name: Shapely
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.15
|
|
4
4
|
Summary: Geometric objects, predicates, and operations
|
|
5
5
|
Home-page: https://github.com/sgillies/shapely
|
|
6
6
|
Author: Sean Gillies
|
|
7
7
|
Author-email: sean.gillies@gmail.com
|
|
8
8
|
License: BSD
|
|
9
|
-
Description:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Description: ======
|
|
10
|
+
README
|
|
11
|
+
======
|
|
12
12
|
|
|
13
|
-
PostGIS-ish operations outside a database context for Pythoneers and
|
|
13
|
+
PostGIS-ish operations outside a database context for Pythoneers and
|
|
14
|
+
Pythonistas.
|
|
14
15
|
|
|
15
16
|
.. image:: http://farm3.static.flickr.com/2738/4511827859_b5822043b7_o_d.png
|
|
16
17
|
:width: 800
|
|
@@ -107,7 +108,7 @@ Description: =======
|
|
|
107
108
|
Testing
|
|
108
109
|
=======
|
|
109
110
|
|
|
110
|
-
Shapely uses a Zope-stye suite of unittests and doctests,
|
|
111
|
+
Shapely uses a Zope-stye suite of unittests and doctests, exercised via
|
|
111
112
|
setup.py.::
|
|
112
113
|
|
|
113
114
|
$ python setup.py test
|
|
@@ -118,7 +119,7 @@ Description: =======
|
|
|
118
119
|
Support
|
|
119
120
|
=======
|
|
120
121
|
|
|
121
|
-
Bugs may be reported and questions asked via https://github.com/
|
|
122
|
+
Bugs may be reported and questions asked via https://github.com/Toblerity/Shapely.
|
|
122
123
|
|
|
123
124
|
Credits
|
|
124
125
|
=======
|
|
@@ -128,22 +129,23 @@ Description: =======
|
|
|
128
129
|
* Sean Gillies
|
|
129
130
|
* Aron Bierbaum
|
|
130
131
|
* Kai Lautaportti
|
|
132
|
+
* Oliver Tonnhofer
|
|
131
133
|
|
|
132
134
|
Patches contributed by:
|
|
133
135
|
|
|
134
136
|
* Howard Butler
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
+
* Frédéric Junod
|
|
138
|
+
* Éric Lemoine
|
|
137
139
|
* Jonathan Tartley
|
|
138
140
|
* Kristian Thy
|
|
139
|
-
*
|
|
141
|
+
* Mike Toews (https://github.com/mwtoews)
|
|
140
142
|
|
|
141
143
|
Additional help from:
|
|
142
144
|
|
|
143
145
|
* Justin Bronn (GeoDjango) for ctypes inspiration
|
|
144
146
|
* Martin Davis (JTS)
|
|
145
147
|
* Jaakko Salli for the Windows distributions
|
|
146
|
-
* Sandro Santilli, Mateusz Loskot, Paul Ramsey, et al (
|
|
148
|
+
* Sandro Santilli, Mateusz Loskot, Paul Ramsey, et al (GEOS_ Project)
|
|
147
149
|
|
|
148
150
|
Major portions of this work were supported by a grant (for Pleiades_) from the
|
|
149
151
|
U.S. National Endowment for the Humanities (http://www.neh.gov).
|
|
@@ -153,20 +155,33 @@ Description: =======
|
|
|
153
155
|
.. _GEOS: http://trac.osgeo.org/geos/
|
|
154
156
|
.. _example apps: http://trac.gispython.org/lab/wiki/Examples
|
|
155
157
|
.. _wiki: http://trac.gispython.org/lab/wiki/Shapely
|
|
156
|
-
.. _manual: http://
|
|
157
|
-
.. |eacute| unicode:: U+00E9
|
|
158
|
-
:trim:
|
|
159
|
-
.. |Eacute| unicode:: U+00C9
|
|
160
|
-
:trim:
|
|
158
|
+
.. _manual: http://toblerity.github.com/shapely/manual.html
|
|
161
159
|
.. _Pleiades: http://pleiades.stoa.org
|
|
162
160
|
|
|
161
|
+
|
|
162
|
+
Changes
|
|
163
163
|
=======
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
|
|
165
|
+
1.2.15 (2012-)
|
|
166
|
+
--------------
|
|
167
|
+
- Eliminate numerical sensitivity in a method chaining test (Debian bug
|
|
168
|
+
#663210).
|
|
169
|
+
- Account for cascaded union of random buffered test points being a polygon
|
|
170
|
+
or multipolygon (Debian bug #666655).
|
|
171
|
+
- Use Cython to build speedups if it is installed.
|
|
172
|
+
- Avoid stumbling over SVN revision numbers in GEOS C API version strings.
|
|
173
|
+
|
|
174
|
+
1.2.14 (2012-01-23)
|
|
175
|
+
-------------------
|
|
176
|
+
- A geometry's coords property is now sliceable, yielding a list of coordinate
|
|
177
|
+
values.
|
|
178
|
+
- Homogeneous collections are now sliceable, yielding a new collection of the
|
|
179
|
+
same type.
|
|
166
180
|
|
|
167
181
|
1.2.13 (2011-09-16)
|
|
168
182
|
-------------------
|
|
169
|
-
- Fixed errors in speedups on 32bit systems when GEOS references memory above
|
|
183
|
+
- Fixed errors in speedups on 32bit systems when GEOS references memory above
|
|
184
|
+
2GB.
|
|
170
185
|
- Add shapely.__version__ attribute.
|
|
171
186
|
- Update the manual.
|
|
172
187
|
|
|
@@ -301,9 +316,7 @@ Description: =======
|
|
|
301
316
|
- Prototype libgeos_c functions in a way that lets py2exe apps import shapely
|
|
302
317
|
(#189).
|
|
303
318
|
|
|
304
|
-
=========================
|
|
305
319
|
1.2 Branched (2009-09-19)
|
|
306
|
-
=========================
|
|
307
320
|
|
|
308
321
|
1.0.12 (2009-04-09)
|
|
309
322
|
-------------------
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
======
|
|
2
|
+
README
|
|
3
|
+
======
|
|
4
4
|
|
|
5
|
-
PostGIS-ish operations outside a database context for Pythoneers and
|
|
5
|
+
PostGIS-ish operations outside a database context for Pythoneers and
|
|
6
|
+
Pythonistas.
|
|
6
7
|
|
|
7
8
|
.. image:: http://farm3.static.flickr.com/2738/4511827859_b5822043b7_o_d.png
|
|
8
9
|
:width: 800
|
|
@@ -99,7 +100,7 @@ Numpy arrays can also be adapted to Shapely linestrings::
|
|
|
99
100
|
Testing
|
|
100
101
|
=======
|
|
101
102
|
|
|
102
|
-
Shapely uses a Zope-stye suite of unittests and doctests,
|
|
103
|
+
Shapely uses a Zope-stye suite of unittests and doctests, exercised via
|
|
103
104
|
setup.py.::
|
|
104
105
|
|
|
105
106
|
$ python setup.py test
|
|
@@ -110,7 +111,7 @@ supported well by nose.
|
|
|
110
111
|
Support
|
|
111
112
|
=======
|
|
112
113
|
|
|
113
|
-
Bugs may be reported and questions asked via https://github.com/
|
|
114
|
+
Bugs may be reported and questions asked via https://github.com/Toblerity/Shapely.
|
|
114
115
|
|
|
115
116
|
Credits
|
|
116
117
|
=======
|
|
@@ -120,22 +121,23 @@ Shapely is written by:
|
|
|
120
121
|
* Sean Gillies
|
|
121
122
|
* Aron Bierbaum
|
|
122
123
|
* Kai Lautaportti
|
|
124
|
+
* Oliver Tonnhofer
|
|
123
125
|
|
|
124
126
|
Patches contributed by:
|
|
125
127
|
|
|
126
128
|
* Howard Butler
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
+
* Frédéric Junod
|
|
130
|
+
* Éric Lemoine
|
|
129
131
|
* Jonathan Tartley
|
|
130
132
|
* Kristian Thy
|
|
131
|
-
*
|
|
133
|
+
* Mike Toews (https://github.com/mwtoews)
|
|
132
134
|
|
|
133
135
|
Additional help from:
|
|
134
136
|
|
|
135
137
|
* Justin Bronn (GeoDjango) for ctypes inspiration
|
|
136
138
|
* Martin Davis (JTS)
|
|
137
139
|
* Jaakko Salli for the Windows distributions
|
|
138
|
-
* Sandro Santilli, Mateusz Loskot, Paul Ramsey, et al (
|
|
140
|
+
* Sandro Santilli, Mateusz Loskot, Paul Ramsey, et al (GEOS_ Project)
|
|
139
141
|
|
|
140
142
|
Major portions of this work were supported by a grant (for Pleiades_) from the
|
|
141
143
|
U.S. National Endowment for the Humanities (http://www.neh.gov).
|
|
@@ -145,9 +147,6 @@ U.S. National Endowment for the Humanities (http://www.neh.gov).
|
|
|
145
147
|
.. _GEOS: http://trac.osgeo.org/geos/
|
|
146
148
|
.. _example apps: http://trac.gispython.org/lab/wiki/Examples
|
|
147
149
|
.. _wiki: http://trac.gispython.org/lab/wiki/Shapely
|
|
148
|
-
.. _manual: http://
|
|
149
|
-
.. |eacute| unicode:: U+00E9
|
|
150
|
-
:trim:
|
|
151
|
-
.. |Eacute| unicode:: U+00C9
|
|
152
|
-
:trim:
|
|
150
|
+
.. _manual: http://toblerity.github.com/shapely/manual.html
|
|
153
151
|
.. _Pleiades: http://pleiades.stoa.org
|
|
152
|
+
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 1.0
|
|
2
2
|
Name: Shapely
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.15
|
|
4
4
|
Summary: Geometric objects, predicates, and operations
|
|
5
5
|
Home-page: https://github.com/sgillies/shapely
|
|
6
6
|
Author: Sean Gillies
|
|
7
7
|
Author-email: sean.gillies@gmail.com
|
|
8
8
|
License: BSD
|
|
9
|
-
Description:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Description: ======
|
|
10
|
+
README
|
|
11
|
+
======
|
|
12
12
|
|
|
13
|
-
PostGIS-ish operations outside a database context for Pythoneers and
|
|
13
|
+
PostGIS-ish operations outside a database context for Pythoneers and
|
|
14
|
+
Pythonistas.
|
|
14
15
|
|
|
15
16
|
.. image:: http://farm3.static.flickr.com/2738/4511827859_b5822043b7_o_d.png
|
|
16
17
|
:width: 800
|
|
@@ -107,7 +108,7 @@ Description: =======
|
|
|
107
108
|
Testing
|
|
108
109
|
=======
|
|
109
110
|
|
|
110
|
-
Shapely uses a Zope-stye suite of unittests and doctests,
|
|
111
|
+
Shapely uses a Zope-stye suite of unittests and doctests, exercised via
|
|
111
112
|
setup.py.::
|
|
112
113
|
|
|
113
114
|
$ python setup.py test
|
|
@@ -118,7 +119,7 @@ Description: =======
|
|
|
118
119
|
Support
|
|
119
120
|
=======
|
|
120
121
|
|
|
121
|
-
Bugs may be reported and questions asked via https://github.com/
|
|
122
|
+
Bugs may be reported and questions asked via https://github.com/Toblerity/Shapely.
|
|
122
123
|
|
|
123
124
|
Credits
|
|
124
125
|
=======
|
|
@@ -128,22 +129,23 @@ Description: =======
|
|
|
128
129
|
* Sean Gillies
|
|
129
130
|
* Aron Bierbaum
|
|
130
131
|
* Kai Lautaportti
|
|
132
|
+
* Oliver Tonnhofer
|
|
131
133
|
|
|
132
134
|
Patches contributed by:
|
|
133
135
|
|
|
134
136
|
* Howard Butler
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
+
* Frédéric Junod
|
|
138
|
+
* Éric Lemoine
|
|
137
139
|
* Jonathan Tartley
|
|
138
140
|
* Kristian Thy
|
|
139
|
-
*
|
|
141
|
+
* Mike Toews (https://github.com/mwtoews)
|
|
140
142
|
|
|
141
143
|
Additional help from:
|
|
142
144
|
|
|
143
145
|
* Justin Bronn (GeoDjango) for ctypes inspiration
|
|
144
146
|
* Martin Davis (JTS)
|
|
145
147
|
* Jaakko Salli for the Windows distributions
|
|
146
|
-
* Sandro Santilli, Mateusz Loskot, Paul Ramsey, et al (
|
|
148
|
+
* Sandro Santilli, Mateusz Loskot, Paul Ramsey, et al (GEOS_ Project)
|
|
147
149
|
|
|
148
150
|
Major portions of this work were supported by a grant (for Pleiades_) from the
|
|
149
151
|
U.S. National Endowment for the Humanities (http://www.neh.gov).
|
|
@@ -153,20 +155,33 @@ Description: =======
|
|
|
153
155
|
.. _GEOS: http://trac.osgeo.org/geos/
|
|
154
156
|
.. _example apps: http://trac.gispython.org/lab/wiki/Examples
|
|
155
157
|
.. _wiki: http://trac.gispython.org/lab/wiki/Shapely
|
|
156
|
-
.. _manual: http://
|
|
157
|
-
.. |eacute| unicode:: U+00E9
|
|
158
|
-
:trim:
|
|
159
|
-
.. |Eacute| unicode:: U+00C9
|
|
160
|
-
:trim:
|
|
158
|
+
.. _manual: http://toblerity.github.com/shapely/manual.html
|
|
161
159
|
.. _Pleiades: http://pleiades.stoa.org
|
|
162
160
|
|
|
161
|
+
|
|
162
|
+
Changes
|
|
163
163
|
=======
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
|
|
165
|
+
1.2.15 (2012-)
|
|
166
|
+
--------------
|
|
167
|
+
- Eliminate numerical sensitivity in a method chaining test (Debian bug
|
|
168
|
+
#663210).
|
|
169
|
+
- Account for cascaded union of random buffered test points being a polygon
|
|
170
|
+
or multipolygon (Debian bug #666655).
|
|
171
|
+
- Use Cython to build speedups if it is installed.
|
|
172
|
+
- Avoid stumbling over SVN revision numbers in GEOS C API version strings.
|
|
173
|
+
|
|
174
|
+
1.2.14 (2012-01-23)
|
|
175
|
+
-------------------
|
|
176
|
+
- A geometry's coords property is now sliceable, yielding a list of coordinate
|
|
177
|
+
values.
|
|
178
|
+
- Homogeneous collections are now sliceable, yielding a new collection of the
|
|
179
|
+
same type.
|
|
166
180
|
|
|
167
181
|
1.2.13 (2011-09-16)
|
|
168
182
|
-------------------
|
|
169
|
-
- Fixed errors in speedups on 32bit systems when GEOS references memory above
|
|
183
|
+
- Fixed errors in speedups on 32bit systems when GEOS references memory above
|
|
184
|
+
2GB.
|
|
170
185
|
- Add shapely.__version__ attribute.
|
|
171
186
|
- Update the manual.
|
|
172
187
|
|
|
@@ -301,9 +316,7 @@ Description: =======
|
|
|
301
316
|
- Prototype libgeos_c functions in a way that lets py2exe apps import shapely
|
|
302
317
|
(#189).
|
|
303
318
|
|
|
304
|
-
=========================
|
|
305
319
|
1.2 Branched (2009-09-19)
|
|
306
|
-
=========================
|
|
307
320
|
|
|
308
321
|
1.0.12 (2009-04-09)
|
|
309
322
|
-------------------
|
|
@@ -2,6 +2,7 @@ CHANGES.txt
|
|
|
2
2
|
CREDITS.txt
|
|
3
3
|
LICENSE.txt
|
|
4
4
|
README.rst
|
|
5
|
+
VERSION.txt
|
|
5
6
|
setup.cfg
|
|
6
7
|
setup.py
|
|
7
8
|
Shapely.egg-info/PKG-INFO
|
|
@@ -44,7 +45,6 @@ shapely/geometry/polygon.py
|
|
|
44
45
|
shapely/geometry/proxy.py
|
|
45
46
|
shapely/speedups/__init__.py
|
|
46
47
|
shapely/speedups/_speedups.c
|
|
47
|
-
shapely/speedups/_speedups.pyx
|
|
48
48
|
shapely/tests/Array.txt
|
|
49
49
|
shapely/tests/GeoInterface.txt
|
|
50
50
|
shapely/tests/IterOps.txt
|
|
@@ -74,8 +74,10 @@ shapely/tests/test_doctests.py
|
|
|
74
74
|
shapely/tests/test_emptiness.py
|
|
75
75
|
shapely/tests/test_equality.py
|
|
76
76
|
shapely/tests/test_geomseq.py
|
|
77
|
+
shapely/tests/test_getitem.py
|
|
77
78
|
shapely/tests/test_linear_referencing.py
|
|
78
79
|
shapely/tests/test_mapping.py
|
|
80
|
+
shapely/tests/test_ndarrays.py
|
|
79
81
|
shapely/tests/test_prepared.py
|
|
80
82
|
shapely/tests/test_products_z.py
|
|
81
83
|
shapely/tests/test_singularity.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2.15
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
.. _manual:
|
|
2
|
+
|
|
1
3
|
=======================
|
|
2
4
|
The Shapely User Manual
|
|
3
5
|
=======================
|
|
4
6
|
|
|
5
7
|
:Author: Sean Gillies, <sean.gillies@gmail.com>
|
|
6
|
-
:Revision: 1.2.
|
|
7
|
-
:Date:
|
|
8
|
+
:Revision: 1.2.14
|
|
9
|
+
:Date: 21 January 2012
|
|
8
10
|
:Copyright:
|
|
9
11
|
This work is licensed under a `Creative Commons Attribution 3.0
|
|
10
12
|
United States License`__.
|
|
@@ -15,8 +17,6 @@ The Shapely User Manual
|
|
|
15
17
|
This document explains how to use the Shapely Python package for
|
|
16
18
|
computational geometry.
|
|
17
19
|
|
|
18
|
-
.. sectnum::
|
|
19
|
-
|
|
20
20
|
.. _intro:
|
|
21
21
|
|
|
22
22
|
Introduction
|
|
@@ -267,6 +267,13 @@ Coordinate values are accessed via `coords`, `x`, `y`, and `z` properties.
|
|
|
267
267
|
>>> point.y
|
|
268
268
|
0.0
|
|
269
269
|
|
|
270
|
+
Coordinates may also be sliced. `New in version 1.2.14`.
|
|
271
|
+
|
|
272
|
+
.. sourcecode:: pycon
|
|
273
|
+
|
|
274
|
+
>>> point.coords[:]
|
|
275
|
+
[(0.0, 0.0)]
|
|
276
|
+
|
|
270
277
|
The `Point` constructor also accepts another `Point` instance, thereby making
|
|
271
278
|
a copy.
|
|
272
279
|
|
|
@@ -323,6 +330,15 @@ The defining coordinate values are accessed via the `coords` property.
|
|
|
323
330
|
>>> list(line.coords)
|
|
324
331
|
[(0.0, 0.0), (1.0, 1.0)]
|
|
325
332
|
|
|
333
|
+
Coordinates may also be sliced. `New in version 1.2.14`.
|
|
334
|
+
|
|
335
|
+
.. sourcecode:: pycon
|
|
336
|
+
|
|
337
|
+
>>> point.coords[:]
|
|
338
|
+
[(0.0, 0.0), (1.0, 1.0)]
|
|
339
|
+
>>> point.coords[1:]
|
|
340
|
+
[(1.0, 1.0)]
|
|
341
|
+
|
|
326
342
|
The constructor also accepts another `LineString` instance, thereby making a
|
|
327
343
|
copy.
|
|
328
344
|
|
|
@@ -509,12 +525,11 @@ To obtain a polygon with a known orientation, use
|
|
|
509
525
|
Collections
|
|
510
526
|
-----------
|
|
511
527
|
|
|
512
|
-
Shapely provides frozenset_-like, immutable collections of geometric objects.
|
|
513
|
-
The collections may be homogeneous (`MultiPoint` etc.) or heterogeneous.
|
|
514
|
-
|
|
515
528
|
Heterogeneous collections of geometric objects may result from some Shapely
|
|
516
529
|
operations. For example, two `LineStrings` may intersect along a line and at a
|
|
517
|
-
point.
|
|
530
|
+
point. To represent these kind of results, Shapely provides frozenset_-like,
|
|
531
|
+
immutable collections of geometric objects. The collections may be homogeneous
|
|
532
|
+
(`MultiPoint` etc.) or heterogeneous.
|
|
518
533
|
|
|
519
534
|
.. sourcecode:: python
|
|
520
535
|
|
|
@@ -547,6 +562,22 @@ the iterator protocol using ``in`` or ``list()``.
|
|
|
547
562
|
[<shapely.geometry.point.Point object at 0x...>,
|
|
548
563
|
<shapely.geometry.linestring.LineString object at 0x...>]
|
|
549
564
|
|
|
565
|
+
Homogeneous collections can also be sliced, resulting in a new object of the
|
|
566
|
+
same type.
|
|
567
|
+
|
|
568
|
+
.. sourcecode:: pycon
|
|
569
|
+
|
|
570
|
+
>>> from shapely.geometry import MultiPoint
|
|
571
|
+
>>> m = MultiPoint([(0, 0), (1, 1), (1,2), (2,2)])
|
|
572
|
+
>>> m[:1].wkt
|
|
573
|
+
'MULTIPOINT (0.0000000000000000 0.0000000000000000)'
|
|
574
|
+
>>> m[3:].wkt
|
|
575
|
+
'MULTIPOINT (2.0000000000000000 2.0000000000000000)'
|
|
576
|
+
>>> m[4:].wkt
|
|
577
|
+
'GEOMETRYCOLLECTION EMPTY'
|
|
578
|
+
|
|
579
|
+
`New in version 1.2.14`.
|
|
580
|
+
|
|
550
581
|
.. note::
|
|
551
582
|
|
|
552
583
|
When possible, it is better to use one of the homogeneous collection types
|
|
@@ -1824,7 +1855,7 @@ Conclusion
|
|
|
1824
1855
|
We hope that you will enjoy and profit from using Shapely. Questions and
|
|
1825
1856
|
comments are welcome on the GIS-Python email list_. This manual will be updated
|
|
1826
1857
|
and improved regularly. Its source is available at
|
|
1827
|
-
http://github.com/
|
|
1858
|
+
http://github.com/Toblerity/Shapely/tree/master/docs/.
|
|
1828
1859
|
|
|
1829
1860
|
|
|
1830
1861
|
References
|
|
@@ -1857,7 +1888,7 @@ References
|
|
|
1857
1888
|
1973, pp. 112-122.
|
|
1858
1889
|
|
|
1859
1890
|
|
|
1860
|
-
.. _GEOS: http://
|
|
1891
|
+
.. _GEOS: http://trac.osgeo.org/geos/
|
|
1861
1892
|
.. _Java Topology Suite: http://www.vividsolutions.com/jts/jtshome.htm
|
|
1862
1893
|
.. _JTS: http://www.vividsolutions.com/jts/jtshome.htm
|
|
1863
1894
|
.. _PostGIS: http://postgis.refractions.net
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import glob
|
|
2
1
|
import warnings
|
|
3
2
|
|
|
4
3
|
try:
|
|
@@ -11,19 +10,35 @@ except:
|
|
|
11
10
|
|
|
12
11
|
from distutils.errors import CCompilerError, DistutilsExecError, \
|
|
13
12
|
DistutilsPlatformError
|
|
13
|
+
import glob
|
|
14
|
+
import os
|
|
15
|
+
import platform
|
|
14
16
|
from setuptools.extension import Extension
|
|
15
|
-
from setuptools.command.build_ext import build_ext
|
|
16
17
|
from setuptools import setup, find_packages
|
|
18
|
+
import subprocess
|
|
17
19
|
import sys
|
|
18
|
-
import platform
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
# Parse the version from the shapely module
|
|
22
|
+
for line in open('shapely/__init__.py', 'rb'):
|
|
23
|
+
if line.find("__version__") >= 0:
|
|
24
|
+
version = line.split("=")[1].strip()
|
|
25
|
+
version = version.strip('"')
|
|
26
|
+
version = version.strip("'")
|
|
27
|
+
continue
|
|
28
|
+
|
|
29
|
+
open('VERSION.txt', 'wb').write(version)
|
|
30
|
+
|
|
31
|
+
readme_text = open('README.rst', 'rb').read()
|
|
32
|
+
|
|
33
|
+
# Skip the first line of the changes file to get the right header level
|
|
34
|
+
f = open('CHANGES.txt', 'rb')
|
|
35
|
+
f.readline()
|
|
36
|
+
changes_text = f.read()
|
|
22
37
|
|
|
23
38
|
setup_args = dict(
|
|
24
39
|
metadata_version = '1.2',
|
|
25
40
|
name = 'Shapely',
|
|
26
|
-
version =
|
|
41
|
+
version = version,
|
|
27
42
|
requires_python = '>=2.5,<3',
|
|
28
43
|
requires_external = 'libgeos_c (>=3.1)',
|
|
29
44
|
description = 'Geometric objects, predicates, and operations',
|
|
@@ -77,41 +92,53 @@ else:
|
|
|
77
92
|
class BuildFailed(Exception):
|
|
78
93
|
pass
|
|
79
94
|
|
|
80
|
-
|
|
81
|
-
#
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
try:
|
|
96
|
+
# try to use Cython if present
|
|
97
|
+
from Cython.Distutils import build_ext
|
|
98
|
+
except ImportError:
|
|
99
|
+
# else try to build from existing .c file
|
|
100
|
+
from setuptools.command.build_ext import build_ext as distutils_build_ext
|
|
101
|
+
|
|
102
|
+
class build_ext(distutils_build_ext):
|
|
103
|
+
# This class allows C extension building to fail.
|
|
104
|
+
|
|
105
|
+
def run(self):
|
|
106
|
+
try:
|
|
107
|
+
distutils_build_ext.run(self)
|
|
108
|
+
except DistutilsPlatformError, x:
|
|
109
|
+
raise BuildFailed(x)
|
|
110
|
+
|
|
111
|
+
def build_extension(self, ext):
|
|
112
|
+
try:
|
|
113
|
+
distutils_build_ext.build_extension(self, ext)
|
|
114
|
+
except ext_errors, x:
|
|
115
|
+
raise BuildFailed(x)
|
|
116
|
+
|
|
117
|
+
if (hasattr(platform, 'python_implementation')
|
|
102
118
|
and platform.python_implementation() == 'PyPy'):
|
|
103
|
-
# python_implementation
|
|
119
|
+
# python_implementation is only available since 2.6
|
|
104
120
|
ext_modules = []
|
|
105
|
-
else:
|
|
106
|
-
ext_modules = [
|
|
107
|
-
Extension("shapely.speedups._speedups",
|
|
108
|
-
["shapely/speedups/_speedups.c"], libraries=['geos_c']),
|
|
109
|
-
]
|
|
110
121
|
|
|
122
|
+
elif sys.platform == 'win32':
|
|
123
|
+
libraries = ['geos']
|
|
124
|
+
else:
|
|
125
|
+
libraries = ['geos_c']
|
|
126
|
+
|
|
127
|
+
if os.path.exists("MANIFEST.in"):
|
|
128
|
+
subprocess.check_call(["cython", "shapely/speedups/_speedups.pyx"])
|
|
129
|
+
if not os.path.exists("shapely/speedups/_speedups.c"):
|
|
130
|
+
raise RuntimeError("Failed to generate C extension from PYX")
|
|
131
|
+
|
|
132
|
+
ext_modules = [
|
|
133
|
+
Extension(
|
|
134
|
+
"shapely.speedups._speedups",
|
|
135
|
+
["shapely/speedups/_speedups.c"],
|
|
136
|
+
libraries=libraries )]
|
|
137
|
+
|
|
111
138
|
try:
|
|
112
139
|
# try building with speedups
|
|
113
140
|
setup(
|
|
114
|
-
cmdclass={'build_ext':
|
|
141
|
+
cmdclass={'build_ext': build_ext},
|
|
115
142
|
ext_modules=ext_modules,
|
|
116
143
|
**setup_args
|
|
117
144
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.2.15"
|