Django

Code

Changeset 5134

Show
Ignore:
Timestamp:
04/30/07 23:04:50 (1 year ago)
Author:
jbronn
Message:

gis: width parameter on buffer() should be a double (thanks Todd Small\!). minor docstring tweaks.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis/django/contrib/gis/geos/GEOSGeometry.py

    r5030 r5134  
    207207 
    208208    def normalize(self): 
    209         "Converts this Geometry to normal form (or canonical form).Converts this Geometry to normal form (or canonical form).
     209        "Converts this Geometry to normal form (or canonical form).
    210210        status = lgeos.GEOSNormalize(self._g) 
    211211        if status == -1: raise GEOSException, 'failed to normalize geometry' 
     
    327327        Spatial Reference System of this Geometry. The optional third parameter sets 
    328328        the number of segment used to approximate a quarter circle (defaults to 8). 
    329         [Text from PostGIS documentation at ch. 6.2.2 <-- verify] 
     329        (Text from PostGIS documentation at ch. 6.1.3) 
    330330        """ 
    331331        if type(width) != type(0.0): 
     
    333333        if type(quadsegs) != type(0): 
    334334            raise TypeError, 'quadsegs parameter must be an integer' 
    335         b = lgeos.GEOSBuffer(self._g, c_float(width), c_int(quadsegs)) 
     335        b = lgeos.GEOSBuffer(self._g, c_double(width), c_int(quadsegs)) 
    336336        return GEOSGeometry(b, 'geos') 
    337337