shapely 1.0b4__py2.4.egg → 1.0rc1__py2.4.egg
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.
- EGG-INFO/PKG-INFO +36 -10
- EGG-INFO/SOURCES.txt +1 -0
- shapely/geos.py +7 -5
- shapely/geos.pyc +0 -0
- /EGG-INFO/{zip-safe → not-zip-safe} +0 -0
EGG-INFO/PKG-INFO
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.0
|
|
2
2
|
Name: Shapely
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.0rc1
|
|
4
4
|
Summary: Geospatial geometries, predicates, and operations
|
|
5
5
|
Home-page: http://trac.gispython.org/projects/PCL/wiki/Shapely
|
|
6
6
|
Author: Sean Gillies
|
|
@@ -9,8 +9,8 @@ License: BSD
|
|
|
9
9
|
Description: Shapely
|
|
10
10
|
=======
|
|
11
11
|
|
|
12
|
-
Shapely is a Python package for programming with geospatial geometries. It
|
|
13
|
-
based on GEOS (http://geos.refractions.net). Shapely 1.0 is ignorant about
|
|
12
|
+
Shapely is a Python package for programming with 2D geospatial geometries. It
|
|
13
|
+
is based on GEOS (http://geos.refractions.net). Shapely 1.0 is ignorant about
|
|
14
14
|
coordinate and reference systems. Projection responsibility is left to specific
|
|
15
15
|
applications. For more information, see:
|
|
16
16
|
|
|
@@ -20,6 +20,7 @@ Description: Shapely
|
|
|
20
20
|
Shapely requires Python 2.4+. (I've also begun to port it to Python 3.0:
|
|
21
21
|
http://zcologia.com/news/564/shapely-for-python-3-0/.)
|
|
22
22
|
|
|
23
|
+
|
|
23
24
|
Dependencies
|
|
24
25
|
------------
|
|
25
26
|
|
|
@@ -28,6 +29,7 @@ Description: Shapely
|
|
|
28
29
|
|
|
29
30
|
.. _ctypes: http://pypi.python.org/pypi/ctypes/
|
|
30
31
|
|
|
32
|
+
|
|
31
33
|
Installation
|
|
32
34
|
------------
|
|
33
35
|
|
|
@@ -39,26 +41,29 @@ Description: Shapely
|
|
|
39
41
|
|
|
40
42
|
$ sudo python setup.py install
|
|
41
43
|
|
|
42
|
-
or by using the development buildout, which also provides libgeos_c::
|
|
44
|
+
or by using the development buildout on Linux, which also provides libgeos_c::
|
|
43
45
|
|
|
44
46
|
$ svn co http://svn.gispython.org/svn/gispy/buildout/shapely.buildout/trunk shapely.buildout
|
|
45
47
|
$ cd shapely.buildout
|
|
46
48
|
$ python bootstrap.py
|
|
47
49
|
$ ./bin/buildout
|
|
48
50
|
|
|
51
|
+
|
|
49
52
|
Usage
|
|
50
53
|
-----
|
|
51
54
|
|
|
52
|
-
|
|
55
|
+
To buffer a point::
|
|
53
56
|
|
|
54
57
|
>>> from shapely.geometry import Point
|
|
55
58
|
>>> point = Point(-106.0, 40.0) # longitude, latitude
|
|
56
59
|
>>> point.buffer(10.0)
|
|
57
60
|
<shapely.geometry.polygon.Polygon object at ...>
|
|
58
61
|
|
|
59
|
-
See
|
|
60
|
-
|
|
61
|
-
LineString.txt, etc for
|
|
62
|
+
See the manual_ for comprehensive examples of usage. See also Operations.txt
|
|
63
|
+
and Predicates.txt under tests/ for more examples of the spatial operations and
|
|
64
|
+
predicates provided by Shapely. See also Point.txt, LineString.txt, etc for
|
|
65
|
+
examples of the geometry APIs.
|
|
66
|
+
|
|
62
67
|
|
|
63
68
|
Numpy integration
|
|
64
69
|
-----------------
|
|
@@ -80,6 +85,7 @@ Description: Shapely
|
|
|
80
85
|
>>> line.wkt
|
|
81
86
|
'LINESTRING (1.0000000000000000 2.0000000000000000, 3.0000000000000000 4.0000000000000000)'
|
|
82
87
|
|
|
88
|
+
|
|
83
89
|
Python Geo Interface
|
|
84
90
|
--------------------
|
|
85
91
|
|
|
@@ -107,6 +113,7 @@ Description: Shapely
|
|
|
107
113
|
See http://trac.gispython.org/projects/PCL/wiki/PythonGeoInterface for more
|
|
108
114
|
details on the interface.
|
|
109
115
|
|
|
116
|
+
|
|
110
117
|
Testing
|
|
111
118
|
-------
|
|
112
119
|
|
|
@@ -116,7 +123,11 @@ Description: Shapely
|
|
|
116
123
|
$ python point.py
|
|
117
124
|
|
|
118
125
|
There are also two test runners under tests/. test_doctests.py requires
|
|
119
|
-
zope.testing. runalldoctests.py does not.
|
|
126
|
+
zope.testing. runalldoctests.py does not. Perhaps the easiest way to run the
|
|
127
|
+
tests is::
|
|
128
|
+
|
|
129
|
+
$ python setup.py test
|
|
130
|
+
|
|
120
131
|
|
|
121
132
|
Support
|
|
122
133
|
-------
|
|
@@ -131,9 +142,24 @@ Description: Shapely
|
|
|
131
142
|
http://trac.gispython.org/projects/PCL/wiki/CommunityList
|
|
132
143
|
|
|
133
144
|
|
|
145
|
+
Credits
|
|
146
|
+
-------
|
|
147
|
+
|
|
148
|
+
Sean Gillies (Pleiades)
|
|
149
|
+
Howard Butler (Hobu, Inc.)
|
|
150
|
+
Kai Lautaportti (Hexagon IT)
|
|
151
|
+
Frederic Junod (Camptocamp SA)
|
|
152
|
+
Eric Lemoine (Camptocamp SA)
|
|
153
|
+
Justin Bronn (GeoDjango) for ctypes inspiration
|
|
154
|
+
Artem Pavlenko (Mapnik) for help with GEOS DLLs
|
|
155
|
+
|
|
156
|
+
Some of this work was supported by a grant (Pleiades) from the U.S. National
|
|
157
|
+
Endowment for the Humanities (http://www.neh.gov).
|
|
158
|
+
|
|
159
|
+
|
|
134
160
|
Keywords: geometry topology
|
|
135
161
|
Platform: UNKNOWN
|
|
136
|
-
Classifier: Development Status ::
|
|
162
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
137
163
|
Classifier: Intended Audience :: Developers
|
|
138
164
|
Classifier: Intended Audience :: Science/Research
|
|
139
165
|
Classifier: License :: OSI Approved :: BSD License
|
EGG-INFO/SOURCES.txt
CHANGED
shapely/geos.py
CHANGED
|
@@ -5,16 +5,18 @@ Exports the libgeos_c shared lib, GEOS-specific exceptions, and utilities.
|
|
|
5
5
|
import atexit
|
|
6
6
|
from ctypes import cdll, CDLL, CFUNCTYPE, c_char_p
|
|
7
7
|
from ctypes.util import find_library
|
|
8
|
+
import os
|
|
8
9
|
import sys
|
|
9
10
|
|
|
11
|
+
import shapely
|
|
12
|
+
|
|
10
13
|
if sys.platform == 'win32':
|
|
11
14
|
try:
|
|
12
|
-
|
|
15
|
+
geospath = os.path.abspath(
|
|
16
|
+
shapely.__file__ + "../../../../../DLLs/geos_c.dll"
|
|
17
|
+
)
|
|
18
|
+
lgeos = CDLL(geospath)
|
|
13
19
|
except (ImportError, WindowsError):
|
|
14
|
-
# Try GEOS DLL from the Windows PostGIS installer for
|
|
15
|
-
# PostgreSQL 8.2 before failing
|
|
16
|
-
lgeos = CDLL('libgeos_c-1.dll')
|
|
17
|
-
except:
|
|
18
20
|
raise
|
|
19
21
|
free = cdll.msvcrt.free
|
|
20
22
|
elif sys.platform == 'darwin':
|
shapely/geos.pyc
CHANGED
|
Binary file
|
|
File without changes
|