Skip to content
Permalink
Browse files

[GRASS] Update and adaptation of GRASS plugin modules to GRASS 7

  • Loading branch information
blazek committed Aug 31, 2015
2 parents 9a12012 + 6e4c4f3 commit 539c95283f7429b140d43d24c202ce374aa9b83b
Showing with 236 additions and 145 deletions.
  1. +4 −4 src/plugins/grass/modules/db.out.ogr.qgm
  2. +11 −9 src/plugins/grass/modules/default.qgc
  3. +6 −6 src/plugins/grass/modules/r.basins.fill.qgm
  4. +4 −4 src/plugins/grass/modules/r.carve.qgm
  5. +4 −4 src/plugins/grass/modules/r.circle.qgm
  6. +4 −2 src/plugins/grass/modules/r.coin.qgm
  7. +7 −3 src/plugins/grass/modules/r.distance.qgm
  8. +4 −4 src/plugins/grass/modules/r.fill.dir.qgm
  9. +4 −4 src/plugins/grass/modules/r.lake.seed.qgm
  10. +6 −6 src/plugins/grass/modules/r.lake.xy.qgm
  11. +3 −2 src/plugins/grass/modules/r.plane.qgm
  12. +4 −4 src/plugins/grass/modules/r.random.qgm
  13. +4 −4 src/plugins/grass/modules/r.random.raster.qgm
  14. +3 −3 src/plugins/grass/modules/r.reclass.area.greater.qgm
  15. +3 −3 src/plugins/grass/modules/r.reclass.area.lesser.qgm
  16. +4 −2 src/plugins/grass/modules/r.regression.line.qgm
  17. +3 −1 src/plugins/grass/modules/r.surf.area.qgm
  18. +2 −1 src/plugins/grass/modules/r.volume.qgm
  19. +7 −7 src/plugins/grass/modules/r.water.outlet.qgm
  20. BIN src/plugins/grass/modules/v.db.addcolumn.1.png
  21. +7 −0 src/plugins/grass/modules/v.db.addcolumn.qgm
  22. BIN src/plugins/grass/modules/v.db.dropcolumn.1.png
  23. +7 −0 src/plugins/grass/modules/v.db.dropcolumn.qgm
  24. +2 −1 src/plugins/grass/modules/v.extract.list.qgm
  25. +4 −2 src/plugins/grass/modules/v.hull.qgm
  26. +4 −4 src/plugins/grass/modules/v.in.ogr.loc.qgm
  27. +6 −4 src/plugins/grass/modules/v.kcv.qgm
  28. +5 −1 src/plugins/grass/modules/v.kernel.qgm
  29. +6 −3 src/plugins/grass/modules/v.net.alloc.qgm
  30. +6 −3 src/plugins/grass/modules/v.net.iso.qgm
  31. +4 −2 src/plugins/grass/modules/v.net.nodes.qgm
  32. +10 −5 src/plugins/grass/modules/v.net.path.qgm
  33. +7 −3 src/plugins/grass/modules/v.net.qgm
  34. +6 −3 src/plugins/grass/modules/v.net.salesman.qgm
  35. +6 −3 src/plugins/grass/modules/v.net.steiner.qgm
  36. +4 −2 src/plugins/grass/modules/v.net.visibility.qgm
  37. +10 −5 src/plugins/grass/modules/v.outlier.qgm
  38. +5 −3 src/plugins/grass/modules/v.random.qgm
  39. +4 −2 src/plugins/grass/modules/v.rast.stats.qgm
  40. +3 −2 src/plugins/grass/modules/v.sample.qgm
  41. +8 −4 src/plugins/grass/modules/v.surf.bspline.qgm
  42. +23 −14 src/plugins/grass/modules/v.surf.rst.qgm
  43. +4 −2 src/plugins/grass/modules/v.what.rast.qgm
  44. +8 −4 src/plugins/grass/modules/v.what.vect.qgm
@@ -3,9 +3,9 @@

