Skip to content

Commit

Permalink
Added several GRASS modules - thanks Maciej Sieczka. Icons still miss…
Browse files Browse the repository at this point in the history
…ing, TBD

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14591 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
pcav committed Nov 13, 2010
1 parent 6cb7a0a commit 9c829f6
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/plugins/grass/modules-6.3/default.qgc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@
<grass name="r.sunmask.date.time"/>
</section>
<section label="Terrain analysis">
<grass name="r.cost"/>
<grass name="r.cost.coord"/>
<grass name="r.cost.rast"/>
<grass name="r.cost.vect"/>
<grass name="r.drain"/>
<grass name="r.shaded.relief"/>
<grass name="r.slope.aspect.slope"/>
Expand All @@ -193,6 +195,9 @@
<grass name="r.texture"/>
<grass name="r.texture.bis"/>
<grass name="r.los"/>
<grass name="r.grow.distance"/>
<grass name="r.walk.coord"/>
<grass name="r.walk.vect"/>
</section>
<section label="Transform features">
<grass name="r.clump"/>
Expand Down Expand Up @@ -264,6 +269,7 @@
<grass name="r.covar"/>
<grass name="r.regression.line"/>
<grass name="r.coin"/>
<grass name="r.distance"/>
</section>
</section>
</section>
Expand Down
9 changes: 7 additions & 2 deletions src/plugins/grass/modules-6.4/default.qgc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@
<grass name="r.sunmask.date.time"/>
</section>
<section label="Terrain analysis">
<grass name="r.cost"/>
<grass name="r.cost.coord"/>
<grass name="r.cost.rast"/>
<grass name="r.cost.vect"/>
<grass name="r.drain"/>
<grass name="r.shaded.relief"/>
<grass name="r.slope.aspect.slope"/>
Expand All @@ -216,7 +218,9 @@
<grass name="r.texture"/>
<grass name="r.texture.bis"/>
<grass name="r.los"/>
<grass name="r.grow.distance"/>
<grass name="r.grow.distance"/>
<grass name="r.walk.coord"/>
<grass name="r.walk.vect"/>
</section>
<section label="Transform features">
<grass name="r.clump"/>
Expand Down Expand Up @@ -289,6 +293,7 @@
<grass name="r.covar"/>
<grass name="r.regression.line"/>
<grass name="r.coin"/>
<grass name="r.distance"/>
</section>
</section>
</section>
Expand Down
15 changes: 15 additions & 0 deletions src/plugins/grass/modules-common/r.cost.coord.qgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Generate raster of cumulative cost of moving between locations based on cost input raster and starting point(s) coordinates" module="r.cost">
<option key="input"/>
<option key="coordinate"/>
<option key="output"/>
<option key="max_cost" hidden="no"/>
<option key="stop_coordinate" hidden="no" advanced="yes"/>
<!-- commented out until #3203 is fixed <option key="stop_points" hidden="no" advanced="yes"/> -->
<option key="null_cost" hidden="no" advanced="yes"/>
<flag key="k" hidden="no" />
<flag key="n" hidden="no" advanced="yes"/>
<flag key="r" hidden="no" advanced="yes"/>
</qgisgrassmodule>
15 changes: 15 additions & 0 deletions src/plugins/grass/modules-common/r.cost.rast.qgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Generate raster of cumulative cost of moving between locations based on cost input raster and starting point(s) raster" module="r.cost">
<option key="input"/>
<option key="start_rast"/>
<option key="output"/>
<option key="max_cost" hidden="no"/>
<option key="stop_coordinate" hidden="no" advanced="yes"/>
<!-- commented out until #3203 is fixed <option key="stop_points" hidden="no" advanced="yes"/> -->
<option key="null_cost" hidden="no" advanced="yes"/>
<flag key="k" hidden="no" />
<flag key="n" hidden="no" advanced="yes"/>
<flag key="r" hidden="no" advanced="yes"/>
</qgisgrassmodule>
15 changes: 15 additions & 0 deletions src/plugins/grass/modules-common/r.cost.vect.qgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Generate raster of cumulative cost of moving between locations based on cost input raster and starting point(s) vector" module="r.cost">
<option key="input"/>
<option key="start_points"/>
<option key="output"/>
<option key="max_cost" hidden="no"/>
<option key="stop_coordinate" hidden="no" advanced="yes"/>
<!-- commented out until #3203 is fixed <option key="stop_points" hidden="no" advanced="yes"/> -->
<option key="null_cost" hidden="no" advanced="yes"/>
<flag key="k" hidden="no" />
<flag key="n" hidden="no" advanced="yes"/>
<flag key="r" hidden="no" advanced="yes"/>
</qgisgrassmodule>
8 changes: 8 additions & 0 deletions src/plugins/grass/modules-common/r.distance.qgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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"/>
</qgisgrassmodule>

18 changes: 18 additions & 0 deletions src/plugins/grass/modules-common/r.walk.coord.qgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Generate raster of cumulative cost of moving between x,y points, based on elevation and friction input rasters" module="r.walk">
<option key="elevation"/>
<option key="friction"/>
<option key="coordinate"/>
<option key="output"/>
<flag key="k" hidden="no"/>
<option key="stop_coordinate" advanced="yes"/>
<!-- commented out until #3203 is fixed <option key="stop_points" hidden="no" advanced="yes"/> -->
<option key="max_cost" advanced="yes"/>
<option key="lambda" advanced="yes"/>
<option key="slope_factor" advanced="yes"/>
<option key="null_cost" advanced="yes"/>
<flag key="n" hidden="no" advanced="yes"/>
<flag key="r" hidden="no" advanced="yes"/>
</qgisgrassmodule>
18 changes: 18 additions & 0 deletions src/plugins/grass/modules-common/r.walk.vect.qgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="Generate raster of cumulative cost of moving between vector points, based on elevation and friction input rasters" module="r.walk">
<option key="elevation"/>
<option key="friction"/>
<option key="start_points"/>
<option key="output"/>
<option key="stop_coordinate" advanced="yes"/>
<!-- commented out until #3203 is fixed <option key="stop_points" hidden="no" advanced="yes"/> -->
<option key="max_cost" advanced="yes"/>
<option key="lambda" advanced="yes"/>
<option key="slope_factor" advanced="yes"/>
<option key="null_cost" advanced="yes"/>
<flag key="k" hidden="no"/>
<flag key="n" hidden="no" advanced="yes"/>
<flag key="r" hidden="no" advanced="yes"/>
</qgisgrassmodule>

0 comments on commit 9c829f6

Please sign in to comment.