shapely 1.0b4__tar.gz → 1.0rc1__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.0rc1/CREDITS.txt +10 -0
- Shapely-1.0rc1/HISTORY.txt +5 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/PKG-INFO +36 -10
- {Shapely-1.0b4 → Shapely-1.0rc1}/README.txt +38 -12
- {Shapely-1.0b4 → Shapely-1.0rc1}/Shapely.egg-info/PKG-INFO +36 -10
- {Shapely-1.0b4 → Shapely-1.0rc1}/Shapely.egg-info/SOURCES.txt +1 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/Shapely.egg-info/dependency_links.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/Shapely.egg-info/requires.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/Shapely.egg-info/top_level.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/setup.py +2 -2
- Shapely-1.0rc1/setup_windows.py +39 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geos.py +7 -5
- Shapely-1.0b4/CREDITS.txt +0 -6
- Shapely-1.0b4/HISTORY.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/CHANGES.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/LICENSE.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/examples/geoms.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/examples/world.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/manual/manual.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/manual/style.css +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/setup.cfg +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/__init__.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/__init__.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/base.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/collection.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/geo.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/linestring.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/multilinestring.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/multipoint.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/multipolygon.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/point.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/geometry/polygon.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/iterops.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/kml.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/predicates.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/topology.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/wkb.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/shapely/wkt.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/Array.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/GeoInterface.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/IterOps.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/LineString.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/MultiLineString.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/MultiPoint.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/MultiPolygon.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/Operations.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/Persist.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/Point.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/Polygon.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/Predicates.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/__init__.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/binascii_hex.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/invalid_intersection.txt +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/rungrind.dist +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/test_doctests.py +0 -0
- {Shapely-1.0b4 → Shapely-1.0rc1}/tests/valgrind-python.supp +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Sean Gillies (Pleiades)
|
|
2
|
+
Howard Butler (Hobu, Inc.)
|
|
3
|
+
Kai Lautaportti (Hexagon IT)
|
|
4
|
+
Frédéric Junod (Camptocamp SA)
|
|
5
|
+
Eric Lemoine (Camptocamp SA)
|
|
6
|
+
Justin Bronn (GeoDjango) for ctypes inspiration
|
|
7
|
+
Artem Pavlenko (Mapnik) for help with GEOS DLLs
|
|
8
|
+
|
|
9
|
+
Some of this work was supported by a grant from the U.S. National Endowment for
|
|
10
|
+
the Humanities (http://www.neh.gov).
|
|
@@ -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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Shapely
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
-
Shapely is a Python package for programming with geospatial geometries. It
|
|
5
|
-
based on GEOS (http://geos.refractions.net). Shapely 1.0 is ignorant about
|
|
4
|
+
Shapely is a Python package for programming with 2D geospatial geometries. It
|
|
5
|
+
is based on GEOS (http://geos.refractions.net). Shapely 1.0 is ignorant about
|
|
6
6
|
coordinate and reference systems. Projection responsibility is left to specific
|
|
7
7
|
applications. For more information, see:
|
|
8
8
|
|
|
@@ -12,6 +12,7 @@ applications. For more information, see:
|
|
|
12
12
|
Shapely requires Python 2.4+. (I've also begun to port it to Python 3.0:
|
|
13
13
|
http://zcologia.com/news/564/shapely-for-python-3-0/.)
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
Dependencies
|
|
16
17
|
------------
|
|
17
18
|
|
|
@@ -20,6 +21,7 @@ Dependencies
|
|
|
20
21
|
|
|
21
22
|
.. _ctypes: http://pypi.python.org/pypi/ctypes/
|
|
22
23
|
|
|
24
|
+
|
|
23
25
|
Installation
|
|
24
26
|
------------
|
|
25
27
|
|
|
@@ -31,26 +33,29 @@ with the setup script::
|
|
|
31
33
|
|
|
32
34
|
$ sudo python setup.py install
|
|
33
35
|
|
|
34
|
-
or by using the development buildout, which also provides libgeos_c::
|
|
36
|
+
or by using the development buildout on Linux, which also provides libgeos_c::
|
|
37
|
+
|
|
38
|
+
$ svn co http://svn.gispython.org/svn/gispy/buildout/shapely.buildout/trunk shapely.buildout
|
|
39
|
+
$ cd shapely.buildout
|
|
40
|
+
$ python bootstrap.py
|
|
41
|
+
$ ./bin/buildout
|
|
35
42
|
|
|
36
|
-
$ svn co http://svn.gispython.org/svn/gispy/buildout/shapely.buildout/trunk shapely.buildout
|
|
37
|
-
$ cd shapely.buildout
|
|
38
|
-
$ python bootstrap.py
|
|
39
|
-
$ ./bin/buildout
|
|
40
43
|
|
|
41
44
|
Usage
|
|
42
45
|
-----
|
|
43
46
|
|
|
44
|
-
|
|
47
|
+
To buffer a point::
|
|
45
48
|
|
|
46
49
|
>>> from shapely.geometry import Point
|
|
47
50
|
>>> point = Point(-106.0, 40.0) # longitude, latitude
|
|
48
51
|
>>> point.buffer(10.0)
|
|
49
52
|
<shapely.geometry.polygon.Polygon object at ...>
|
|
50
53
|
|
|
51
|
-
See
|
|
52
|
-
|
|
53
|
-
LineString.txt, etc for
|
|
54
|
+
See the manual_ for comprehensive examples of usage. See also Operations.txt
|
|
55
|
+
and Predicates.txt under tests/ for more examples of the spatial operations and
|
|
56
|
+
predicates provided by Shapely. See also Point.txt, LineString.txt, etc for
|
|
57
|
+
examples of the geometry APIs.
|
|
58
|
+
|
|
54
59
|
|
|
55
60
|
Numpy integration
|
|
56
61
|
-----------------
|
|
@@ -72,6 +77,7 @@ Numpy arrays can also be adapted to Shapely points and linestrings::
|
|
|
72
77
|
>>> line.wkt
|
|
73
78
|
'LINESTRING (1.0000000000000000 2.0000000000000000, 3.0000000000000000 4.0000000000000000)'
|
|
74
79
|
|
|
80
|
+
|
|
75
81
|
Python Geo Interface
|
|
76
82
|
--------------------
|
|
77
83
|
|
|
@@ -99,6 +105,7 @@ geometry with the asShape factory::
|
|
|
99
105
|
See http://trac.gispython.org/projects/PCL/wiki/PythonGeoInterface for more
|
|
100
106
|
details on the interface.
|
|
101
107
|
|
|
108
|
+
|
|
102
109
|
Testing
|
|
103
110
|
-------
|
|
104
111
|
|
|
@@ -108,7 +115,11 @@ Several of the modules have docstring doctests::
|
|
|
108
115
|
$ python point.py
|
|
109
116
|
|
|
110
117
|
There are also two test runners under tests/. test_doctests.py requires
|
|
111
|
-
zope.testing. runalldoctests.py does not.
|
|
118
|
+
zope.testing. runalldoctests.py does not. Perhaps the easiest way to run the
|
|
119
|
+
tests is::
|
|
120
|
+
|
|
121
|
+
$ python setup.py test
|
|
122
|
+
|
|
112
123
|
|
|
113
124
|
Support
|
|
114
125
|
-------
|
|
@@ -122,3 +133,18 @@ If you have questions, please consider joining our community list:
|
|
|
122
133
|
|
|
123
134
|
http://trac.gispython.org/projects/PCL/wiki/CommunityList
|
|
124
135
|
|
|
136
|
+
|
|
137
|
+
Credits
|
|
138
|
+
-------
|
|
139
|
+
|
|
140
|
+
Sean Gillies (Pleiades)
|
|
141
|
+
Howard Butler (Hobu, Inc.)
|
|
142
|
+
Kai Lautaportti (Hexagon IT)
|
|
143
|
+
Frederic Junod (Camptocamp SA)
|
|
144
|
+
Eric Lemoine (Camptocamp SA)
|
|
145
|
+
Justin Bronn (GeoDjango) for ctypes inspiration
|
|
146
|
+
Artem Pavlenko (Mapnik) for help with GEOS DLLs
|
|
147
|
+
|
|
148
|
+
Some of this work was supported by a grant (Pleiades) from the U.S. National
|
|
149
|
+
Endowment for the Humanities (http://www.neh.gov).
|
|
150
|
+
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,7 +11,7 @@ if version_info[:2] < (2,5):
|
|
|
11
11
|
readme_text = file('README.txt', 'rb').read()
|
|
12
12
|
|
|
13
13
|
setup(name = 'Shapely',
|
|
14
|
-
version = '1.
|
|
14
|
+
version = '1.0rc1',
|
|
15
15
|
description = 'Geospatial geometries, predicates, and operations',
|
|
16
16
|
license = 'BSD',
|
|
17
17
|
keywords = 'geometry topology',
|
|
@@ -26,7 +26,7 @@ setup(name = 'Shapely',
|
|
|
26
26
|
#tests_require = ['numpy'], -- not working with "tests" command
|
|
27
27
|
test_suite = 'tests.test_suite',
|
|
28
28
|
classifiers = [
|
|
29
|
-
'Development Status ::
|
|
29
|
+
'Development Status :: 5 - Production/Stable',
|
|
30
30
|
'Intended Audience :: Developers',
|
|
31
31
|
'Intended Audience :: Science/Research',
|
|
32
32
|
'License :: OSI Approved :: BSD License',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
from setuptools import setup, Extension
|
|
3
|
+
from sys import version_info
|
|
4
|
+
|
|
5
|
+
# Require ctypes egg only for Python < 2.5
|
|
6
|
+
install_requires = ['setuptools']
|
|
7
|
+
if version_info[:2] < (2,5):
|
|
8
|
+
install_requires.append('ctypes')
|
|
9
|
+
|
|
10
|
+
# Get text from README.txt
|
|
11
|
+
readme_text = file('README.txt', 'rb').read()
|
|
12
|
+
|
|
13
|
+
setup(name = 'Shapely',
|
|
14
|
+
version = '1.0rc1',
|
|
15
|
+
description = 'Geospatial geometries, predicates, and operations',
|
|
16
|
+
license = 'BSD',
|
|
17
|
+
keywords = 'geometry topology',
|
|
18
|
+
author = 'Sean Gillies',
|
|
19
|
+
author_email = 'sgillies@frii.com',
|
|
20
|
+
maintainer = 'Sean Gillies',
|
|
21
|
+
maintainer_email = 'sgillies@frii.com',
|
|
22
|
+
url = 'http://trac.gispython.org/projects/PCL/wiki/Shapely',
|
|
23
|
+
long_description = readme_text,
|
|
24
|
+
packages = ['shapely', 'shapely.geometry'],
|
|
25
|
+
data_files=[('DLLs', ['DLLs/geos.dll', 'DLLs/geos_c.dll']),],
|
|
26
|
+
install_requires = install_requires,
|
|
27
|
+
#tests_require = ['numpy'], -- not working with "tests" command
|
|
28
|
+
test_suite = 'tests.test_suite',
|
|
29
|
+
classifiers = [
|
|
30
|
+
'Development Status :: 5 - Production/Stable',
|
|
31
|
+
'Intended Audience :: Developers',
|
|
32
|
+
'Intended Audience :: Science/Research',
|
|
33
|
+
'License :: OSI Approved :: BSD License',
|
|
34
|
+
'Operating System :: OS Independent',
|
|
35
|
+
'Programming Language :: Python',
|
|
36
|
+
'Topic :: Scientific/Engineering :: GIS',
|
|
37
|
+
],
|
|
38
|
+
)
|
|
39
|
+
|
|
@@ -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-1.0b4/CREDITS.txt
DELETED
Shapely-1.0b4/HISTORY.txt
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|