<qgisgrassmodule label="Exports attribute tables into various format" module="db.out.ogr">
<option key="input" />
<file key="dsn" type="new" version_max="6.4"/>
<file key="output" type="new" version_min="7.0"/>
<file key="dsn" type="new" version_max="6"/>
<file key="output" type="new" version_min="7"/>
<option key="format" />
<option key="db_table" version_max="6.4"/>
<option key="table" version_min="7.0"/>
<option key="db_table" version_max="6"/>
<option key="table" version_min="7"/>
</qgisgrassmodule>
@@ -25,7 +25,7 @@
<section label="File management">
<section label="Import into GRASS">
<section label="Import raster into GRASS">
<section label="Import raster into GRASS from QGIS view">
<section label="Import raster into GRASS from QGIS view">
<grass name="r.in.gdal.qgis"/>
<grass name="r.in.gdal.qgis.loc"/>
</section>
@@ -51,7 +51,7 @@
</section>
</section>
<section label="Import vector into GRASS">
<grass name="v.in.ogr.qgis"/>
<grass name="v.in.ogr.qgis"/>
<grass name="v.in.ogr"/>
<grass name="v.in.ogr.loc"/>
<grass name="v.in.ogr.all"/>
@@ -268,19 +268,19 @@
<grass name="v.surf.bspline"/>
<grass name="v.surf.idw"/>
<grass name="v.surf.rst"/>
<grass name="r.bilinear" version_min="6.4"/>
<grass name="r.surf.idw"/>
<grass name="r.surf.idw2"/>
<grass name="r.bilinear" version_min="6.4"/>
<grass name="r.surf.idw"/>
<grass name="r.surf.idw2"/>
<grass name="r.fillnulls"/>
<grass name="r.surf.contour"/>
<grass name="r.surf.contour"/>
</section>
</section>
<section label="Reports and statistics">
<section label="Reports">
<grass name="r.category"/>
</section>
<section label="Statistics">
<grass name="r.stats"/>
<grass name="r.stats"/>
<grass name="r.sum"/>
<grass name="r.report"/>
<grass name="r.average"/>
@@ -475,12 +475,14 @@
<grass name="v.db.droptable"/>
</section>
<section label="Columns management">
<grass name="v.db.addcol"/>
<grass name="v.db.addcol" version_max="6.4"/>
<grass name="v.db.addcolumn" version_min="7.0"/>
<grass name="v.db.update_const"/>
<grass name="v.db.update_query"/>
<grass name="v.db.update_op"/>
<grass name="v.db.update_op_query"/>
<grass name="v.db.dropcol" version_min="6.4"/>
<grass name="v.db.dropcol" version_min="6.4" version_max="6.4"/>
<grass name="v.db.dropcolumn" version_min="7.0"/>
<grass name="v.db.renamecol"/>
<grass name="db.execute"/>
<grass name="db.select"/>
@@ -4,10 +4,10 @@
<!-- direct note: the module runs, but it was not tested with real data -->
<qgisgrassmodule label="Create watershed subbasins raster" module="r.basins.fill" direct="1">
<option key="number" />
<option key="c_map" version_max="6.4"/>
<option key="cnetwork" version_min="7.0"/>
<option key="t_map" version_max="6.4"/>
<option key="tnetwork" version_min="7.0"/>
<option key="result" version_max="6.4"/>
<option key="output" version_min="7.0"/>
<option key="c_map" version_max="6"/>
<option key="cnetwork" version_min="7"/>
<option key="t_map" version_max="6"/>
<option key="tnetwork" version_min="7"/>
<option key="result" version_max="6"/>
<option key="output" version_min="7"/>
</qgisgrassmodule>
@@ -2,10 +2,10 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Take vector stream data, transform it to raster, and subtract depth from the output DEM" module="r.carve">
<option key="rast" version_max="6.4"/>
<option key="raster" version_min="7.0"/>
<option key="vect" version_max="6.4"/>
<option key="vector" version_min="7.0"/>
<option key="rast" version_max="6"/>
<option key="raster" version_min="7"/>
<option key="vect" version_max="6"/>
<option key="vector" version_min="7"/>
<option key="width" />
<option key="depth" />
<flag key="n" />
@@ -2,11 +2,11 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Create a map containing concentric rings" module="r.circle">
<option key="coordinate" version_max="6.4"/>
<option key="coordinates" version_min="7.0"/>
<option key="coordinate" version_max="6"/>
<option key="coordinates" version_min="7"/>
<option key="min" answer="0" />
<option key="max" />
<option key="mult" answer="1" version_max="6.4"/>
<option key="multiplier" answer="1" version_min="7.0"/>
<option key="mult" answer="1" version_max="6"/>
<option key="multiplier" answer="1" version_min="7"/>
<option key="output" />
</qgisgrassmodule>
@@ -2,7 +2,9 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Tabulate mutual occurrence (coincidence) of categories for two rasters" module="r.coin">
<option key="map1" />
<option key="map2" />
<option key="map1" version_max="6"/>
<option key="first" version_min="7"/>
<option key="map2" version_max="6"/>
<option key="second" version_min="7"/>
<option key="units" />
</qgisgrassmodule>
@@ -2,8 +2,12 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Locate the closest points between objects in two raster maps" module="r.distance">
<option key="maps" option="map1"/>
<option key="maps" option="map2"/>
<option key="fs" advanced="yes"/>
<option key="maps" option="map1" version_max="6"/>
<option key="map" option="map1" version_min="7"/>
<option key="maps" option="map2" version_max="6"/>
<option key="map" option="map2" version_min="7"/>
<option key="fs" advanced="yes" version_max="6"/>
<option key="separator" advanced="yes" version_min="7"/>
<option key="sort" advanced="yes" version_min="7"/>
</qgisgrassmodule>

