Skip to content

Commit 3acf6cd

Browse files
author
volayaf
committed
fixed #5954 anad #6087
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@309 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent 7eada52 commit 3acf6cd

5 files changed

Lines changed: 22 additions & 8 deletions

File tree

‎src/sextante/grass/GrassUtils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def grassPath():
6363
@staticmethod
6464
def grassHelpPath():
6565
folder = SextanteConfig.getSetting(GrassUtils.GRASS_HELP_FOLDER)
66-
if folder == None:
66+
if folder == None or folder == "":
6767
if SextanteUtils.isWindows():
6868
testfolders = [os.path.join(GrassUtils.grassPath(), "docs", "html")]
6969
else:
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
r.lake
2-
r.lake - Fills lake at given point to given level.
2+
r.lake.coords - Fills lake at given point to given level.
33
Raster (r.*)
44
ParameterRaster|dem|Name of terrain raster map (DEM)|False
55
ParameterString|wl|Water level|
66
ParameterString|xy|Seed point coordinates|
7-
ParameterRaster|seed|Name of raster map with given starting point(s) (at least 1 cell > 0)|False
87
ParameterBoolean|-n|Use negative depth values for lake raster map|False
9-
ParameterBoolean|-o|Overwrite seed map with result (lake) map|False
108
OutputRaster|lake|Name for output raster map with lake
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
r.lake
2+
r.lake.layer - Fills lake at given point to given level.
3+
Raster (r.*)
4+
ParameterRaster|dem|Name of terrain raster map (DEM)|False
5+
ParameterString|wl|Water level|
6+
ParameterRaster|seed|Name of raster map with given starting point(s) (at least 1 cell > 0)|False
7+
ParameterBoolean|-n|Use negative depth values for lake raster map|False
8+
OutputRaster|lake|Name for output raster map with lake
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
v.distance
2+
v.distance.toattr - Finds the nearest element in vector map 'to' for elements in vector map 'from'.
3+
Vector (v.*)
4+
ParameterVector|from|Name of existing vector map (from)|0|False
5+
ParameterVector|to|Name of existing vector map (to)|-1|False
6+
ParameterSelection|upload|Values describing the relation between two nearest features|to_attr
7+
ParameterTableField|column|Column where values specified by 'upload' option will be uploaded|to
8+
ParameterTableField|to_column|Column name of nearest feature|to
9+
ParameterBoolean|-a|Calculate distances to all features within the threshold|False
10+
OutputVector|output|Name for output vector map

‎src/sextante/grass/description/v.distance.txt‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ v.distance - Finds the nearest element in vector map 'to' for elements in vector
33
Vector (v.*)
44
ParameterVector|from|Name of existing vector map (from)|0|False
55
ParameterVector|to|Name of existing vector map (to)|-1|False
6-
ParameterSelection|upload|Values describing the relation between two nearest features|cat;dist;to_x;to_y;to_along;to_angle;to_attr
7-
ParameterString|column|Column name(s) where values specified by 'upload' option will be uploaded|col_name
8-
ParameterTableField|to_column|Column name of nearest feature (used with upload=to_attr)|to
9-
ParameterBoolean|-p|Print output to stdout, don't update attribute table|False
6+
ParameterSelection|upload|Values describing the relation between two nearest features|cat;dist;to_x;to_y;to_along;to_angle
7+
ParameterTableField|column|Column where values specified by 'upload' option will be uploaded|to
108
ParameterBoolean|-a|Calculate distances to all features within the threshold|False
119
OutputVector|output|Name for output vector map
1210

0 commit comments

Comments
 (0)