Ejemplo n.º 1
0
    def copy(self, category):
        """Copy from another Category class

        :param category: Category class to be copied
        :type category: Category object
        """
        libraster.Rast_copy_cats(ctypes.byref(self.c_cats),     # to
                                 ctypes.byref(category._cats))  # from
        self._read_cats()
Ejemplo n.º 2
0
 def copy(self, category):
     """Copy from another Category class"""
     libraster.Rast_copy_cats(
         ctypes.byref(self._cats),  # to
         ctypes.byref(category._cats))  # from
     self._read_cats()