def num_interior_rings(self): "Returns the number of interior rings." # Getting the number of rings return capi.get_nrings(self.ptr)
from ctypes import byref, c_uint
def num_interior_rings(self): "Returns the number of interior rings." # Getting the number of rings return capi.get_nrings(self.ptr)
def _get_single_external(self, index): return GEOSGeometry(capi.geom_clone(self._get_single_internal(index)), srid=self.srid) _set_single = GEOSGeometry._set_single_rebuild _assign_extended_slice = GEOSGeometry._assign_extended_slice_rebuild # #### Polygon Properties #### @property def num_interior_rings(self): <<<<<<< HEAD "Returns the number of interior rings." ======= "Return the number of interior rings." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 # Getting the number of rings return capi.get_nrings(self.ptr) def _get_ext_ring(self): <<<<<<< HEAD "Gets the exterior ring of the Polygon." return self[0] def _set_ext_ring(self, ring): "Sets the exterior ring of the Polygon." ======= "Get the exterior ring of the Polygon." return self[0] def _set_ext_ring(self, ring): "Set the exterior ring of the Polygon." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435