Skip to content
Permalink
Browse files

Merge pull request #2285 from PedroVenancio/grass7_plugin

Update and adaptation of some GRASS plugin modules to GRASS 7
  • Loading branch information
blazek committed Sep 4, 2015
2 parents c0a8958 + 781bffa commit 1ad2b7693b4a40234733fe9482e029ea86f473c2
Showing with 190 additions and 83 deletions.
  1. +2 −1 src/plugins/grass/modules/db.select.qgm
  2. +24 −19 src/plugins/grass/modules/default.qgc
  3. BIN src/plugins/grass/modules/i.colors.enhance.1.png
  4. BIN src/plugins/grass/modules/i.colors.enhance.2.png
  5. BIN src/plugins/grass/modules/i.colors.enhance.3.png
  6. +12 −0 src/plugins/grass/modules/i.colors.enhance.qgm
  7. +7 −4 src/plugins/grass/modules/i.fft.qgm
  8. +12 −6 src/plugins/grass/modules/i.his.rgb.qgm
  9. +6 −3 src/plugins/grass/modules/i.ifft.qgm
  10. BIN src/plugins/grass/modules/i.modis.qc.1.png
  11. +10 −0 src/plugins/grass/modules/i.modis.qc.qgm
  12. BIN src/plugins/grass/modules/i.pansharpen.1.png
  13. BIN src/plugins/grass/modules/i.pansharpen.2.png
  14. BIN src/plugins/grass/modules/i.pansharpen.3.png
  15. +11 −0 src/plugins/grass/modules/i.pansharpen.qgm
  16. +12 −6 src/plugins/grass/modules/i.rgb.his.qgm
  17. +2 −1 src/plugins/grass/modules/m.cogo.qgm
  18. +4 −2 src/plugins/grass/modules/m.proj.qgm
  19. +4 −2 src/plugins/grass/modules/r.describe.qgm
  20. BIN src/plugins/grass/modules/r.mask.rast.1.png
  21. BIN src/plugins/grass/modules/r.mask.rast.2.png
  22. BIN src/plugins/grass/modules/r.mask.vect.1.png
  23. BIN src/plugins/grass/modules/r.mask.vect.2.png
  24. +2 −1 src/plugins/grass/modules/v.clean.chdangles.qgm
  25. +2 −1 src/plugins/grass/modules/v.clean.prune.qgm
  26. +2 −1 src/plugins/grass/modules/v.clean.rmarea.qgm
  27. +2 −1 src/plugins/grass/modules/v.clean.rmdangles.qgm
  28. +2 −1 src/plugins/grass/modules/v.clean.snap.qgm
  29. +4 −2 src/plugins/grass/modules/v.db.join.qgm
  30. BIN src/plugins/grass/modules/v.db.renamecolumn.1.png
  31. BIN src/plugins/grass/modules/v.db.renamecolumn.2.png
  32. +7 −0 src/plugins/grass/modules/v.db.renamecolumn.qgm
  33. +2 −1 src/plugins/grass/modules/v.db.select.qgm
  34. +2 −1 src/plugins/grass/modules/v.db.select.where.qgm
  35. +4 −2 src/plugins/grass/modules/v.db.univar.qgm
  36. +2 −1 src/plugins/grass/modules/v.db.update_op.qgm
  37. +2 −1 src/plugins/grass/modules/v.db.update_op_query.qgm
  38. +3 −2 src/plugins/grass/modules/v.drape.qgm
  39. +4 −3 src/plugins/grass/modules/v.extrude.attr.qgm
  40. +1 −1 src/plugins/grass/modules/v.generalize.qgm
  41. BIN src/plugins/grass/modules/v.random.1.png
  42. BIN src/plugins/grass/modules/v.random.3d.1.png
  43. +13 −0 src/plugins/grass/modules/v.random.3d.qgm
  44. +1 −5 src/plugins/grass/modules/v.random.qgm
  45. +4 −2 src/plugins/grass/modules/v.segment.qgm
  46. +3 −2 src/plugins/grass/modules/v.support.qgm
  47. +4 −4 src/plugins/grass/modules/v.surf.rst.qgm
  48. +6 −3 src/plugins/grass/modules/v.to.points.qgm
  49. +3 −1 src/plugins/grass/modules/v.type.bl.qgm
  50. +3 −1 src/plugins/grass/modules/v.type.cp.qgm
  51. +3 −1 src/plugins/grass/modules/v.type.lb.qgm
  52. +3 −1 src/plugins/grass/modules/v.type.pc.qgm
