shapely 1.0b4__tar.gz → 1.0rc2__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.
Files changed (56) hide show
  1. Shapely-1.0rc2/CREDITS.txt +10 -0
  2. Shapely-1.0rc2/HISTORY.txt +11 -0
  3. {Shapely-1.0b4 → Shapely-1.0rc2}/PKG-INFO +42 -11
  4. {Shapely-1.0b4 → Shapely-1.0rc2}/README.txt +44 -13
  5. {Shapely-1.0b4 → Shapely-1.0rc2}/Shapely.egg-info/PKG-INFO +42 -11
  6. {Shapely-1.0b4 → Shapely-1.0rc2}/Shapely.egg-info/SOURCES.txt +1 -0
  7. {Shapely-1.0b4 → Shapely-1.0rc2}/Shapely.egg-info/dependency_links.txt +0 -0
  8. {Shapely-1.0b4 → Shapely-1.0rc2}/Shapely.egg-info/requires.txt +0 -0
  9. {Shapely-1.0b4 → Shapely-1.0rc2}/Shapely.egg-info/top_level.txt +0 -0
  10. {Shapely-1.0b4 → Shapely-1.0rc2}/setup.py +2 -2
  11. Shapely-1.0rc2/setup_windows.py +39 -0
  12. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geos.py +14 -6
  13. Shapely-1.0b4/CREDITS.txt +0 -6
  14. Shapely-1.0b4/HISTORY.txt +0 -0
  15. {Shapely-1.0b4 → Shapely-1.0rc2}/CHANGES.txt +0 -0
  16. {Shapely-1.0b4 → Shapely-1.0rc2}/LICENSE.txt +0 -0
  17. {Shapely-1.0b4 → Shapely-1.0rc2}/examples/geoms.py +0 -0
  18. {Shapely-1.0b4 → Shapely-1.0rc2}/examples/world.py +0 -0
  19. {Shapely-1.0b4 → Shapely-1.0rc2}/manual/manual.txt +0 -0
  20. {Shapely-1.0b4 → Shapely-1.0rc2}/manual/style.css +0 -0
  21. {Shapely-1.0b4 → Shapely-1.0rc2}/setup.cfg +0 -0
  22. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/__init__.py +0 -0
  23. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/__init__.py +0 -0
  24. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/base.py +0 -0
  25. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/collection.py +0 -0
  26. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/geo.py +0 -0
  27. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/linestring.py +0 -0
  28. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/multilinestring.py +0 -0
  29. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/multipoint.py +0 -0
  30. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/multipolygon.py +0 -0
  31. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/point.py +0 -0
  32. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/geometry/polygon.py +0 -0
  33. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/iterops.py +0 -0
  34. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/kml.py +0 -0
  35. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/predicates.py +0 -0
  36. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/topology.py +0 -0
  37. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/wkb.py +0 -0
  38. {Shapely-1.0b4 → Shapely-1.0rc2}/shapely/wkt.py +0 -0
  39. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/Array.txt +0 -0
  40. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/GeoInterface.txt +0 -0
  41. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/IterOps.txt +0 -0
  42. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/LineString.txt +0 -0
  43. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/MultiLineString.txt +0 -0
  44. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/MultiPoint.txt +0 -0
  45. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/MultiPolygon.txt +0 -0
  46. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/Operations.txt +0 -0
  47. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/Persist.txt +0 -0
  48. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/Point.txt +0 -0
  49. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/Polygon.txt +0 -0
  50. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/Predicates.txt +0 -0
  51. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/__init__.py +0 -0
  52. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/binascii_hex.txt +0 -0
  53. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/invalid_intersection.txt +0 -0
  54. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/rungrind.dist +0 -0
  55. {Shapely-1.0b4 → Shapely-1.0rc2}/tests/test_doctests.py +0 -0
  56. {Shapely-1.0b4 → Shapely-1.0rc2}/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).
@@ -0,0 +1,11 @@
1
+ All ticket numbers are rooted at http://trac.gispython.org/projects/PCL/ticket/
2
+
3
+ 1.0 RC2: 16 January 2008
4
+ ------------------------
5
+ - Added temporary solution for #149.
6
+
7
+
8
+ 1.0 RC1: 14 January 2008
9
+ ------------------------
10
+ - First release candidate
11
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: Shapely
3
- Version: 1.0b4
3
+ Version: 1.0rc2
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 is
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,10 +29,13 @@ Description: Shapely
28
29
 
29
30
  .. _ctypes: http://pypi.python.org/pypi/ctypes/
30
31
 
32
+
31
33
  Installation
32
34
  ------------
33
35
 
34
- Shapely can be installed from the Python package index::
36
+ Windows users should use the executable installer, which contains the required
37
+ GEOS DLL. Other users should acquire libgeos_c by any means, make sure that it
38
+ is on the system library path, and install from the Python package index::
35
39
 
