[Pywps-commits] r519 - trunk/pywps
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 18 17:14:11 CEST 2008
Author: jachym
Date: 2008-07-18 17:14:11 +0200 (Fri, 18 Jul 2008)
New Revision: 519
Modified:
trunk/pywps/Grass.py
Log:
updated documentation for GRASS
Modified: trunk/pywps/Grass.py
===================================================================
--- trunk/pywps/Grass.py 2008-07-18 15:11:08 UTC (rev 518)
+++ trunk/pywps/Grass.py 2008-07-18 15:14:11 UTC (rev 519)
@@ -1,5 +1,5 @@
"""
-This module is here for work with GRASS GIS environment varibales and
+Module is here for work with GRASS GIS environment varibales and
locations and mapsets
"""
# Author: Jachym Cepicky
@@ -28,6 +28,9 @@
import sys
class Grass:
+ """
+ GRASS initialization interface
+ """
locationDir = ""
locationName = ""
@@ -36,9 +39,8 @@
gisbase = ""
def __init__(self,executeRequest):
- """
- Initalization of GRASS environment variables (except GISRC).
- """
+ """ Initalization of GRASS environment variables (except GISRC). """
+
self.executeRequest = executeRequest
self.wps = self.executeRequest.wps
self.envs = {
@@ -47,8 +49,7 @@
"version":"GRASS_VERSION",
"gui":"GRASS_GUI",
"gisbase": "GISBASE",
- "ldLibraryPath": "LD_LIBRARY_PATH",
- "##":"a"
+ "ldLibraryPath": "LD_LIBRARY_PATH"
}
# put env
@@ -128,9 +129,8 @@
return self.mapsetName
def _windFile(self,mapset):
- """
- Create default WIND file
- """
+ """ Create default WIND file """
+
if mapset == "PERMANENT":
windname = "DEFAULT_WIND"
else:
@@ -153,6 +153,7 @@
return
def setEnv(self,key,value):
+ """Set GRASS environment variables """
origValue = os.getenv(key)
if origValue:
More information about the Pywps-commits
mailing list