def ecohydrolib.grasslib.GRASSConfig.__init__ |
( |
|
self, |
|
|
|
context, |
|
|
|
dbase, |
|
|
|
location = None , |
|
|
|
mapset = None , |
|
|
|
newLocation = False , |
|
|
|
overwrite = False |
|
) |
| |
Constructor for GRASSConfig.
- Parameters
-
context | ecohydrolib.Context with config containing a GRASS section with GISBASE entry |
dbase | String representing a GRASS GIS data directory |
location | String representing a GRASS project location within the data directory; defaults to DEFAULT_LOCATION. |
mapset | String representing a GRASS mapset within the location; defaults to DEFAULT_MAPSET. |
newLocation | Boolean, True if this is a new location, False if the location is expected to already exist |
overwrite | Boolean, 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
-
context | ecohydrolib.Context with config containing a GRASS section with GISBASE entry |
dbase | String representing a GRASS GIS data directory |
location | String representing a GRASS project location within the data directory; defaults to DEFAULT_LOCATION. |
mapset | String representing a GRASS mapset within the location; defaults to DEFAULT_MAPSET. |
newLocation | Boolean, True if this is a new location, False if the location is expected to already exist |
overwrite | Boolean, 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
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: