Example #1
0
    def rename(self, newname):
        """Method to rename the Vector map

        :param newname: the new name for the Vector map
        :type newname: str
        """
        if self.exist():
            if not self.is_open():
                utils.rename(self.name, newname, 'vect')
            else:
                raise GrassError("The map is open, not able to renamed it.")
        self._name = newname
Example #2
0
    def rename(self, newname):
        """Method to rename the Vector map

        :param newname: the new name for the Vector map
        :type newname: str
        """
        if self.exist():
            if not self.is_open():
                utils.rename(self.name, newname, 'vect')
            else:
                raise GrassError("The map is open, not able to renamed it.")
        self._name = newname
Example #3
0
 def rename(self, newname):
     """Rename the map"""
     if self.exist():
         utils.rename(self.name, newname, "rast")
     self._name = newname
Example #4
0
 def rename(self, newname):
     """Rename the map"""
     if self.exist():
         utils.rename(self.name, newname, 'rast')
     self._name = newname