36
40
  $ sudo easy_install Shapely
37
41
 
@@ -39,26 +43,29 @@ Description: Shapely
39
43
 
40
44
  $ sudo python setup.py install
41
45
 
42
- or by using the development buildout, which also provides libgeos_c::
46
+ or by using the development buildout on Linux, which also provides libgeos_c::
43
47
 
44
48
  $ svn co http://svn.gispython.org/svn/gispy/buildout/shapely.buildout/trunk shapely.buildout
45
49
  $ cd shapely.buildout
46
50
  $ python bootstrap.py
47
51
  $ ./bin/buildout
48
52
 
53
+
49
54
  Usage
50
55
  -----
51
56
 
52
- Buffer a point::
57
+ To buffer a point::
53
58
 
54
59
  >>> from shapely.geometry import Point
55
60
  >>> point = Point(-106.0, 40.0) # longitude, latitude
56
61
  >>> point.buffer(10.0)
57
62
  <shapely.geometry.polygon.Polygon object at ...>
58
63
 
59
- See Operations.txt and Predicates.txt under tests/ for more examples of the
60
- spatial operations and predicates provided by Shapely. Also see Point.txt,
61
- LineString.txt, etc for examples of the geometry APIs.
64
+ See the manual_ for comprehensive examples of usage. See also Operations.txt
65
+ and Predicates.txt under tests/ for more examples of the spatial operations and
66
+ predicates provided by Shapely. See also Point.txt, LineString.txt, etc for
67
+ examples of the geometry APIs.
68
+
62
69
 
63
70
  Numpy integration
64
71
  -----------------
@@ -80,6 +87,7 @@ Description: Shapely
80
87
  >>> line.wkt
81
88
  'LINESTRING (1.0000000000000000 2.0000000000000000, 3.0000000000000000 4.0000000000000000)'
82
89
 
90
+
83
91
  Python Geo Interface
84
92
  --------------------
85
93
 
@@ -107,6 +115,7 @@ Description: Shapely
107
115
  See http://trac.gispython.org/projects/PCL/wiki/PythonGeoInterface for more
108
116
  details on the interface.
109
117
 
118
+
110
119
  Testing
111
120
  -------
112
121
 
@@ -116,7 +125,11 @@ Description: Shapely
116
125
  $ python point.py
117
126
 
118
127
  There are also two test runners under tests/. test_doctests.py requires
119
- zope.testing. runalldoctests.py does not.
128
+ zope.testing. runalldoctests.py does not. Perhaps the easiest way to run the
129
+ tests is::
130
+
131
+ $ python setup.py test
132
+
120
133
 
121
134
  Support
122
135
  -------
@@ -131,9 +144,27 @@ Description: Shapely
131
144
  http://trac.gispython.org/projects/PCL/wiki/CommunityList
132
145
 
133
146
 
