Changeset 5134
- Timestamp:
- 04/30/07 23:04:50 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/geos/GEOSGeometry.py
r5030 r5134 207 207 208 208 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)." 210 210 status = lgeos.GEOSNormalize(self._g) 211 211 if status == -1: raise GEOSException, 'failed to normalize geometry' … … 327 327 Spatial Reference System of this Geometry. The optional third parameter sets 328 328 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) 330 330 """ 331 331 if type(width) != type(0.0): … … 333 333 if type(quadsegs) != type(0): 334 334 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)) 336 336 return GEOSGeometry(b, 'geos') 337 337
