shapely 1.2.19__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.19 → Shapely-1.3.0}/CHANGES.txt +8 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/CREDITS.txt +17 -2
- {Shapely-1.2.19/Shapely.egg-info → Shapely-1.3.0}/PKG-INFO +49 -15
- {Shapely-1.2.19 → Shapely-1.3.0}/README.rst +18 -11
- {Shapely-1.2.19 → Shapely-1.3.0/Shapely.egg-info}/PKG-INFO +49 -15
- {Shapely-1.2.19 → Shapely-1.3.0}/Shapely.egg-info/SOURCES.txt +18 -23
- Shapely-1.3.0/VERSION.txt +1 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/docs/manual.txt +17 -19
- Shapely-1.3.0/setup.py +226 -0
- Shapely-1.3.0/shapely/__init__.py +1 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/affinity.py +4 -1
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/algorithms/cga.py +0 -1
- {Shapely-1.2.19 → 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.19 → Shapely-1.3.0}/shapely/geometry/base.py +97 -37
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/geo.py +6 -6
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/linestring.py +24 -13
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/multilinestring.py +7 -2
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/multipoint.py +8 -3
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/multipolygon.py +7 -2
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/point.py +18 -17
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/polygon.py +19 -6
- Shapely-1.3.0/shapely/geos.py +729 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/impl.py +19 -19
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/iterops.py +3 -1
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/ops.py +48 -40
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/speedups/__init__.py +3 -2
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/speedups/_speedups.c +1 -1
- Shapely-1.3.0/shapely/tests/__init__.py +81 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/binascii_hex.txt +9 -9
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/test_affinity.py +44 -32
- {Shapely-1.2.19 → 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.19 → Shapely-1.3.0}/shapely/tests/test_collection.py +9 -6
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/test_delegated.py +10 -2
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/test_dlls.py +8 -4
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/test_doctests.py +11 -10
- {Shapely-1.2.19 → 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.19 → Shapely-1.3.0}/shapely/tests/test_geomseq.py +4 -2
- {Shapely-1.2.19 → 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.19 → 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.19 → 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.19 → 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.19 → 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.19 → Shapely-1.3.0}/shapely/tests/test_singularity.py +7 -3
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/test_speedups.py +13 -12
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/test_styles.py +5 -2
- {Shapely-1.2.19 → 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.19 → Shapely-1.3.0}/shapely/tests/test_validation.py +5 -3
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/test_xy.py +8 -5
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/tests/threading_test.py +20 -17
- {Shapely-1.2.19 → 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.19/VERSION.txt +0 -1
- Shapely-1.2.19/setup.py +0 -174
- Shapely-1.2.19/shapely/__init__.py +0 -1
- Shapely-1.2.19/shapely/ctypes_declarations.py +0 -297
- Shapely-1.2.19/shapely/geometry/__init__.py +0 -20
- Shapely-1.2.19/shapely/geos.py +0 -408
- Shapely-1.2.19/shapely/tests/Array.txt +0 -86
- Shapely-1.2.19/shapely/tests/GeoInterface.txt +0 -69
- Shapely-1.2.19/shapely/tests/IterOps.txt +0 -31
- Shapely-1.2.19/shapely/tests/LineString.txt +0 -134
- Shapely-1.2.19/shapely/tests/MultiLineString.txt +0 -81
- Shapely-1.2.19/shapely/tests/MultiPoint.txt +0 -101
- Shapely-1.2.19/shapely/tests/MultiPolygon.txt +0 -71
- Shapely-1.2.19/shapely/tests/Operations.txt +0 -89
- Shapely-1.2.19/shapely/tests/Operators.txt +0 -18
- Shapely-1.2.19/shapely/tests/Persist.txt +0 -35
- Shapely-1.2.19/shapely/tests/Point.txt +0 -148
- Shapely-1.2.19/shapely/tests/Polygon.txt +0 -143
- Shapely-1.2.19/shapely/tests/Predicates.txt +0 -51
- Shapely-1.2.19/shapely/tests/__init__.py +0 -37
- Shapely-1.2.19/shapely/tests/attribute-chains.txt +0 -38
- Shapely-1.2.19/shapely/tests/cascaded_union.txt +0 -26
- Shapely-1.2.19/shapely/tests/dimensions.txt +0 -17
- Shapely-1.2.19/shapely/tests/invalid_intersection.txt +0 -29
- Shapely-1.2.19/shapely/tests/linemerge.txt +0 -61
- Shapely-1.2.19/shapely/tests/polygonize.txt +0 -40
- Shapely-1.2.19/shapely/tests/test_cga.py +0 -33
- Shapely-1.2.19/shapely/tests/test_equality.py +0 -30
- Shapely-1.2.19/shapely/tests/test_linear_referencing.py +0 -67
- Shapely-1.2.19/shapely/tests/test_products_z.py +0 -14
- Shapely-1.2.19/shapely/tests/test_unary_union.py +0 -49
- Shapely-1.2.19/shapely/tests/wkt_locale.txt +0 -28
- Shapely-1.2.19/shapely/wkb.py +0 -24
- Shapely-1.2.19/shapely/wkt.py +0 -24
- {Shapely-1.2.19 → Shapely-1.3.0}/LICENSE.txt +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/Shapely.egg-info/dependency_links.txt +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/Shapely.egg-info/top_level.txt +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/setup.cfg +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/algorithms/__init__.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/examples/__init__.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/examples/dissolve.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/examples/geoms.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/examples/intersect.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/examples/world.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/ftools.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/collection.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/geometry/proxy.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/linref.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/predicates.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/prepared.py +0 -0
- {Shapely-1.2.19 → Shapely-1.3.0}/shapely/topology.py +0 -0
|
@@ -1,6 +1,14 @@
|
|
|
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
|
+
|
|
4
12
|
1.2.19 (2013-12-30)
|
|
5
13
|
-------------------
|
|
6
14
|
- Add buffering style options (#55).
|
|
@@ -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,14 @@ 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
|
+
|
|
193
223
|
1.2.19 (2013-12-30)
|
|
194
224
|
-------------------
|
|
195
225
|
- Add buffering style options (#55).
|
|
@@ -463,5 +493,9 @@ Classifier: Intended Audience :: Developers
|
|
|
463
493
|
Classifier: Intended Audience :: Science/Research
|
|
464
494
|
Classifier: License :: OSI Approved :: BSD License
|
|
465
495
|
Classifier: Operating System :: OS Independent
|
|
466
|
-
Classifier: Programming Language :: Python
|
|
496
|
+
Classifier: Programming Language :: Python :: 2.6
|
|
497
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
498
|
+
Classifier: Programming Language :: Python :: 3
|
|
467
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,14 @@ 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
|
+
|
|
193
223
|
1.2.19 (2013-12-30)
|
|
194
224
|
-------------------
|
|
195
225
|
- Add buffering style options (#55).
|
|
@@ -463,5 +493,9 @@ Classifier: Intended Audience :: Developers
|
|
|
463
493
|
Classifier: Intended Audience :: Science/Research
|
|
464
494
|
Classifier: License :: OSI Approved :: BSD License
|
|
465
495
|
Classifier: Operating System :: OS Independent
|
|
466
|
-
Classifier: Programming Language :: Python
|
|
496
|
+
Classifier: Programming Language :: Python :: 2.6
|
|
497
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
498
|
+
Classifier: Programming Language :: Python :: 3
|
|
467
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,20 +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
|
|
89
85
|
shapely/tests/test_styles.py
|
|
90
86
|
shapely/tests/test_transform.py
|
|
91
|
-
shapely/tests/
|
|
87
|
+
shapely/tests/test_union.py
|
|
92
88
|
shapely/tests/test_validation.py
|
|
93
89
|
shapely/tests/test_xy.py
|
|
94
|
-
shapely/tests/threading_test.py
|
|
95
|
-
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
|
|
|
@@ -1787,15 +1785,15 @@ Other Transformations
|
|
|
1787
1785
|
Shapely supports map projections and other arbitrary transformations of geometric objects.
|
|
1788
1786
|
|
|
1789
1787
|
.. function:: shapely.ops.transform(func, geom)
|
|
1790
|
-
|
|
1791
|
-
Applies `func` to all coordinates of `geom` and returns a new
|
|
1788
|
+
|
|
1789
|
+
Applies `func` to all coordinates of `geom` and returns a new
|
|
1792
1790
|
geometry of the same type from the transformed coordinates.
|
|
1793
|
-
|
|
1791
|
+
|
|
1794
1792
|
`func` maps x, y, and optionally z to output xp, yp, zp. The input
|
|
1795
1793
|
parameters may iterable types like lists or arrays or single values.
|
|
1796
1794
|
The output shall be of the same type: scalars in, scalars out;
|
|
1797
1795
|
lists in, lists out.
|
|
1798
|
-
|
|
1796
|
+
|
|
1799
1797
|
`New in version 1.2.18`.
|
|
1800
1798
|
|
|
1801
1799
|
For example, here is an identity function applicable to both types of input
|
|
@@ -1805,7 +1803,7 @@ For example, here is an identity function applicable to both types of input
|
|
|
1805
1803
|
|
|
1806
1804
|
def id_func(x, y, z=None):
|
|
1807
1805
|
return tuple(filter(None, [x, y, z]))
|
|
1808
|
-
|
|
1806
|
+
|
|
1809
1807
|
g2 = transform(id_func, g1)
|
|
1810
1808
|
|
|
1811
1809
|
A partially applied transform function from pyproj satisfies the requirements
|
|
@@ -1817,12 +1815,12 @@ for `func`.
|
|
|
1817
1815
|
import pyproj
|
|
1818
1816
|
|
|
1819
1817
|
project = partial(
|
|
1820
|
-
pyproj.transform,
|
|
1821
|
-
pyproj.Proj(init='espg:4326'),
|
|
1818
|
+
pyproj.transform,
|
|
1819
|
+
pyproj.Proj(init='espg:4326'),
|
|
1822
1820
|
pyproj.Proj(init='epsg:26913'))
|
|
1823
1821
|
|
|
1824
1822
|
g2 = transform(project, g1)
|
|
1825
|
-
|
|
1823
|
+
|
|
1826
1824
|
Lambda expressions such as the one in
|
|
1827
1825
|
|
|
1828
1826
|
.. sourcecode:: python
|
|
@@ -1866,18 +1864,18 @@ using functions in the :mod:`shapely.ops` module.
|
|
|
1866
1864
|
|
|
1867
1865
|
Creates polygons from a source of lines, returning the polygons
|
|
1868
1866
|
and leftover geometries.
|
|
1869
|
-
|
|
1867
|
+
|
|
1870
1868
|
The source may be a MultiLineString, a sequence of LineString objects,
|
|
1871
1869
|
or a sequence of objects than can be adapted to LineStrings.
|
|
1872
|
-
|
|
1870
|
+
|
|
1873
1871
|
Returns a tuple of objects: (polygons, dangles, cut edges, invalid ring
|
|
1874
1872
|
lines). Each are a geometry collection.
|
|
1875
|
-
|
|
1873
|
+
|
|
1876
1874
|
Dangles are edges which have one or both ends which are not incident on
|
|
1877
1875
|
another edge endpoint. Cut edges are connected at both ends but do not
|
|
1878
1876
|
form part of polygon. Invalid ring lines form rings which are invalid
|
|
1879
1877
|
(bowties, etc).
|
|
1880
|
-
|
|
1878
|
+
|
|
1881
1879
|
`New in version 1.2.18.`
|
|
1882
1880
|
|
|
1883
1881
|
.. sourcecode:: pycon
|
|
@@ -2015,12 +2013,12 @@ accessible via :attr:`shapely.__version__`,
|
|
|
2015
2013
|
|
|
2016
2014
|
>>> import shapely
|
|
2017
2015
|
>>> shapely.__version__
|
|
2018
|
-
'1.
|
|
2016
|
+
'1.3.0'
|
|
2019
2017
|
>>> import shapely.geos
|
|
2018
|
+
>>> shapely.geos.geos_version
|
|
2019
|
+
(3, 3, 0)
|
|
2020
2020
|
>>> shapely.geos.geos_version_string
|
|
2021
2021
|
'3.3.0-CAPI-1.7.0'
|
|
2022
|
-
>>> shapely.geos.geos_capi_version
|
|
2023
|
-
(1, 7, 0)
|
|
2024
2022
|
|
|
2025
2023
|
|
|
2026
2024
|
Interoperation
|