Skip to content

Commit 1e41b81

Browse files
committedOct 6, 2013
Merge pull request #921 from gioman/master
add the -r parameter to r.external (used now to create grass inputs for ...
2 parents 4072e39 + 442b236 commit 1e41b81

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed
 

‎python/plugins/processing/grass/GrassAlgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def processAlgorithm(self, progress):
381381

382382
if isinstance(out, OutputVector):
383383
filename = out.value
384-
command = 'v.out.ogr -c -e input=' + out.name + uniqueSufix
384+
command = 'v.out.ogr -c -e -z input=' + out.name + uniqueSufix
385385
command += ' dsn="' + os.path.dirname(out.value) + '"'
386386
command += ' format=ESRI_Shapefile'
387387
command += ' olayer=' + os.path.basename(out.value)[:-4]
@@ -483,7 +483,7 @@ def exportRasterLayer(self, layer):
483483
command += ' input="' + layer + '"'
484484
command += ' band=1'
485485
command += ' output=' + destFilename
486-
command += ' --overwrite -o'
486+
command += ' --overwrite -o -r'
487487
return command
488488

489489
def getTempFilename(self):
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
v.surf.bspline
2+
v.surf.bspline.lambda - Bicubic or bilinear spline interpolation with Tykhonov regularization.
3+
Vector (v.*)
4+
ParameterVector|input|Input points layer|-1|False
5+
ParameterNumber|sie|Length of each spline step in the east-west direction|None|None|4
6+
ParameterNumber|sin|Length of each spline step in the north-south direction|None|None|4
7+
ParameterSelection|method|Spline interpolation algorithm|bilinear;bicubic
8+
ParameterTableField|column|Attribute table column with values to interpolate|input|-1|False
9+
ParameterBoolean|-c|Find the best Tykhonov regularizing parameter using a "leave-one-out" cross validation method|True
10+
ParameterBoolean|-e|Estimate point density and distance|False
11+
ParameterSelection|layer|layer|1;0
12+
OutputHTML|html|Lambda or Point Density and Distance
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
v.surf.bspline
2+
v.surf.bspline.sparse - Bicubic or bilinear spline interpolation with Tykhonov regularization.
3+
Vector (v.*)
4+
ParameterVector|input|Input points layer|-1|False
5+
ParameterVector|sparse|Input layer of sparse points|-1|False
6+
ParameterNumber|sie|Length of each spline step in the east-west direction|None|None|4
7+
ParameterNumber|sin|Length of each spline step in the north-south direction|None|None|4
8+
ParameterSelection|method|Spline interpolation algorithm|bilinear;bicubic
9+
ParameterNumber|lambda_i|Tykhonov regularization parameter (affects smoothing)|None|None|0.01
10+
ParameterTableField|column|Attribute table column with values to interpolate|input|-1|False
11+
ParameterSelection|layer|layer|1;0
12+
OutputRaster|raster|Output raster layer

‎python/plugins/processing/grass/description/v.surf.bspline.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ v.surf.bspline
22
v.surf.bspline - Bicubic or bilinear spline interpolation with Tykhonov regularization.
33
Vector (v.*)
44
ParameterVector|input|Input points layer|-1|False
5-
ParameterVector|sparse|Input layer of sparse points|-1|False
65
ParameterNumber|sie|Length of each spline step in the east-west direction|None|None|4
76
ParameterNumber|sin|Length of each spline step in the north-south direction|None|None|4
87
ParameterSelection|method|Spline interpolation algorithm|bilinear;bicubic
9-
ParameterNumber|lambda_i|Tykhonov regularization parameter (affects smoothing)|None|None|1
8+
ParameterNumber|lambda_i|Tykhonov regularization parameter (affects smoothing)|None|None|0.01
109
ParameterTableField|column|Attribute table column with values to interpolate|input|-1|False
11-
ParameterBoolean|-c|Find the best Tykhonov regularizing parameter using a "leave-one-out" cross validation method|False
12-
ParameterBoolean|-e|Estimate point density and distance|False
13-
OutputVector|output|Output vector layer
14-
OutputRaster|raster|Output raster layer
10+
ParameterSelection|layer|layer|1;0
11+
OutputRaster|raster|Output raster layer

0 commit comments

Comments
 (0)
Please sign in to comment.