shapely 1.2.18__tar.gz → 1.3.0__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.18 → Shapely-1.3.0}/CHANGES.txt +12 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/CREDITS.txt +17 -2
- {Shapely-1.2.18/Shapely.egg-info → Shapely-1.3.0}/PKG-INFO +53 -15
- {Shapely-1.2.18 → Shapely-1.3.0}/README.rst +18 -11
- {Shapely-1.2.18 → Shapely-1.3.0/Shapely.egg-info}/PKG-INFO +53 -15
- {Shapely-1.2.18 → Shapely-1.3.0}/Shapely.egg-info/SOURCES.txt +19 -23
- Shapely-1.3.0/VERSION.txt +1 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/docs/manual.txt +58 -24
- Shapely-1.3.0/setup.py +226 -0
- Shapely-1.3.0/shapely/__init__.py +1 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/affinity.py +4 -1
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/algorithms/cga.py +0 -1
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/coords.py +9 -6
- Shapely-1.3.0/shapely/ctypes_declarations.py +455 -0
- Shapely-1.3.0/shapely/geometry/__init__.py +20 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/base.py +141 -39
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/geo.py +6 -6
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/linestring.py +42 -30
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/multilinestring.py +7 -2
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/multipoint.py +8 -3
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/multipolygon.py +7 -2
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/point.py +18 -17
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/polygon.py +24 -9
- Shapely-1.3.0/shapely/geos.py +729 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/impl.py +26 -23
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/iterops.py +3 -1
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/ops.py +48 -40
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/speedups/__init__.py +3 -2
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/speedups/_speedups.c +134 -114
- Shapely-1.3.0/shapely/tests/__init__.py +81 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/binascii_hex.txt +9 -9
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_affinity.py +44 -32
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_box.py +6 -1
- Shapely-1.3.0/shapely/tests/test_cga.py +37 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_collection.py +9 -6
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_delegated.py +10 -2
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_dlls.py +8 -4
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_doctests.py +11 -10
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_emptiness.py +3 -2
- Shapely-1.3.0/shapely/tests/test_equality.py +29 -0
- Shapely-1.3.0/shapely/tests/test_geointerface.py +74 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_geomseq.py +4 -2
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_getitem.py +34 -22
- Shapely-1.3.0/shapely/tests/test_invalid_geometries.py +30 -0
- Shapely-1.3.0/shapely/tests/test_iterops.py +47 -0
- Shapely-1.3.0/shapely/tests/test_linear_referencing.py +72 -0
- Shapely-1.3.0/shapely/tests/test_linemerge.py +52 -0
- Shapely-1.3.0/shapely/tests/test_linestring.py +101 -0
- Shapely-1.3.0/shapely/tests/test_locale.py +56 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_mapping.py +5 -3
- Shapely-1.3.0/shapely/tests/test_multilinestring.py +61 -0
- Shapely-1.3.0/shapely/tests/test_multipoint.py +73 -0
- Shapely-1.3.0/shapely/tests/test_multipolygon.py +72 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_ndarrays.py +28 -9
- Shapely-1.3.0/shapely/tests/test_operations.py +70 -0
- Shapely-1.3.0/shapely/tests/test_operators.py +18 -0
- Shapely-1.3.0/shapely/tests/test_persist.py +34 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_pickle.py +12 -5
- Shapely-1.3.0/shapely/tests/test_point.py +139 -0
- Shapely-1.3.0/shapely/tests/test_polygon.py +186 -0
- Shapely-1.3.0/shapely/tests/test_polygonize.py +49 -0
- Shapely-1.3.0/shapely/tests/test_predicates.py +34 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_prepared.py +8 -5
- Shapely-1.3.0/shapely/tests/test_products_z.py +17 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_singularity.py +7 -3
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_speedups.py +13 -12
- Shapely-1.3.0/shapely/tests/test_styles.py +20 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_transform.py +41 -24
- Shapely-1.3.0/shapely/tests/test_union.py +72 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_validation.py +5 -3
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/test_xy.py +8 -5
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/tests/threading_test.py +20 -17
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/validation.py +2 -1
- Shapely-1.3.0/shapely/wkb.py +37 -0
- Shapely-1.3.0/shapely/wkt.py +26 -0
- Shapely-1.2.18/VERSION.txt +0 -1
- Shapely-1.2.18/setup.py +0 -174
- Shapely-1.2.18/shapely/__init__.py +0 -1
- Shapely-1.2.18/shapely/ctypes_declarations.py +0 -292
- Shapely-1.2.18/shapely/geometry/__init__.py +0 -20
- Shapely-1.2.18/shapely/geos.py +0 -402
- Shapely-1.2.18/shapely/tests/Array.txt +0 -86
- Shapely-1.2.18/shapely/tests/GeoInterface.txt +0 -69
- Shapely-1.2.18/shapely/tests/IterOps.txt +0 -31
- Shapely-1.2.18/shapely/tests/LineString.txt +0 -134
- Shapely-1.2.18/shapely/tests/MultiLineString.txt +0 -81
- Shapely-1.2.18/shapely/tests/MultiPoint.txt +0 -101
- Shapely-1.2.18/shapely/tests/MultiPolygon.txt +0 -71
- Shapely-1.2.18/shapely/tests/Operations.txt +0 -89
- Shapely-1.2.18/shapely/tests/Operators.txt +0 -18
- Shapely-1.2.18/shapely/tests/Persist.txt +0 -35
- Shapely-1.2.18/shapely/tests/Point.txt +0 -148
- Shapely-1.2.18/shapely/tests/Polygon.txt +0 -143
- Shapely-1.2.18/shapely/tests/Predicates.txt +0 -51
- Shapely-1.2.18/shapely/tests/__init__.py +0 -36
- Shapely-1.2.18/shapely/tests/attribute-chains.txt +0 -38
- Shapely-1.2.18/shapely/tests/cascaded_union.txt +0 -26
- Shapely-1.2.18/shapely/tests/dimensions.txt +0 -17
- Shapely-1.2.18/shapely/tests/invalid_intersection.txt +0 -29
- Shapely-1.2.18/shapely/tests/linemerge.txt +0 -61
- Shapely-1.2.18/shapely/tests/polygonize.txt +0 -40
- Shapely-1.2.18/shapely/tests/test_cga.py +0 -33
- Shapely-1.2.18/shapely/tests/test_equality.py +0 -30
- Shapely-1.2.18/shapely/tests/test_linear_referencing.py +0 -67
- Shapely-1.2.18/shapely/tests/test_products_z.py +0 -14
- Shapely-1.2.18/shapely/tests/test_unary_union.py +0 -40
- Shapely-1.2.18/shapely/tests/wkt_locale.txt +0 -28
- Shapely-1.2.18/shapely/wkb.py +0 -24
- Shapely-1.2.18/shapely/wkt.py +0 -24
- {Shapely-1.2.18 → Shapely-1.3.0}/LICENSE.txt +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/Shapely.egg-info/dependency_links.txt +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/Shapely.egg-info/top_level.txt +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/setup.cfg +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/algorithms/__init__.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/examples/__init__.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/examples/dissolve.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/examples/geoms.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/examples/intersect.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/examples/world.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/ftools.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/collection.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/geometry/proxy.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/linref.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/predicates.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/prepared.py +0 -0
- {Shapely-1.2.18 → Shapely-1.3.0}/shapely/topology.py +0 -0
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Changes
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
1.3.0 (2013-12-31)
|
|
5
|
+
------------------
|
|
6
|
+
- Include support for Python 3.2 and 3.3 (#56), minimum version is now 2.6.
|
|
7
|
+
- Switch to GEOS WKT/WKB Reader/Writer API, with defaults changed to enable 3D
|
|
8
|
+
output dimensions, and to 'trim' WKT output for GEOS >=3.3.0.
|
|
9
|
+
- Use GEOS version instead of GEOS C API version to determine library
|
|
10
|
+
capabilities (#65).
|
|
11
|
+
|
|
12
|
+
1.2.19 (2013-12-30)
|
|
13
|
+
-------------------
|
|
14
|
+
- Add buffering style options (#55).
|
|
15
|
+
|
|
4
16
|
1.2.18 (2013-07-23)
|
|
5
17
|
--------------------
|
|
6
18
|
- Add shapely.ops.transform.
|
|
@@ -10,14 +10,29 @@ Shapely is written by:
|
|
|
10
10
|
|
|
11
11
|
Patches contributed by:
|
|
12
12
|
|
|
13
|
+
* Allan Adair (https://github.com/allanadair)
|
|
13
14
|
* Howard Butler
|
|
15
|
+
* Gabi Davar (https://github.com/mindw)
|
|
16
|
+
* Phil Elson (https://github.com/pelson)
|
|
17
|
+
* Johan Euphrosine (https://github.com/proppy)
|
|
18
|
+
* Bertrand Gervais (https://github.com/BertrandGervais)
|
|
19
|
+
* Marc Jansen (https://github.com/marcjansen)
|
|
20
|
+
* Kelsey Jordahl (https://github.com/kjordahl)
|
|
14
21
|
* Fr |eaigue| d |eaigue| ric Junod
|
|
22
|
+
* Thomas Kluyver (https://github.com/takluyver)
|
|
15
23
|
* Eric Lemoine
|
|
24
|
+
* Naveen Michaud-Agrawal (https://github.com/nmichaud)
|
|
25
|
+
* psagers https://github.com/psagers
|
|
26
|
+
* Jeethu Rao (https://github.com/jeethu)
|
|
27
|
+
* Benjamin Root (https://github.com/WeatherGod)
|
|
28
|
+
* Jason Sanford (https://github.com/JasonSanford)
|
|
29
|
+
* Johannes Schönberger (https://github.com/ahojnnes)
|
|
16
30
|
* Jonathan Tartley
|
|
17
31
|
* Kristian Thy
|
|
18
32
|
* Mike Toews (https://github.com/mwtoews)
|
|
19
|
-
*
|
|
20
|
-
|
|
33
|
+
* Maarten Vermeyen (https://github.com/maarten-vermeyen)
|
|
34
|
+
|
|
35
|
+
See also: https://github.com/Toblerity/Shapely/graphs/contributors.
|
|
21
36
|
|
|
22
37
|
Additional help from:
|
|
23
38
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: Shapely
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Geometric objects, predicates, and operations
|
|
5
5
|
Home-page: https://github.com/Toblerity/Shapely
|
|
6
6
|
Author: Sean Gillies
|
|
@@ -10,8 +10,7 @@ Description: =======
|
|
|
10
10
|
Shapely
|
|
11
11
|
=======
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
Pythonistas.
|
|
13
|
+
Manipulation and analysis of geometric objects in the Cartesian plane.
|
|
15
14
|
|
|
16
15
|
.. image:: http://farm3.staticflickr.com/2738/4511827859_b5822043b7_o_d.png
|
|
17
16
|
:width: 800
|
|
@@ -19,20 +18,19 @@ Description: =======
|
|
|
19
18
|
|
|
20
19
|
Shapely is a BSD-licensed Python package for manipulation and analysis of
|
|
21
20
|
planar geometric objects. It is based on the widely deployed GEOS_ (the engine
|
|
22
|
-
of PostGIS_) and JTS_ (from which GEOS is ported) libraries.
|
|
23
|
-
is traded for the ability to execute with blazing speed. Shapely is not
|
|
21
|
+
of PostGIS_) and JTS_ (from which GEOS is ported) libraries. Shapely is not
|
|
24
22
|
concerned with data formats or coordinate systems, but can be readily
|
|
25
23
|
integrated with packages that are. For more details, see:
|
|
26
24
|
|
|
27
25
|
* Shapely manual_
|
|
28
26
|
* Shapely `example apps`_
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
Requirements
|
|
31
29
|
============
|
|
32
30
|
|
|
33
|
-
Shapely 1.
|
|
31
|
+
Shapely 1.3 requires
|
|
34
32
|
|
|
35
|
-
* Python >=2.
|
|
33
|
+
* Python >=2.6 (including Python 3.x)
|
|
36
34
|
* libgeos_c >=3.1 (3.0 and below have not been tested, YMMV)
|
|
37
35
|
|
|
38
36
|
Installation
|
|
@@ -123,13 +121,22 @@ Description: =======
|
|
|
123
121
|
>>> print(json.dumps(mapping(s)))
|
|
124
122
|
{"type": "Point", "coordinates": [0.0, 0.0]}
|
|
125
123
|
|
|
126
|
-
Testing
|
|
127
|
-
|
|
124
|
+
Development and Testing
|
|
125
|
+
=======================
|
|
126
|
+
|
|
127
|
+
Dependecies for developing Shapely are listed in requirements-dev.txt. Cython
|
|
128
|
+
and Numpy are not required for production installations, only for development.
|
|
129
|
+
Use of a virtual environment is strongly recommended.::
|
|
130
|
+
|
|
131
|
+
$ virtualenv .
|
|
132
|
+
$ source bin/activate
|
|
133
|
+
(env)$ pip install -r requirements-dev.txt
|
|
134
|
+
(env)$ python setup.py develop
|
|
128
135
|
|
|
129
136
|
Shapely uses a Zope-stye suite of unittests and doctests, exercised via
|
|
130
137
|
setup.py.::
|
|
131
138
|
|
|
132
|
-
$ python setup.py test
|
|
139
|
+
(env)$ python setup.py test
|
|
133
140
|
|
|
134
141
|
Nosetests won't run the tests properly; Zope doctest suites are not currently
|
|
135
142
|
supported well by nose.
|
|
@@ -142,7 +149,7 @@ Description: =======
|
|
|
142
149
|
|
|
143
150
|
Bugs may be reported at https://github.com/Toblerity/Shapely.
|
|
144
151
|
|
|
145
|
-
|
|
152
|
+
.. include:: ../CREDITS.txt
|
|
146
153
|
|
|
147
154
|
.. _JTS: http://www.vividsolutions.com/jts/jtshome.htm
|
|
148
155
|
.. _PostGIS: http://postgis.org
|
|
@@ -164,14 +171,29 @@ Description: =======
|
|
|
164
171
|
|
|
165
172
|
Patches contributed by:
|
|
166
173
|
|
|
174
|
+
* Allan Adair (https://github.com/allanadair)
|
|
167
175
|
* Howard Butler
|
|
176
|
+
* Gabi Davar (https://github.com/mindw)
|
|
177
|
+
* Phil Elson (https://github.com/pelson)
|
|
178
|
+
* Johan Euphrosine (https://github.com/proppy)
|
|
179
|
+
* Bertrand Gervais (https://github.com/BertrandGervais)
|
|
180
|
+
* Marc Jansen (https://github.com/marcjansen)
|
|
181
|
+
* Kelsey Jordahl (https://github.com/kjordahl)
|
|
168
182
|
* Fr |eaigue| d |eaigue| ric Junod
|
|
183
|
+
* Thomas Kluyver (https://github.com/takluyver)
|
|
169
184
|
* Eric Lemoine
|
|
185
|
+
* Naveen Michaud-Agrawal (https://github.com/nmichaud)
|
|
186
|
+
* psagers https://github.com/psagers
|
|
187
|
+
* Jeethu Rao (https://github.com/jeethu)
|
|
188
|
+
* Benjamin Root (https://github.com/WeatherGod)
|
|
189
|
+
* Jason Sanford (https://github.com/JasonSanford)
|
|
190
|
+
* Johannes Schönberger (https://github.com/ahojnnes)
|
|
170
191
|
* Jonathan Tartley
|
|
171
192
|
* Kristian Thy
|
|
172
193
|
* Mike Toews (https://github.com/mwtoews)
|
|
173
|
-
*
|
|
174
|
-
|
|
194
|
+
* Maarten Vermeyen (https://github.com/maarten-vermeyen)
|
|
195
|
+
|
|
196
|
+
See also: https://github.com/Toblerity/Shapely/graphs/contributors.
|
|
175
197
|
|
|
176
198
|
Additional help from:
|
|
177
199
|
|
|
@@ -190,6 +212,18 @@ Description: =======
|
|
|
190
212
|
Changes
|
|
191
213
|
=======
|
|
192
214
|
|
|
215
|
+
1.3.0 (2013-12-31)
|
|
216
|
+
------------------
|
|
217
|
+
- Include support for Python 3.2 and 3.3 (#56), minimum version is now 2.6.
|
|
218
|
+
- Switch to GEOS WKT/WKB Reader/Writer API, with defaults changed to enable 3D
|
|
219
|
+
output dimensions, and to 'trim' WKT output for GEOS >=3.3.0.
|
|
220
|
+
- Use GEOS version instead of GEOS C API version to determine library
|
|
221
|
+
capabilities (#65).
|
|
222
|
+
|
|
223
|
+
1.2.19 (2013-12-30)
|
|
224
|
+
-------------------
|
|
225
|
+
- Add buffering style options (#55).
|
|
226
|
+
|
|
193
227
|
1.2.18 (2013-07-23)
|
|
194
228
|
--------------------
|
|
195
229
|
- Add shapely.ops.transform.
|
|
@@ -459,5 +493,9 @@ Classifier: Intended Audience :: Developers
|
|
|
459
493
|
Classifier: Intended Audience :: Science/Research
|
|
460
494
|
Classifier: License :: OSI Approved :: BSD License
|
|
461
495
|
Classifier: Operating System :: OS Independent
|
|
462
|
-
Classifier: Programming Language :: Python
|
|
496
|
+
Classifier: Programming Language :: Python :: 2.6
|
|
497
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
498
|
+
Classifier: Programming Language :: Python :: 3
|
|
463
499
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
500
|
+
Requires: Python (>=2.6)
|
|
501
|
+
Requires: libgeos_c (>=3.1)
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Shapely
|
|
3
3
|
=======
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
Pythonistas.
|
|
5
|
+
Manipulation and analysis of geometric objects in the Cartesian plane.
|
|
7
6
|
|
|
8
7
|
.. image:: http://farm3.staticflickr.com/2738/4511827859_b5822043b7_o_d.png
|
|
9
8
|
:width: 800
|
|
@@ -11,20 +10,19 @@ Pythonistas.
|
|
|
11
10
|
|
|
12
11
|
Shapely is a BSD-licensed Python package for manipulation and analysis of
|
|
13
12
|
planar geometric objects. It is based on the widely deployed GEOS_ (the engine
|
|
14
|
-
of PostGIS_) and JTS_ (from which GEOS is ported) libraries.
|
|
15
|
-
is traded for the ability to execute with blazing speed. Shapely is not
|
|
13
|
+
of PostGIS_) and JTS_ (from which GEOS is ported) libraries. Shapely is not
|
|
16
14
|
concerned with data formats or coordinate systems, but can be readily
|
|
17
15
|
integrated with packages that are. For more details, see:
|
|
18
16
|
|
|
19
17
|
* Shapely manual_
|
|
20
18
|
* Shapely `example apps`_
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
Requirements
|
|
23
21
|
============
|
|
24
22
|
|
|
25
|
-
Shapely 1.
|
|
23
|
+
Shapely 1.3 requires
|
|
26
24
|
|
|
27
|
-
* Python >=2.
|
|
25
|
+
* Python >=2.6 (including Python 3.x)
|
|
28
26
|
* libgeos_c >=3.1 (3.0 and below have not been tested, YMMV)
|
|
29
27
|
|
|
30
28
|
Installation
|
|
@@ -115,13 +113,22 @@ after GeoJSON.
|
|
|
115
113
|
>>> print(json.dumps(mapping(s)))
|
|
116
114
|
{"type": "Point", "coordinates": [0.0, 0.0]}
|
|
117
115
|
|
|
118
|
-
Testing
|
|
119
|
-
|
|
116
|
+
Development and Testing
|
|
117
|
+
=======================
|
|
118
|
+
|
|
119
|
+
Dependecies for developing Shapely are listed in requirements-dev.txt. Cython
|
|
120
|
+
and Numpy are not required for production installations, only for development.
|
|
121
|
+
Use of a virtual environment is strongly recommended.::
|
|
122
|
+
|
|
123
|
+
$ virtualenv .
|
|
124
|
+
$ source bin/activate
|
|
125
|
+
(env)$ pip install -r requirements-dev.txt
|
|
126
|
+
(env)$ python setup.py develop
|
|
120
127
|
|
|
121
128
|
Shapely uses a Zope-stye suite of unittests and doctests, exercised via
|
|
122
129
|
setup.py.::
|
|
123
130
|
|
|
124
|
-
$ python setup.py test
|
|
131
|
+
(env)$ python setup.py test
|
|
125
132
|
|
|
126
133
|
Nosetests won't run the tests properly; Zope doctest suites are not currently
|
|
127
134
|
supported well by nose.
|
|
@@ -134,7 +141,7 @@ http://lists.gispython.org/mailman/listinfo/community.
|
|
|
134
141
|
|
|
135
142
|
Bugs may be reported at https://github.com/Toblerity/Shapely.
|
|
136
143
|
|
|
137
|
-
.. include:: CREDITS.txt
|
|
144
|
+
.. include:: ../CREDITS.txt
|
|
138
145
|
|
|
139
146
|
.. _JTS: http://www.vividsolutions.com/jts/jtshome.htm
|
|
140
147
|
.. _PostGIS: http://postgis.org
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: Shapely
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Geometric objects, predicates, and operations
|
|
5
5
|
Home-page: https://github.com/Toblerity/Shapely
|
|
6
6
|
Author: Sean Gillies
|
|
@@ -10,8 +10,7 @@ Description: =======
|
|
|
10
10
|
Shapely
|
|
11
11
|
=======
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
Pythonistas.
|
|
13
|
+
Manipulation and analysis of geometric objects in the Cartesian plane.
|
|
15
14
|
|
|
16
15
|
.. image:: http://farm3.staticflickr.com/2738/4511827859_b5822043b7_o_d.png
|
|
17
16
|
:width: 800
|
|
@@ -19,20 +18,19 @@ Description: =======
|
|
|
19
18
|
|
|
20
19
|
Shapely is a BSD-licensed Python package for manipulation and analysis of
|
|
21
20
|
planar geometric objects. It is based on the widely deployed GEOS_ (the engine
|
|
22
|
-
of PostGIS_) and JTS_ (from which GEOS is ported) libraries.
|
|
23
|
-
is traded for the ability to execute with blazing speed. Shapely is not
|
|
21
|
+
of PostGIS_) and JTS_ (from which GEOS is ported) libraries. Shapely is not
|
|
24
22
|
concerned with data formats or coordinate systems, but can be readily
|
|
25
23
|
integrated with packages that are. For more details, see:
|
|
26
24
|
|
|
27
25
|
* Shapely manual_
|
|
28
26
|
* Shapely `example apps`_
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
Requirements
|
|
31
29
|
============
|
|
32
30
|
|
|
33
|
-
Shapely 1.
|
|
31
|
+
Shapely 1.3 requires
|
|
34
32
|
|
|
35
|
-
* Python >=2.
|
|
33
|
+
* Python >=2.6 (including Python 3.x)
|
|
36
34
|
* libgeos_c >=3.1 (3.0 and below have not been tested, YMMV)
|
|
37
35
|
|
|
38
36
|
Installation
|
|
@@ -123,13 +121,22 @@ Description: =======
|
|
|
123
121
|
>>> print(json.dumps(mapping(s)))
|
|
124
122
|
{"type": "Point", "coordinates": [0.0, 0.0]}
|
|
125
123
|
|
|
126
|
-
Testing
|
|
127
|
-
|
|
124
|
+
Development and Testing
|
|
125
|
+
=======================
|
|
126
|
+
|
|
127
|
+
Dependecies for developing Shapely are listed in requirements-dev.txt. Cython
|
|
128
|
+
and Numpy are not required for production installations, only for development.
|
|
129
|
+
Use of a virtual environment is strongly recommended.::
|
|
130
|
+
|
|
131
|
+
$ virtualenv .
|
|
132
|
+
$ source bin/activate
|
|
133
|
+
(env)$ pip install -r requirements-dev.txt
|
|
134
|
+
(env)$ python setup.py develop
|
|
128
135
|
|
|
129
136
|
Shapely uses a Zope-stye suite of unittests and doctests, exercised via
|
|
130
137
|
setup.py.::
|
|
131
138
|
|
|
132
|
-
$ python setup.py test
|
|
139
|
+
(env)$ python setup.py test
|
|
133
140
|
|
|
134
141
|
Nosetests won't run the tests properly; Zope doctest suites are not currently
|
|
135
142
|
supported well by nose.
|
|
@@ -142,7 +149,7 @@ Description: =======
|
|
|
142
149
|
|
|
143
150
|
Bugs may be reported at https://github.com/Toblerity/Shapely.
|
|
144
151
|
|
|
145
|
-
|
|
152
|
+
.. include:: ../CREDITS.txt
|
|
146
153
|
|
|
147
154
|
.. _JTS: http://www.vividsolutions.com/jts/jtshome.htm
|
|
148
155
|
.. _PostGIS: http://postgis.org
|
|
@@ -164,14 +171,29 @@ Description: =======
|
|
|
164
171
|
|
|
165
172
|
Patches contributed by:
|
|
166
173
|
|
|
174
|
+
* Allan Adair (https://github.com/allanadair)
|
|
167
175
|
* Howard Butler
|
|
176
|
+
* Gabi Davar (https://github.com/mindw)
|
|
177
|
+
* Phil Elson (https://github.com/pelson)
|
|
178
|
+
* Johan Euphrosine (https://github.com/proppy)
|
|
179
|
+
* Bertrand Gervais (https://github.com/BertrandGervais)
|
|
180
|
+
* Marc Jansen (https://github.com/marcjansen)
|
|
181
|
+
* Kelsey Jordahl (https://github.com/kjordahl)
|
|
168
182
|
* Fr |eaigue| d |eaigue| ric Junod
|
|
183
|
+
* Thomas Kluyver (https://github.com/takluyver)
|
|
169
184
|
* Eric Lemoine
|
|
185
|
+
* Naveen Michaud-Agrawal (https://github.com/nmichaud)
|
|
186
|
+
* psagers https://github.com/psagers
|
|
187
|
+
* Jeethu Rao (https://github.com/jeethu)
|
|
188
|
+
* Benjamin Root (https://github.com/WeatherGod)
|
|
189
|
+
* Jason Sanford (https://github.com/JasonSanford)
|
|
190
|
+
* Johannes Schönberger (https://github.com/ahojnnes)
|
|
170
191
|
* Jonathan Tartley
|
|
171
192
|
* Kristian Thy
|
|
172
193
|
* Mike Toews (https://github.com/mwtoews)
|
|
173
|
-
*
|
|
174
|
-
|
|
194
|
+
* Maarten Vermeyen (https://github.com/maarten-vermeyen)
|
|
195
|
+
|
|
196
|
+
See also: https://github.com/Toblerity/Shapely/graphs/contributors.
|
|
175
197
|
|
|
176
198
|
Additional help from:
|
|
177
199
|
|
|
@@ -190,6 +212,18 @@ Description: =======
|
|
|
190
212
|
Changes
|
|
191
213
|
=======
|
|
192
214
|
|
|
215
|
+
1.3.0 (2013-12-31)
|
|
216
|
+
------------------
|
|
217
|
+
- Include support for Python 3.2 and 3.3 (#56), minimum version is now 2.6.
|
|
218
|
+
- Switch to GEOS WKT/WKB Reader/Writer API, with defaults changed to enable 3D
|
|
219
|
+
output dimensions, and to 'trim' WKT output for GEOS >=3.3.0.
|
|
220
|
+
- Use GEOS version instead of GEOS C API version to determine library
|
|
221
|
+
capabilities (#65).
|
|
222
|
+
|
|
223
|
+
1.2.19 (2013-12-30)
|
|
224
|
+
-------------------
|
|
225
|
+
- Add buffering style options (#55).
|
|
226
|
+
|
|
193
227
|
1.2.18 (2013-07-23)
|
|
194
228
|
--------------------
|
|
195
229
|
- Add shapely.ops.transform.
|
|
@@ -459,5 +493,9 @@ Classifier: Intended Audience :: Developers
|
|
|
459
493
|
Classifier: Intended Audience :: Science/Research
|
|
460
494
|
Classifier: License :: OSI Approved :: BSD License
|
|
461
495
|
Classifier: Operating System :: OS Independent
|
|
462
|
-
Classifier: Programming Language :: Python
|
|
496
|
+
Classifier: Programming Language :: Python :: 2.6
|
|
497
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
498
|
+
Classifier: Programming Language :: Python :: 3
|
|
463
499
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
500
|
+
Requires: Python (>=2.6)
|
|
501
|
+
Requires: libgeos_c (>=3.1)
|
|
@@ -3,7 +3,6 @@ CREDITS.txt
|
|
|
3
3
|
LICENSE.txt
|
|
4
4
|
README.rst
|
|
5
5
|
VERSION.txt
|
|
6
|
-
setup.cfg
|
|
7
6
|
setup.py
|
|
8
7
|
Shapely.egg-info/PKG-INFO
|
|
9
8
|
Shapely.egg-info/SOURCES.txt
|
|
@@ -46,27 +45,8 @@ shapely/geometry/polygon.py
|
|
|
46
45
|
shapely/geometry/proxy.py
|
|
47
46
|
shapely/speedups/__init__.py
|
|
48
47
|
shapely/speedups/_speedups.c
|
|
49
|
-
shapely/tests/Array.txt
|
|
50
|
-
shapely/tests/GeoInterface.txt
|
|
51
|
-
shapely/tests/IterOps.txt
|
|
52
|
-
shapely/tests/LineString.txt
|
|
53
|
-
shapely/tests/MultiLineString.txt
|
|
54
|
-
shapely/tests/MultiPoint.txt
|
|
55
|
-
shapely/tests/MultiPolygon.txt
|
|
56
|
-
shapely/tests/Operations.txt
|
|
57
|
-
shapely/tests/Operators.txt
|
|
58
|
-
shapely/tests/Persist.txt
|
|
59
|
-
shapely/tests/Point.txt
|
|
60
|
-
shapely/tests/Polygon.txt
|
|
61
|
-
shapely/tests/Predicates.txt
|
|
62
48
|
shapely/tests/__init__.py
|
|
63
|
-
shapely/tests/attribute-chains.txt
|
|
64
49
|
shapely/tests/binascii_hex.txt
|
|
65
|
-
shapely/tests/cascaded_union.txt
|
|
66
|
-
shapely/tests/dimensions.txt
|
|
67
|
-
shapely/tests/invalid_intersection.txt
|
|
68
|
-
shapely/tests/linemerge.txt
|
|
69
|
-
shapely/tests/polygonize.txt
|
|
70
50
|
shapely/tests/test_affinity.py
|
|
71
51
|
shapely/tests/test_box.py
|
|
72
52
|
shapely/tests/test_cga.py
|
|
@@ -76,19 +56,35 @@ shapely/tests/test_dlls.py
|
|
|
76
56
|
shapely/tests/test_doctests.py
|
|
77
57
|
shapely/tests/test_emptiness.py
|
|
78
58
|
shapely/tests/test_equality.py
|
|
59
|
+
shapely/tests/test_geointerface.py
|
|
79
60
|
shapely/tests/test_geomseq.py
|
|
80
61
|
shapely/tests/test_getitem.py
|
|
62
|
+
shapely/tests/test_invalid_geometries.py
|
|
63
|
+
shapely/tests/test_iterops.py
|
|
81
64
|
shapely/tests/test_linear_referencing.py
|
|
65
|
+
shapely/tests/test_linemerge.py
|
|
66
|
+
shapely/tests/test_linestring.py
|
|
67
|
+
shapely/tests/test_locale.py
|
|
82
68
|
shapely/tests/test_mapping.py
|
|
69
|
+
shapely/tests/test_multilinestring.py
|
|
70
|
+
shapely/tests/test_multipoint.py
|
|
71
|
+
shapely/tests/test_multipolygon.py
|
|
83
72
|
shapely/tests/test_ndarrays.py
|
|
73
|
+
shapely/tests/test_operations.py
|
|
74
|
+
shapely/tests/test_operators.py
|
|
75
|
+
shapely/tests/test_persist.py
|
|
84
76
|
shapely/tests/test_pickle.py
|
|
77
|
+
shapely/tests/test_point.py
|
|
78
|
+
shapely/tests/test_polygon.py
|
|
79
|
+
shapely/tests/test_polygonize.py
|
|
80
|
+
shapely/tests/test_predicates.py
|
|
85
81
|
shapely/tests/test_prepared.py
|
|
86
82
|
shapely/tests/test_products_z.py
|
|
87
83
|
shapely/tests/test_singularity.py
|
|
88
84
|
shapely/tests/test_speedups.py
|
|
85
|
+
shapely/tests/test_styles.py
|
|
89
86
|
shapely/tests/test_transform.py
|
|
90
|
-
shapely/tests/
|
|
87
|
+
shapely/tests/test_union.py
|
|
91
88
|
shapely/tests/test_validation.py
|
|
92
89
|
shapely/tests/test_xy.py
|
|
93
|
-
shapely/tests/threading_test.py
|
|
94
|
-
shapely/tests/wkt_locale.txt
|
|
90
|
+
shapely/tests/threading_test.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.3.0
|
|
@@ -5,7 +5,7 @@ The Shapely User Manual
|
|
|
5
5
|
=======================
|
|
6
6
|
|
|
7
7
|
:Author: Sean Gillies, <sean.gillies@gmail.com>
|
|
8
|
-
:Version:
|
|
8
|
+
:Version: 1.2 and 1.3
|
|
9
9
|
:Date: |today|
|
|
10
10
|
:Copyright:
|
|
11
11
|
This work is licensed under a `Creative Commons Attribution 3.0
|
|
@@ -778,9 +778,7 @@ point at a given distance along the object.
|
|
|
778
778
|
|
|
779
779
|
.. note::
|
|
780
780
|
|
|
781
|
-
Linear referencing methods require
|
|
782
|
-
specifically, a GEOS C API version > (1, 6, 0). This version tuple is
|
|
783
|
-
surfaced in Shapely as :data:`shapely.geos.geos_capi_version`.
|
|
781
|
+
Linear referencing methods require GEOS 3.2.0 or later.
|
|
784
782
|
|
|
785
783
|
.. method:: object.interpolate(distance[, normalized=False])
|
|
786
784
|
|
|
@@ -1389,11 +1387,47 @@ Constructive Methods
|
|
|
1389
1387
|
Shapely geometric object have several methods that yield new objects not
|
|
1390
1388
|
derived from set-theoretic analysis.
|
|
1391
1389
|
|
|
1392
|
-
.. method:: object.buffer(distance, resolution=16)
|
|
1390
|
+
.. method:: object.buffer(distance, resolution=16, cap_style=1, join_style=1, mitre_limit=1.0)
|
|
1393
1391
|
|
|
1394
1392
|
Returns an approximate representation of all points within a given `distance`
|
|
1395
1393
|
of the this geometric object.
|
|
1396
1394
|
|
|
1395
|
+
The styles of caps are specified by integer values: 1 (round), 2 (flat),
|
|
1396
|
+
3 (square). These values are also enumerated by the object
|
|
1397
|
+
:class:`shapely.geometry.CAP_STYLE` (see below).
|
|
1398
|
+
|
|
1399
|
+
The styles of joins between offset segments are specified by integer values:
|
|
1400
|
+
1 (round), 2 (mitre), and 3 (bevel). These values are also enumerated by the
|
|
1401
|
+
object :class:`shapely.geometry.JOIN_STYLE` (see below).
|
|
1402
|
+
|
|
1403
|
+
.. data:: shapely.geometry.CAP_STYLE
|
|
1404
|
+
|
|
1405
|
+
========= =====
|
|
1406
|
+
Attribute Value
|
|
1407
|
+
========= =====
|
|
1408
|
+
round 1
|
|
1409
|
+
flat 2
|
|
1410
|
+
square 3
|
|
1411
|
+
========= =====
|
|
1412
|
+
|
|
1413
|
+
.. data:: shapely.geometry.JOIN_STYLE
|
|
1414
|
+
|
|
1415
|
+
========= =====
|
|
1416
|
+
Attribute Value
|
|
1417
|
+
========= =====
|
|
1418
|
+
round 1
|
|
1419
|
+
mitre 2
|
|
1420
|
+
bevel 3
|
|
1421
|
+
========= =====
|
|
1422
|
+
|
|
1423
|
+
.. sourcecode:: pycon
|
|
1424
|
+
|
|
1425
|
+
>>> from shapely.geometry import CAP_STYLE, JOIN_STYLE
|
|
1426
|
+
>>> CAP_STYLE.flat
|
|
1427
|
+
2
|
|
1428
|
+
>>> JOIN_STYLE.bevel
|
|
1429
|
+
3
|
|
1430
|
+
|
|
1397
1431
|
A positive distance has an effect of dilation; a negative distance, erosion.
|
|
1398
1432
|
The optional `resolution` argument determines the number of segments used to
|
|
1399
1433
|
approximate a quarter circle around a point.
|
|
@@ -1494,8 +1528,9 @@ Figure 10. Convex hull (blue) of 2 points (left) and of 6 points (right).
|
|
|
1494
1528
|
'right'. The resolution of the offset around each vertex of the object is
|
|
1495
1529
|
parameterized as in the buffer method.
|
|
1496
1530
|
|
|
1497
|
-
The
|
|
1498
|
-
2 (mitre
|
|
1531
|
+
The join style is for outside corners between line segments. Accepted integer
|
|
1532
|
+
values are 1 (round), 2 (mitre), and 3 (bevel). See also
|
|
1533
|
+
:data:`shapely.geometry.JOIN_STYLE`.
|
|
1499
1534
|
|
|
1500
1535
|
Severely mitered corners can be controlled by the mitre_limit parameter
|
|
1501
1536
|
(spelled in British English, en-gb). The ratio of the distance from the
|
|
@@ -1504,8 +1539,7 @@ Figure 10. Convex hull (blue) of 2 points (left) and of 6 points (right).
|
|
|
1504
1539
|
|
|
1505
1540
|
.. note::
|
|
1506
1541
|
|
|
1507
|
-
This method is only available for `LinearRing
|
|
1508
|
-
`MultiLineString` objects.
|
|
1542
|
+
This method is only available for `LinearRing` and `LineString` objects.
|
|
1509
1543
|
|
|
1510
1544
|
.. plot:: code/parallel_offset.py
|
|
1511
1545
|
|
|
@@ -1751,15 +1785,15 @@ Other Transformations
|
|
|
1751
1785
|
Shapely supports map projections and other arbitrary transformations of geometric objects.
|
|
1752
1786
|
|
|
1753
1787
|
.. function:: shapely.ops.transform(func, geom)
|
|
1754
|
-
|
|
1755
|
-
Applies `func` to all coordinates of `geom` and returns a new
|
|
1788
|
+
|
|
1789
|
+
Applies `func` to all coordinates of `geom` and returns a new
|
|
1756
1790
|
geometry of the same type from the transformed coordinates.
|
|
1757
|
-
|
|
1791
|
+
|
|
1758
1792
|
`func` maps x, y, and optionally z to output xp, yp, zp. The input
|
|
1759
1793
|
parameters may iterable types like lists or arrays or single values.
|
|
1760
1794
|
The output shall be of the same type: scalars in, scalars out;
|
|
1761
1795
|
lists in, lists out.
|
|
1762
|
-
|
|
1796
|
+
|
|
1763
1797
|
`New in version 1.2.18`.
|
|
1764
1798
|
|
|
1765
1799
|
For example, here is an identity function applicable to both types of input
|
|
@@ -1769,7 +1803,7 @@ For example, here is an identity function applicable to both types of input
|
|
|
1769
1803
|
|
|
1770
1804
|
def id_func(x, y, z=None):
|
|
1771
1805
|
return tuple(filter(None, [x, y, z]))
|
|
1772
|
-
|
|
1806
|
+
|
|
1773
1807
|
g2 = transform(id_func, g1)
|
|
1774
1808
|
|
|
1775
1809
|
A partially applied transform function from pyproj satisfies the requirements
|
|
@@ -1781,12 +1815,12 @@ for `func`.
|
|
|
1781
1815
|
import pyproj
|
|
1782
1816
|
|
|
1783
1817
|
project = partial(
|
|
1784
|
-
pyproj.transform,
|
|
1785
|
-
pyproj.Proj(init='espg:4326'),
|
|
1818
|
+
pyproj.transform,
|
|
1819
|
+
pyproj.Proj(init='espg:4326'),
|
|
1786
1820
|
pyproj.Proj(init='epsg:26913'))
|
|
1787
1821
|
|
|
1788
1822
|
g2 = transform(project, g1)
|
|
1789
|
-
|
|
1823
|
+
|
|
1790
1824
|
Lambda expressions such as the one in
|
|
1791
1825
|
|
|
1792
1826
|
.. sourcecode:: python
|
|
@@ -1830,18 +1864,18 @@ using functions in the :mod:`shapely.ops` module.
|
|
|
1830
1864
|
|
|
1831
1865
|
Creates polygons from a source of lines, returning the polygons
|
|
1832
1866
|
and leftover geometries.
|
|
1833
|
-
|
|
1867
|
+
|
|
1834
1868
|
The source may be a MultiLineString, a sequence of LineString objects,
|
|
1835
1869
|
or a sequence of objects than can be adapted to LineStrings.
|
|
1836
|
-
|
|
1870
|
+
|
|
1837
1871
|
Returns a tuple of objects: (polygons, dangles, cut edges, invalid ring
|
|
1838
1872
|
lines). Each are a geometry collection.
|
|
1839
|
-
|
|
1873
|
+
|
|
1840
1874
|
Dangles are edges which have one or both ends which are not incident on
|
|
1841
1875
|
another edge endpoint. Cut edges are connected at both ends but do not
|
|
1842
1876
|
form part of polygon. Invalid ring lines form rings which are invalid
|
|
1843
1877
|
(bowties, etc).
|
|
1844
|
-
|
|
1878
|
+
|
|
1845
1879
|
`New in version 1.2.18.`
|
|
1846
1880
|
|
|
1847
1881
|
.. sourcecode:: pycon
|
|
@@ -1979,12 +2013,12 @@ accessible via :attr:`shapely.__version__`,
|
|
|
1979
2013
|
|
|
1980
2014
|
>>> import shapely
|
|
1981
2015
|
>>> shapely.__version__
|
|
1982
|
-
'1.
|
|
2016
|
+
'1.3.0'
|
|
1983
2017
|
>>> import shapely.geos
|
|
2018
|
+
>>> shapely.geos.geos_version
|
|
2019
|
+
(3, 3, 0)
|
|
1984
2020
|
>>> shapely.geos.geos_version_string
|
|
1985
2021
|
'3.3.0-CAPI-1.7.0'
|
|
1986
|
-
>>> shapely.geos.geos_capi_version
|
|
1987
|
-
(1, 7, 0)
|
|
1988
2022
|
|
|
1989
2023
|
|
|
1990
2024
|
Interoperation
|