Changeset 1176

Show
Ignore:
Timestamp:
01/05/09 14:20:01 (20 months ago)
Author:
seang
Message:

Increment version, note branching, remove obsolete linestring factory test.

Location:
Shapely/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • Shapely/trunk/CHANGES.txt

    r1158 r1176  
    11All tickets are children of http://trac.gispython.org/lab/ticket. 
     2 
     31.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. 
    27 
    381.0.11 (2008-11-20) 
  • Shapely/trunk/setup.py

    r1166 r1176  
    44# Require ctypes egg only for Python < 2.5 
    55install_requires = ['setuptools'] 
    6 #if version_info[:2] < (2,5): 
    7 #    install_requires.append('ctypes') 
    86 
    97# Get text from README.txt 
     
    119 
    1210setup(name          = 'Shapely', 
    13       version       = '1.0.12', 
     11      version       = '1.1.0', 
    1412      description   = 'Geospatial geometries, predicates, and operations', 
    1513      license       = 'BSD', 
     
    2624      test_suite = 'tests.test_suite', 
    2725      classifiers   = [ 
    28         'Development Status :: 5 - Production/Stable', 
     26        'Development Status :: 4 - Beta', 
    2927        'Intended Audience :: Developers', 
    3028        'Intended Audience :: Science/Research', 
  • Shapely/trunk/shapely/factory.py

    r1175 r1176  
    180180    # update_ndim: number of dimensions of that geometry 
    181181    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" 
    183185    cs = _init_sequence(update_geom, update_ndim, m, n) 
    184186    for i, coords in enumerate(q): 
  • Shapely/trunk/shapely/geometry/point.py

    r1175 r1176  
    195195      >>> items = sorted(a.__array_interface__.items()) 
    196196      >>> 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...>),  
    198198      ('shape', (2,)),  
    199199      ('typestr', '<f8'),  
  • Shapely/trunk/tests/test_linestring.py

    r1168 r1176  
    114114                          array([0, 0]) 
    115115                          ) 
    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