summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2007-05-01 04:04:50 +0000
committerJustin Bronn <jbronn@gmail.com>2007-05-01 04:04:50 +0000
commit58aa35e7a598ddec0badd789fd57b7706fa31c71 (patch)
tree0f2a1e343dd83aa52a7a55b6984aa8d7b3b4872f
parente30720a2dcb1e5b1b0be1baae4698a7270e04309 (diff)
gis: width parameter on buffer() should be a double (thanks Todd Small\!). minor docstring tweaks.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/geos/GEOSGeometry.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/geos/GEOSGeometry.py b/django/contrib/gis/geos/GEOSGeometry.py
index 73f14c9c07..dbdba68d3e 100644
--- a/django/contrib/gis/geos/GEOSGeometry.py
+++ b/django/contrib/gis/geos/GEOSGeometry.py
@@ -206,7 +206,7 @@ class GEOSGeometry:
return GEOSCoordSeq(clone, z=self.hasz)
def normalize(self):
- "Converts this Geometry to normal form (or canonical form).Converts this Geometry to normal form (or canonical form)."
+ "Converts this Geometry to normal form (or canonical form)."
status = lgeos.GEOSNormalize(self._g)
if status == -1: raise GEOSException, 'failed to normalize geometry'
@@ -326,13 +326,13 @@ class GEOSGeometry:
Geometry is less than or equal to distance. Calculations are in the
Spatial Reference System of this Geometry. The optional third parameter sets
the number of segment used to approximate a quarter circle (defaults to 8).
- [Text from PostGIS documentation at ch. 6.2.2 <-- verify]
+ (Text from PostGIS documentation at ch. 6.1.3)
"""
if type(width) != type(0.0):
raise TypeError, 'width parameter must be a float'
if type(quadsegs) != type(0):
raise TypeError, 'quadsegs parameter must be an integer'
- b = lgeos.GEOSBuffer(self._g, c_float(width), c_int(quadsegs))
+ b = lgeos.GEOSBuffer(self._g, c_double(width), c_int(quadsegs))
return GEOSGeometry(b, 'geos')
@property