@@ -3,9 +3,9 @@

<qgisgrassmodule label="Filter and create depressionless elevation map and flow direction map from elevation raster" module="r.fill.dir">
<option key="input" />
<option key="type" answer="grass" hidden="yes" version_max="6.4"/>
<option key="format" answer="grass" hidden="yes" version_min="7.0"/>
<option key="elevation" version_max="6.4"/>
<option key="output" version_min="7.0"/>
<option key="type" answer="grass" hidden="yes" version_max="6"/>
<option key="format" answer="grass" hidden="yes" version_min="7"/>
<option key="elevation" version_max="6"/>
<option key="output" version_min="7"/>
<option key="direction" />
</qgisgrassmodule>
@@ -2,10 +2,10 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Fill lake from seed at given level" module="r.lake">
<option key="dem" version_max="6.4"/>
<option key="elevation" version_min="7.0"/>
<option key="dem" version_max="6"/>
<option key="elevation" version_min="7"/>
<option key="seed" />
<option key="wl" version_max="6.4"/>
<option key="water_level" version_min="7.0"/>
<option key="wl" version_max="6"/>
<option key="water_level" version_min="7"/>
<option key="lake" />
</qgisgrassmodule>
@@ -2,12 +2,12 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Fill lake from seed point at given level" module="r.lake">
<option key="dem" version_max="6.4"/>
<option key="elevation" version_min="7.0"/>
<option key="xy" version_max="6.4"/>
<option key="coordinates" version_min="7.0"/>
<option key="wl" version_max="6.4"/>
<option key="water_level" version_min="7.0"/>
<option key="dem" version_max="6"/>
<option key="elevation" version_min="7"/>
<option key="xy" version_max="6"/>
<option key="coordinates" version_min="7"/>
<option key="wl" version_max="6"/>
<option key="water_level" version_min="7"/>
<flag key="n" />
<flag key="o" />
<option key="lake" />
@@ -7,5 +7,6 @@
<option key="easting" />
<option key="northing" />
<option key="elevation" />
<option key="name" />
</qgisgrassmodule>
<option key="name" version_max="6"/>
<option key="output" version_min="7"/>
</qgisgrassmodule>
@@ -3,8 +3,8 @@

<qgisgrassmodule label="Create random vector point contained in raster" module="r.random">
<option key="input"/>
<option key="n" answer="1" hidden="no" version_max="6.4"/>
<option key="npoints" answer="1" hidden="no" version_min="7.0"/>
<option key="vector_output" version_max="6.4"/>
<option key="vector" version_min="7.0"/>
<option key="n" answer="1" hidden="no" version_max="6"/>
<option key="npoints" answer="1" hidden="no" version_min="7"/>
<option key="vector_output" version_max="6"/>
<option key="vector" version_min="7"/>
</qgisgrassmodule>
@@ -3,8 +3,8 @@

<qgisgrassmodule label="Create random raster" module="r.random" direct="1">
<option key="input"/>
<option key="n" answer="1" hidden="no" version_max="6.4"/>
<option key="npoints" answer="1" hidden="no" version_min="7.0"/>
<option key="raster_output" version_max="6.4"/>
<option key="raster" version_min="7.0"/>
<option key="n" answer="1" hidden="no" version_max="6"/>
<option key="npoints" answer="1" hidden="no" version_min="7"/>
<option key="raster_output" version_max="6"/>
<option key="raster" version_min="7"/>
</qgisgrassmodule>
@@ -3,8 +3,8 @@

<qgisgrassmodule label="Reclass raster with patches larger than user-defined area size (in hectares)" module="r.reclass.area">
<option key="input" />
<option key="greater" version_max="6.4"/>
<option key="mode" answer="greater" hidden="yes" version_min="7.0"/>
<option key="value" version_min="7.0"/>
<option key="greater" version_max="6"/>
<option key="mode" answer="greater" hidden="yes" version_min="7"/>
<option key="value" version_min="7"/>
<option key="output" />
</qgisgrassmodule>
@@ -3,8 +3,8 @@

<qgisgrassmodule label="Reclass raster with patches smaller than user-defined area size (in hectares)" module="r.reclass.area">
<option key="input" />
<option key="lesser" version_max="6.4"/>
<option key="mode" answer="lesser" hidden="yes" version_min="7.0"/>
<option key="value" version_min="7.0"/>
<option key="lesser" version_max="6"/>
<option key="mode" answer="lesser" hidden="yes" version_min="7"/>
<option key="value" version_min="7"/>
<option key="output" />
</qgisgrassmodule>
@@ -2,6 +2,8 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Calculate linear regression from two rasters: y = a + b*x" module="r.regression.line">
<option key="map1" />
<option key="map2"/>
<option key="map1" version_max="6"/>
<option key="mapx" version_min="7"/>
<option key="map2" version_max="6"/>
<option key="mapy" version_min="7"/>
</qgisgrassmodule>
@@ -2,6 +2,8 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Calculate raster surface area" module="r.surf.area">
<option key="input" />
<option key="input" version_max="6"/>
<option key="map" version_min="7"/>
<option key="vscale" />
<option key="units" version_min="7"/>
</qgisgrassmodule>
@@ -3,7 +3,8 @@

