django/contrib/gis/geos/polygon.py
branchtrunk
changeset 138 466bece04a15
parent 95 233dbb50fdf2
child 352 ed67864049e9
     1.1 --- a/django/contrib/gis/geos/polygon.py	Tue Jan 20 19:00:33 2009 -0600
     1.2 +++ b/django/contrib/gis/geos/polygon.py	Sat Jan 31 15:18:50 2009 -0600
     1.3 @@ -97,7 +97,7 @@
     1.4          # geometry, and destroying the old geometry.
     1.5          prev_ptr = self.ptr
     1.6          srid = self.srid
     1.7 -        self._ptr = capi.create_polygon(shell, holes_param, c_uint(nholes))
     1.8 +        self.ptr = capi.create_polygon(shell, holes_param, c_uint(nholes))
     1.9          if srid: self.srid = srid
    1.10          capi.destroy_geom(prev_ptr)
    1.11  
    1.12 @@ -110,11 +110,6 @@
    1.13          "Returns the number of rings in this Polygon."
    1.14          return self.num_interior_rings + 1
    1.15  
    1.16 -    def _checkindex(self, index):
    1.17 -        "Internal routine for checking the given ring index."
    1.18 -        if index < 0 or index >= len(self):
    1.19 -            raise GEOSIndexError('invalid Polygon ring index: %s' % index)
    1.20 -
    1.21      def _construct_ring(self, param, msg=''):
    1.22          "Helper routine for trying to construct a ring from the given parameter."
    1.23          if isinstance(param, LinearRing): return param