@@ -6,5 +6,6 @@
<option key="database" answer="$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/" />
<option key="driver" />
<option key="sql" />
<option key="fs" answer="|" hidden="yes" />
<option key="fs" answer="|" hidden="yes" version_max="6"/>
<option key="separator" answer="|" hidden="yes" version_min="7"/>
</qgisgrassmodule>
@@ -268,9 +268,9 @@
<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.bilinear" version_max="6.4"/>
<grass name="r.surf.idw"/>
<grass name="r.surf.idw2"/>
<grass name="r.surf.idw2" version_max="6.4"/>
<grass name="r.fillnulls"/>
<grass name="r.surf.contour"/>
</section>
@@ -281,10 +281,10 @@
</section>
<section label="Statistics">
<grass name="r.stats"/>
<grass name="r.sum"/>
<grass name="r.sum" version_max="6.4"/>
<grass name="r.report"/>
<grass name="r.average"/>
<grass name="r.median"/>
<grass name="r.average" version_max="6.4"/>
<grass name="r.median" version_max="6.4"/>
<grass name="r.mode"/>
<grass name="r.volume"/>
<grass name="r.surf.area"/>
@@ -402,6 +402,7 @@
</section>
<section label="Create points">
<grass name="v.random"/>
<grass name="v.random.3d"/>
<grass name="v.perturb"/>
</section>
<section label="Manage training dataset">
@@ -431,33 +432,36 @@
</section>

<section label="Imagery">
<section label="Develop images and group">
<grass name="i.image.mosaic"/>
<section label="Develop images and group" version_max="6.4">
<grass name="i.image.mosaic" version_max="6.4"/>
</section>
<section label="Manage image colors">
<grass name="i.rgb.his"/>
<grass name="i.his.rgb"/>
<grass name="i.landsat.rgb"/>
<grass name="i.fusion.brovey"/>
<grass name="i.landsat.rgb" version_max="6.4"/>
<grass name="i.colors.enhance" version_min="7.0"/>
<grass name="i.fusion.brovey" version_max="6.4"/>
<grass name="i.pansharpen" version_min="7.0"/>
</section>
<section label="Filter image">
<grass name="i.zc"/>
<grass name="r.mfilter"/>
</section>
<section label="Tassled cap vegetation index">
<grass name="i.tasscap4"/>
<grass name="i.tasscap5"/>
<grass name="i.tasscap7"/>
<section label="Tassled cap vegetation index" version_max="6.4">
<grass name="i.tasscap4" version_max="6.4"/>
<grass name="i.tasscap5" version_max="6.4"/>
<grass name="i.tasscap7" version_max="6.4"/>
</section>
<section label="Transform image">
<grass name="i.fft"/>
<grass name="i.ifft"/>
</section>
<section label="Reports and statistics">
<grass name="r.describe"/>
<grass name="r.bitpattern"/>
<grass name="r.bitpattern" version_max="6.4"/>
<grass name="i.modis.qc" version_min="7.0"/>
<grass name="r.kappa"/>
<grass name="i.oif"/>
<grass name="i.oif" version_max="6.4"/>
</section>
</section>