<qgisgrassmodule label="Calculate volume of data clumps, and create vector with centroids of clumps" module="r.volume">
<flag key="f" />
<option key="data" />
<option key="data" version_max="6"/>
<option key="input" version_min="7"/>
<option key="clump" />
<option key="centroids" />
</qgisgrassmodule>
@@ -2,11 +2,11 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Create watershed basin" module="r.water.outlet">
<option key="drainage" version_max="6.4"/>
<option key="input" version_min="7.0"/>
<option key="easting" version_max="6.4"/>
<option key="northing" version_max="6.4"/>
<option key="coordinates" version_min="7.0"/>
<option key="basin" version_max="6.4"/>
<option key="output" version_min="7.0"/>
<option key="drainage" version_max="6"/>
<option key="input" version_min="7"/>
<option key="easting" version_max="6"/>
<option key="northing" version_max="6"/>
<option key="coordinates" version_min="7"/>
<option key="basin" version_max="6"/>
<option key="output" version_min="7"/>
</qgisgrassmodule>
Binary file not shown.
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Add one or more columns to attribute table" module="v.db.addcolumn">
<option key="map" layeroption="layer" />
<option key="columns"/>
</qgisgrassmodule>
Binary file not shown.
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Drop column from attribute table" module="v.db.dropcolumn">
<option key="map" layeroption="layer" />
<field key="columns" layer="map" label="Attribute field" type="integer,double,varchar,string"/>
</qgisgrassmodule>
@@ -3,6 +3,7 @@

<qgisgrassmodule label="Extract selected features" module="v.extract">
<option key="input" typeoption="type" layeroption="layer" id="input"/>
<selection key="list" layerid="input" label="Cats" />
<selection key="list" layerid="input" label="Cats" version_max="6"/>
<selection key="cats" layerid="input" label="Cats" version_min="7"/>
<option key="output" />
</qgisgrassmodule>
@@ -3,6 +3,8 @@

<qgisgrassmodule label="Convex hull" module="v.hull">
<option key="input"/>
<option key="output" />
<flag key="a" answer="on" hidden="yes" />
<option key="output"/>
<flag key="a" answer="on" version_max="6"/>
<flag key="r" answer="off" version_min="7"/>
<flag key="f" answer="on"/>
</qgisgrassmodule>
@@ -2,13 +2,13 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Import OGR vector and create a fitted location" module="v.in.ogr">
<file key="dsn" version_max="6.4"/>
<file key="input" version_min="7.0"/>
<file key="dsn" version_max="6"/>
<file key="input" version_min="7"/>
<option key="output" />
<option key="location" />
<option key="type" advanced="yes"/>
<flag key="z" answer="off" hidden="no" advanced="yes" version_max="6.4"/>
<flag key="2" answer="off" hidden="no" advanced="yes" version_min="7.0"/>
<flag key="z" answer="off" hidden="no" advanced="yes" version_max="6"/>
<flag key="2" answer="off" hidden="no" advanced="yes" version_min="7"/>
<flag key="t" answer="off" hidden="no" advanced="yes"/>
<flag key="o" answer="off" hidden="no" advanced="yes"/>
<flag key="r" answer="off" hidden="no" advanced="yes"/>
@@ -2,8 +2,10 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Randomly partition points into test/train sets" module="v.kcv">
<option key="input" />
<option key="k" />
<option key="input" version_max="6"/>
<option key="map" version_min="7"/>
<option key="k" version_max="6"/>
<option key="npartitions" version_min="7"/>
<option key="column" ansewr="part" />
<option key="output" />
</qgisgrassmodule>
<option key="output" version_max="6"/>
</qgisgrassmodule>
@@ -3,6 +3,10 @@

<qgisgrassmodule label="Gaussian kernel density" module="v.kernel" manual="v.kernel">
<option key="input" />
<option key="stddeviation" />
<option key="stddeviation" version_max="6"/>
<option key="radius" version_min="7"/>
<option key="mult" answer="1" advanced="yes" version_max="6"/>
<option key="multiplier" answer="1" advanced="yes" version_min="7"/>
<option key="kernel" answer="Gaussian" advanced="yes"/>
<option key="output" />
</qgisgrassmodule>

0 comments on commit 539c952

Please sign in to comment.
You can’t perform that action at this time.