147
+ Credits
148
+ -------
149
+
150
+ * Sean Gillies (Pleiades)
151
+ * Howard Butler (Hobu, Inc.)
152
+ * Kai Lautaportti (Hexagon IT)
153
+ * Fr |eaigue| d |eaigue| ric Junod (Camptocamp SA)
154
+ * Eric Lemoine (Camptocamp SA)
155
+ * Justin Bronn (GeoDjango) for ctypes inspiration
156
+ * Artem Pavlenko (Mapnik) for help with GEOS DLLs
157
+
158
+ .. |eaigue| unicode:: U+00E9
159
+ :trim:
160
+
161
+ Major portions of this work were supported by a grant (to Pleiades) from the
162
+ U.S. National Endowment for the Humanities (http://www.neh.gov).
163
+
164
+
134
165
  Keywords: geometry topology
135
166
  Platform: UNKNOWN
136
- Classifier: Development Status :: 4 - Beta
167
+ Classifier: Development Status :: 5 - Production/Stable
137
168
  Classifier: Intended Audience :: Developers
138
169
  Classifier: Intended Audience :: Science/Research
139
170
  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 is
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,10 +21,13 @@ Dependencies
20
21
 
21
22
  .. _ctypes: http://pypi.python.org/pypi/ctypes/
22
23
 
24
+
23
25
  Installation
24
26
  ------------
25
27
 
26
- Shapely can be installed from the Python package index::
28
+ Windows users should use the executable installer, which contains the required
29
+ GEOS DLL. Other users should acquire libgeos_c by any means, make sure that it
30
+ is on the system library path, and install from the Python package index::
27
31
 
28
32
  $ sudo easy_install Shapely
29
33
 
@@ -31,26 +35,29 @@ with the setup script::
31
35
 
32
36
  $ sudo python setup.py install
33
37
 
34
- or by using the development buildout, which also provides libgeos_c::
38
+ or by using the development buildout on Linux, which also provides libgeos_c::
39
+
40
+ $ svn co http://svn.gispython.org/svn/gispy/buildout/shapely.buildout/trunk shapely.buildout
41
+ $ cd shapely.buildout
42
+ $ python bootstrap.py
43
+ $ ./bin/buildout
35
44
 
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
45
 
41
46
  Usage
42
47
  -----
43
48
 
44
- Buffer a point::
49
+ To buffer a point::
45
50
 
46
51
  >>> from shapely.geometry import Point
47
52
  >>> point = Point(-106.0, 40.0) # longitude, latitude
48
53
  >>> point.buffer(10.0)
49
54
  <shapely.geometry.polygon.Polygon object at ...>
50
55
 
51
- See Operations.txt and Predicates.txt under tests/ for more examples of the
52
- spatial operations and predicates provided by Shapely. Also see Point.txt,
53
- LineString.txt, etc for examples of the geometry APIs.
56
+ See the manual_ for comprehensive examples of usage. See also Operations.txt
57
+ and Predicates.txt under tests/ for more examples of the spatial operations and
58
+ predicates provided by Shapely. See also Point.txt, LineString.txt, etc for
59
+ examples of the geometry APIs.
60
+
54
61
 
55
62
  Numpy integration
56
63
  -----------------
@@ -72,6 +79,7 @@ Numpy arrays can also be adapted to Shapely points and linestrings::
72
79
  >>> line.wkt
73
80
  'LINESTRING (1.0000000000000000 2.0000000000000000, 3.0000000000000000 4.0000000000000000)'
74
81
 
82
+
75
83
  Python Geo Interface
76
84
  --------------------
77
85
 
@@ -99,6 +107,7 @@ geometry with the asShape factory::
99
107
  See http://trac.gispython.org/projects/PCL/wiki/PythonGeoInterface for more
100
108
  details on the interface.
101
109
 
110
+
102
111
  Testing
103
112
  -------
104
113
 
@@ -108,7 +117,11 @@ Several of the modules have docstring doctests::
108
117
  $ python point.py
109
118
 
110
119
  There are also two test runners under tests/. test_doctests.py requires
111
- zope.testing. runalldoctests.py does not.
120
+ zope.testing. runalldoctests.py does not. Perhaps the easiest way to run the
121
+ tests is::
122
+
123
+ $ python setup.py test
124
+
112
125
 
113
126
  Support
114
127
  -------
@@ -122,3 +135,21 @@ If you have questions, please consider joining our community list:
122
135
 
123
136
  http://trac.gispython.org/projects/PCL/wiki/CommunityList
124
137
 
138
+
139
+ Credits
140
+ -------
141
+
142
+ * Sean Gillies (Pleiades)
143
+ * Howard Butler (Hobu, Inc.)
144
+ * Kai Lautaportti (Hexagon IT)
145
+ * Fr |eaigue| d |eaigue| ric Junod (Camptocamp SA)
146
+ * Eric Lemoine (Camptocamp SA)
147
+ * Justin Bronn (GeoDjango) for ctypes inspiration
148
+ * Artem Pavlenko (Mapnik) for help with GEOS DLLs
149
+
150
+ .. |eaigue| unicode:: U+00E9
151
+ :trim:
152
+
153
+ Major portions of this work were supported by a grant (to Pleiades) from the
154
+ U.S. National Endowment for the Humanities (http://www.neh.gov).
155
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: Shapely
3
- Version: 1.0b4
3
+ Version: 1.0rc2
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 is
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,10 +29,13 @@ Description: Shapely
28
29
 
29
30
  .. _ctypes: http://pypi.python.org/pypi/ctypes/
30
31
 
32
+
31
33
  Installation
32
34
  ------------
33
35
 
34
- Shapely can be installed from the Python package index::
36
+ Windows users should use the executable installer, which contains the required
37
+ GEOS DLL. Other users should acquire libgeos_c by any means, make sure that it
38
+ is on the system library path, and install from the Python package index::
35
39
 
36
40
  $ sudo easy_install Shapely
37
41
 
@@ -39,26 +43,29 @@ Description: Shapely
39
43
 
40
44
  $ sudo python setup.py install
41
45
 
42
- or by using the development buildout, which also provides libgeos_c::
46
+ or by using the development buildout on Linux, which also provides libgeos_c::
43
47
 
44
48
  $ svn co http://svn.gispython.org/svn/gispy/buildout/shapely.buildout/trunk shapely.buildout
45
49
  $ cd shapely.buildout
46
50
  $ python bootstrap.py
47
51
  $ ./bin/buildout
48
52
 
53
+
49
54
  Usage
50
55
  -----
51
56
 
52
- Buffer a point::
57
+ To buffer a point::
53
58
 
54
59
  >>> from shapely.geometry import Point
55
60
  >>> point = Point(-106.0, 40.0) # longitude, latitude
56
61
  >>> point.buffer(10.0)
57
62
  <shapely.geometry.polygon.Polygon object at ...>
58
63
 
59
- See Operations.txt and Predicates.txt under tests/ for more examples of the
60
- spatial operations and predicates provided by Shapely. Also see Point.txt,
61
- LineString.txt, etc for examples of the geometry APIs.
64
+ See the manual_ for comprehensive examples of usage. See also Operations.txt
65
+ and Predicates.txt under tests/ for more examples of the spatial operations and
66
+ predicates provided by Shapely. See also Point.txt, LineString.txt, etc for
67
+ examples of the geometry APIs.
68
+
62
69
 
63
70
  Numpy integration
64
71
  -----------------
@@ -80,6 +87,7 @@ Description: Shapely
80
87
  >>> line.wkt
81
88
  'LINESTRING (1.0000000000000000 2.0000000000000000, 3.0000000000000000 4.0000000000000000)'
82
89
 
90
+
83
91
  Python Geo Interface
84
92
  --------------------
85
93
 
@@ -107,6 +115,7 @@ Description: Shapely
107
115
  See http://trac.gispython.org/projects/PCL/wiki/PythonGeoInterface for more
108
116
  details on the interface.
109
117
 
118
+
110
119
  Testing
111
120
  -------
112
121
 
@@ -116,7 +125,11 @@ Description: Shapely
116
125
  $ python point.py
117
126
 
118
127
  There are also two test runners under tests/. test_doctests.py requires
119
- zope.testing. runalldoctests.py does not.
128
+ zope.testing. runalldoctests.py does not. Perhaps the easiest way to run the
129
+ tests is::
130
+
131
+ $ python setup.py test
132
+
120
133
 
121
134
  Support
122
135
  -------
@@ -131,9 +144,27 @@ Description: Shapely
131
144
  http://trac.gispython.org/projects/PCL/wiki/CommunityList
132
145
 
133
146
 
147
+ Credits
148
+ -------
149
+
150
+ * Sean Gillies (Pleiades)
151
+ * Howard Butler (Hobu, Inc.)
152
+ * Kai Lautaportti (Hexagon IT)
153
+ * Fr |eaigue| d |eaigue| ric Junod (Camptocamp SA)
154
+ * Eric Lemoine (Camptocamp SA)
155
+ * Justin Bronn (GeoDjango) for ctypes inspiration
156
+ * Artem Pavlenko (Mapnik) for help with GEOS DLLs
157
+
158
+ .. |eaigue| unicode:: U+00E9
159
+ :trim:
160
+
161
+ Major portions of this work were supported by a grant (to Pleiades) from the
162
+ U.S. National Endowment for the Humanities (http://www.neh.gov).
163
+
164
+
134
165
  Keywords: geometry topology
135
166
  Platform: UNKNOWN
136
- Classifier: Development Status :: 4 - Beta
167
+ Classifier: Development Status :: 5 - Production/Stable
137
168
  Classifier: Intended Audience :: Developers
138
169
  Classifier: Intended Audience :: Science/Research
139
170
  Classifier: License :: OSI Approved :: BSD License
@@ -4,6 +4,7 @@ HISTORY.txt
4
4
  LICENSE.txt
5
5
  README.txt
6
6
  setup.py
7
+ setup_windows.py
7
8
  Shapely.egg-info/PKG-INFO
8
9
  Shapely.egg-info/SOURCES.txt
9
10
  Shapely.egg-info/dependency_links.txt
@@ -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.0b4',
14
+ version = '1.0rc2',
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 :: 4 - Beta',
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.0rc2',
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']),],
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,18 +5,26 @@ 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
- lgeos = CDLL('libgeos_c.dll')
15
+ local_dlls = os.path.abspath(os.__file__ + "../../../DLLs")
16
+ original_path = os.environ['PATH']
17
+ os.environ['PATH'] = "%s;%s" % (local_dlls, original_path)
18
+ lgeos = CDLL("geos.dll")
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
- free = cdll.msvcrt.free
21
+ def free(m):
22
+ try:
23
+ cdll.msvcrt.free(m)
24
+ except WindowsError:
25
+ # XXX: See http://trac.gispython.org/projects/PCL/ticket/149
26
+ pass
27
+
20
28
  elif sys.platform == 'darwin':
21
29
  lgeos = CDLL(find_library('geos_c'))
22
30
  free = CDLL(find_library('libc')).free
Shapely-1.0b4/CREDITS.txt DELETED
@@ -1,6 +0,0 @@
1
- Sean Gillies (PCL)
2
- Howard Butler (PCL)
3
- Kai Lautaportti (PCL)
4
- Frédéric Junod (Camptocamp SA)
5
- Eric Lemoine (Camptocamp SA)
6
- Justin Bronn (GeoDjango) for ctypes inspiration
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