Changeset 1176
- Timestamp:
- 01/05/09 14:20:01 (15 months ago)
- Location:
- Shapely/trunk
- Files:
-
- 5 modified
-
CHANGES.txt (modified) (1 diff)
-
setup.py (modified) (3 diffs)
-
shapely/factory.py (modified) (1 diff)
-
shapely/geometry/point.py (modified) (1 diff)
-
tests/test_linestring.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Shapely/trunk/CHANGES.txt
r1158 r1176 1 1 All tickets are children of http://trac.gispython.org/lab/ticket. 2 3 1.1.0 (2009-01-?) 4 ----------------- 5 - Creation of a branch for maintenance of 1.0. 6 - New, cleaner GEOS geometry factories, nearly complete test coverage. 2 7 3 8 1.0.11 (2008-11-20) -
Shapely/trunk/setup.py
r1166 r1176 4 4 # Require ctypes egg only for Python < 2.5 5 5 install_requires = ['setuptools'] 6 #if version_info[:2] < (2,5):7 # install_requires.append('ctypes')8 6 9 7 # Get text from README.txt … … 11 9 12 10 setup(name = 'Shapely', 13 version = '1. 0.12',11 version = '1.1.0', 14 12 description = 'Geospatial geometries, predicates, and operations', 15 13 license = 'BSD', … … 26 24 test_suite = 'tests.test_suite', 27 25 classifiers = [ 28 'Development Status :: 5 - Production/Stable',26 'Development Status :: 4 - Beta', 29 27 'Intended Audience :: Developers', 30 28 'Intended Audience :: Science/Research', -
Shapely/trunk/shapely/factory.py
r1175 r1176 180 180 # update_ndim: number of dimensions of that geometry 181 181 q = point_seq(ob) 182 m, n = shape(q) 182 m, n = shape(q) 183 if m < 2: 184 raise ValueError, "Insufficient number of coordinate tuples" 183 185 cs = _init_sequence(update_geom, update_ndim, m, n) 184 186 for i, coords in enumerate(q): -
Shapely/trunk/shapely/geometry/point.py
r1175 r1176 195 195 >>> items = sorted(a.__array_interface__.items()) 196 196 >>> items # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE 197 [('data', < shapely.geometry.point.c_double_Array_2 object at...>),197 [('data', <...c_double_Array_2 object at 0x...>), 198 198 ('shape', (2,)), 199 199 ('typestr', '<f8'), -
Shapely/trunk/tests/test_linestring.py
r1168 r1176 114 114 array([0, 0]) 115 115 ) 116 117 def test_coords_update(self):118 p = linestring.LineString(((0.0, 0.0), (1.0, 1.0)))119 linestring.update_linestring_from_py(p, ((1.0, 1.0), (2.0, 2.0)))120 self.assertRaises(ValueError,121 linestring.update_linestring_from_py,122 p, [[1.0, 1.0, 1.0], [2.0, 2.0, 2.0]]123 )124 125 def test_coords_update_numpy(self):126 p = linestring.LineString(((0.0, 0.0), (1.0, 1.0)))127 linestring.update_linestring_from_py(p, array([[1.0, 1.0], [2.0, 2.0]]))128 self.assertRaises(ValueError,129 linestring.update_linestring_from_py,130 p, array([[1.0, 1.0, 1.0], [2.0, 2.0, 2.0]])131 )132 133
