EcohydroLib  1.29
Public Member Functions | Public Attributes | List of all members
ecohydrolib.grasslib.GRASSConfig Class Reference
Inheritance diagram for ecohydrolib.grasslib.GRASSConfig:

Public Member Functions

def __init__
 Constructor for GRASSConfig. More...
 
def __init__
 Constructor for GRASSConfig. More...
 

Public Attributes

 gisbase
 
 dbase
 
 location
 
 mapset
 

Constructor & Destructor Documentation

def ecohydrolib.grasslib.GRASSConfig.__init__ (   self,
  context,
  dbase,
  location = None,
  mapset = None,
  newLocation = False,
  overwrite = False 
)

Constructor for GRASSConfig.

Parameters
contextecohydrolib.Context with config containing a GRASS section with GISBASE entry
dbaseString representing a GRASS GIS data directory
locationString representing a GRASS project location within the data directory; defaults to DEFAULT_LOCATION.
mapsetString representing a GRASS mapset within the location; defaults to DEFAULT_MAPSET.
newLocationBoolean, True if this is a new location, False if the location is expected to already exist
overwriteBoolean, if False, constructor will raise an error if newLocation is True and the location already exists

IOError(errno.ENOTDIR) if dbase is not a writable directory IOError(errno.EACCESS) if dbase is not writable IOError(errno.EEXIST) if location exists and newLocation == True

def ecohydrolib.grasslib.GRASSConfig.__init__ (   self,
  context,
  dbase,
  location = None,
  mapset = None,
  newLocation = False,
  overwrite = False 
)

Constructor for GRASSConfig.

Parameters
contextecohydrolib.Context with config containing a GRASS section with GISBASE entry
dbaseString representing a GRASS GIS data directory
locationString representing a GRASS project location within the data directory; defaults to DEFAULT_LOCATION.
mapsetString representing a GRASS mapset within the location; defaults to DEFAULT_MAPSET.
newLocationBoolean, True if this is a new location, False if the location is expected to already exist
overwriteBoolean, if False, constructor will raise an error if newLocation is True and the location already exists

IOError(errno.ENOTDIR) if dbase is not a writable directory IOError(errno.EACCESS) if dbase is not writable IOError(errno.EEXIST) if location exists and newLocation == True

Member Data Documentation

ecohydrolib.grasslib.GRASSConfig.dbase
ecohydrolib.grasslib.GRASSConfig.gisbase
ecohydrolib.grasslib.GRASSConfig.location
ecohydrolib.grasslib.GRASSConfig.mapset

The documentation for this class was generated from the following file: