예제 #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
예제 #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
예제 #3
0
파일: abstract.py 프로젝트: pesekon2/grass
 def rename(self, newname):
     """Rename the map"""
     if self.exist():
         utils.rename(self.name, newname, "rast")
     self._name = newname
예제 #4
0
 def rename(self, newname):
     """Rename the map"""
     if self.exist():
         utils.rename(self.name, newname, 'rast')
     self._name = newname