@@ -545,9 +549,10 @@
<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" version_max="6.4"/>
<grass name="v.db.dropcol" version_max="6.4"/>
<grass name="v.db.dropcolumn" version_min="7.0"/>
<grass name="v.db.renamecol"/>
<grass name="v.db.renamecol" version_max="6.4"/>
<grass name="v.db.renamecolumn" version_min="7.0"/>
<grass name="db.execute"/>
<grass name="db.select"/>
<grass name="v.db.select"/>
@@ -559,8 +564,8 @@
</section>
</section>

<section label="3d Visualization">
<grass name="nviz"/>
<section label="3d Visualization" version_max="6.4">
<grass name="nviz" version_max="6.4"/>
</section>
<section label="Convert coordinates">
<grass name="m.cogo"/>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Auto-balancing of colors for RGB images" module="i.colors.enhance">
<option key="red" />
<option key="green" />
<option key="blue" />
<option key="strength" />
<flag key="f" advanced="yes"/>
<flag key="p" advanced="yes"/>
<flag key="r" advanced="yes"/>
</qgisgrassmodule>
@@ -2,8 +2,11 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Fast fourier transform for image processing" module="i.fft">
<option key="input_image" />
<option key="real_image" />
<option key="imaginary_image" />
<option key="range" />
<option key="input_image" version_max="6"/>
<option key="input" version_min="7"/>
<option key="real_image" version_max="6"/>
<option key="real" version_min="7"/>
<option key="imaginary_image" version_max="6"/>
<option key="imaginary" version_min="7"/>
<option key="range" version_max="6"/>
</qgisgrassmodule>
@@ -2,10 +2,16 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Hue Intensity Saturation (HIS) to Red Green Blue (RGB) raster color transform function" module="i.his.rgb">
<option key="hue_input" />
<option key="intensity_input" />
<option key="saturation_input" />
<option key="red_output" />
<option key="green_output" />
<option key="blue_output" />
<option key="hue_input" version_max="6"/>
<option key="hue" version_min="7"/>
<option key="intensity_input" version_max="6"/>
<option key="intensity" version_min="7"/>
<option key="saturation_input" version_max="6"/>
<option key="saturation" version_min="7"/>
<option key="red_output" version_max="6"/>
<option key="red" version_min="7"/>
<option key="green_output" version_max="6"/>
<option key="green" version_min="7"/>
<option key="blue_output" version_max="6"/>
<option key="blue" version_min="7"/>
</qgisgrassmodule>
@@ -2,7 +2,10 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Inverse fast fourier transform for image processing" module="i.ifft">
<option key="real_image" />
<option key="imaginary_image" />
<option key="output_image" />
<option key="real_image" version_max="6"/>
<option key="real" version_min="7"/>
<option key="imaginary_image" version_max="6"/>
<option key="imaginary" version_min="7"/>
<option key="output_image" version_max="6"/>
<option key="output" version_min="7"/>
</qgisgrassmodule>
Binary file not shown.
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Extracts quality control parameters from MODIS QC layers" module="i.modis.qc">
<option key="input" />
<option key="output" />
<option key="productname" />
<option key="qcname" />
<option key="band" />
</qgisgrassmodule>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Image fusion algorithms to sharpen multispectral with high-res panchromatic channels" module="i.pansharpen">
<option key="red" />
<option key="green" />
<option key="blue" />
<option key="pan" />
<option key="output" />
<option key="method" answer="brovey" advanced="yes"/>
</qgisgrassmodule>
@@ -2,10 +2,16 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Red Green Blue (RGB) to Hue Intensity Saturation (HIS) raster color transformation function" module="i.rgb.his">
<option key="red_input" />
<option key="green_input" />
<option key="blue_input" />
<option key="hue_output" />
<option key="intensity_output" />
<option key="saturation_output" />
<option key="red_input" version_max="6"/>
<option key="red" version_min="7"/>
<option key="green_input" version_max="6"/>
<option key="green" version_min="7"/>
<option key="blue_input" version_max="6"/>
<option key="blue" version_min="7"/>
<option key="hue_output" version_max="6"/>
<option key="hue" version_min="7"/>
<option key="intensity_output" version_max="6"/>
<option key="intensity" version_min="7"/>
<option key="saturation_output" version_max="6"/>
<option key="saturation" version_min="7"/>
</qgisgrassmodule>
@@ -3,7 +3,8 @@

