Changeset 1051

Show
Ignore:
Timestamp:
02/22/08 15:53:03
Author:
seang
Message:

set ndim, not ndims

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Shapely/trunk/shapely/geometry/polygon.py

    r1044 r1051  
    173173            pass 
    174174        else: 
    175             self._geom, self._ndims = geos_linearring_from_py(coordinates) 
     175            self._geom, self._ndim = geos_linearring_from_py(coordinates) 
    176176 
    177177    @property 
     
    279279def geos_polygon_from_py(shell, holes=None): 
    280280    if shell is not None: 
    281         geos_shell, ndims = geos_linearring_from_py(shell) 
     281        geos_shell, ndim = geos_linearring_from_py(shell) 
    282282        if holes: 
    283283            ob = holes 
     
    295295            # add to coordinate sequence 
    296296            for l in xrange(L): 
    297                 geom, ndims = geos_linearring_from_py(ob[l]) 
     297                geom, ndim = geos_linearring_from_py(ob[l]) 
    298298                geos_holes[l] = cast(geom, c_void_p) 
    299299 
     
    308308                        L 
    309309                        ), 
    310             ndims 
     310            ndim 
    311311            ) 
    312312 
     
    340340 
    341341        if shell is not None: 
    342             self._geom, self._ndims = geos_polygon_from_py(shell, holes) 
     342            self._geom, self._ndim = geos_polygon_from_py(shell, holes) 
    343343 
    344344    @property