<qgisgrassmodule label="Convert bearing and distance measurements to coordinates and vice versa" module="m.cogo">
<file key="input" type="old" />
<option key="coord" />
<option key="coord" version_max="6"/>
<option key="coordinates" version_min="7"/>
<flag key="r" />
<file key="output" type="new" />
</qgisgrassmodule>
@@ -5,10 +5,12 @@
<flag key="i" />
<flag key="o" />
<flag key="d" />
<flag key="v" />
<flag key="v" version_max="6"/>
<option key="coordinates" version_min="7"/>
<option key="input" />
<option key="output" />
<option key="fs" />
<option key="fs" version_max="6"/>
<option key="separator" version_min="7"/>
<option key="proj_in" />
<option key="proj_out" />
</qgisgrassmodule>
@@ -4,10 +4,12 @@
<qgisgrassmodule label="Display list of category values found in raster" module="r.describe">
<flag key="1" />
<flag key="r" />
<flag key="n" />
<flag key="d" />
<flag key="i" />
<flag key="q" />
<flag key="q" version_max="6"/>
<option key="map" />
<option key="nv" />
<option key="nv" version_max="6"/>
<option key="null_value" version_min="7"/>
<option key="nsteps" />
</qgisgrassmodule>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,6 +4,7 @@
<qgisgrassmodule label="Change the type of boundary dangle to line" module="v.clean">
<option key="input" typemask="area"/>
<option key="tool" answer="chdangle" hidden="yes"/>
<option key="thresh"/>
<option key="thresh" version_max="6"/>
<option key="threshold" version_min="7"/>
<option key="output"/>
</qgisgrassmodule>
@@ -4,6 +4,7 @@
<qgisgrassmodule label="Remove vertices in threshold from lines and boundaries, boundary is pruned only if topology is not damaged (new intersection, changed attachement of centroid), first and last segment of the boundary is never changed" module="v.clean">
<option key="input" typeoption="type"/>
<option key="tool" answer="prune" hidden="yes"/>
<option key="thresh"/>
<option key="thresh" version_max="6"/>
<option key="threshold" version_min="7"/>
<option key="output"/>
</qgisgrassmodule>
@@ -4,6 +4,7 @@
<qgisgrassmodule label="Remove small areas, the longest boundary with adjacent area is removed" module="v.clean">
<option key="input" typeoption="type"/>
<option key="tool" answer="rmarea" hidden="yes"/>
<option key="thresh"/>
<option key="thresh" version_max="6"/>
<option key="threshold" version_min="7"/>
<option key="output"/>
</qgisgrassmodule>
@@ -4,6 +4,7 @@
<qgisgrassmodule label="Remove dangles" module="v.clean">
<option key="input" typeoption="type"/>
<option key="tool" answer="rmdangle" hidden="yes"/>
<option key="thresh"/>
<option key="thresh" version_max="6"/>
<option key="threshold" version_min="7"/>
<option key="output"/>
</qgisgrassmodule>
@@ -4,6 +4,7 @@
<qgisgrassmodule label="Snap lines to vertex in threshold" module="v.clean">
<option key="input" typeoption="type"/>
<option key="tool" answer="snap" hidden="yes"/>
<option key="thresh"/>
<option key="thresh" version_max="6"/>
<option key="threshold" version_min="7"/>
<option key="output"/>
</qgisgrassmodule>
@@ -4,6 +4,8 @@
<qgisgrassmodule label="Join table to existing vector table" module="v.db.join">
<option key="map" layeroption="layer" />
<field key="column" layer="map" type="integer,string" label="Attribute field" />
<option key="otable"/>
<option key="ocolumn" label="Attribute field to join" />
<option key="otable" version_max="6"/>
<option key="other_table" version_min="7"/>
<option key="ocolumn" label="Attribute field to join" version_max="6"/>
<option key="other_column" label="Attribute field to join" version_min="7"/>
</qgisgrassmodule>
Binary file not shown.
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="Rename column in attribute table" module="v.db.renamecolumn">
<option key="map" layeroption="layer" />
<option key="column"/>
</qgisgrassmodule>
@@ -5,5 +5,6 @@
<option key="map" layeroption="layer" />
<field key="column" layer="map" type="integer,double,varchar" version_max="6.3"/>
<field key="columns" layer="map" type="integer,double,varchar" version_min="6.4"/>
<option key="fs" answer="|" hidden="yes" />
<option key="fs" answer="|" hidden="yes" version_max="6"/>
<option key="separator" answer="|" hidden="yes" version_min="7"/>
</qgisgrassmodule>
@@ -6,5 +6,6 @@
<field key="column" layer="map" type="integer,double,varchar" version_max="6.3"/>
<field key="columns" layer="map" type="integer,double,varchar" version_min="6.4"/>
<option key="where" />
<option key="fs" answer="|" hidden="yes" />
<option key="fs" answer="|" hidden="yes" version_max="6"/>
<option key="separator" answer="|" hidden="yes" version_min="7"/>
</qgisgrassmodule>
@@ -2,7 +2,9 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Calculate univariate statistics for numeric attributes in a data table" module="v.db.univar">
<option key="table" />
<field key="column" layer="table" type="integer,double" label="Attribute field" />
<option key="table" version_max="6"/>
<option key="map" version_min="7"/>
<field key="column" layer="table" type="integer,double" label="Attribute field" version_max="6"/>
<field key="column" layer="map" type="integer,double" label="Attribute field" version_min="7"/>
<flag key="e" answer="no"/>
</qgisgrassmodule>
@@ -4,5 +4,6 @@
<qgisgrassmodule label="Assign new value as result of operation on columns to column in attribute table" module="v.db.update">
<option key="map" layeroption="layer" />
<field key="column" layer="map" type="integer,double,varchar,string" label="Attribute field" />
<option key="qcolumn" />
<option key="qcolumn" version_max="6"/>
<option key="query_column" version_min="7"/>
</qgisgrassmodule>
@@ -4,6 +4,7 @@
<qgisgrassmodule label="Assign new value to column as result of operation on columns only if the result of query is TRUE" module="v.db.update">
<option key="map" layeroption="layer" />
<field key="column" layer="map" type="integer,double,varchar,string" label="Attribute field" />
<option key="qcolumn" />
<option key="qcolumn" version_max="6"/>
<option key="query_column" version_min="7"/>
<option key="where"/>
</qgisgrassmodule>
@@ -2,8 +2,9 @@
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Convert 2D vector to 3D vector by sampling of elevation raster. Default sampling by nearest neighbour" module="v.drape">
<option key="input" />
<option key="rast" />
<option key="input" />
<option key="rast" version_max="6"/>
<option key="elevation" version_min="7"/>
<option key="method" />
<option key="output" />
</qgisgrassmodule>
@@ -4,8 +4,9 @@
<qgisgrassmodule label="Extrudes flat vector object to 3D with height based on attribute" module="v.extrude">
<option key="input" layeroption="layer"/>
<option key="elevation" label="Elevation raster for height extraction (optional)"/>
<flag key="t" answer="on" advanced="yes" />
<flag key="t" answer="on" advanced="yes" />
<option key="zshift" advanced="yes" />
<field key="hcolumn" layer="input" type="integer,double" />
<option key="output"/>
<field key="hcolumn" layer="input" type="integer,double" version_max="6"/>
<field key="height_column" layer="input" type="integer,double" version_min="7"/>
<option key="output"/>
</qgisgrassmodule>

0 comments on commit 1ad2b76

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