Skip to content

Commit

Permalink
wxGUI/gmodeler: update sample model (#3043)
Browse files Browse the repository at this point in the history
* wxGUI/gmodeler: update sample model
* parameterize color table

---------

Co-authored-by: Martin Landa <[email protected]>
  • Loading branch information
pesekon2 and landam authored Oct 26, 2023
1 parent b9efba2 commit 7089dc6
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions gui/wxpython/gmodeler/g_gui_gmodeler_zipcodes_avg_elevation.gxm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<action id="1" name="r.import" pos="85,65" size="110,58">
<comment>raster import</comment>
<task name="r.import">
<flag name="overwrite" />
<parameter name="input">
<value>%raster</value>
</parameter>
Expand All @@ -38,12 +39,13 @@
<parameter name="resolution">
<value>estimated</value>
</parameter>
<flag name="overwrite" />
</task>
</action>
<action id="2" name="v.import" pos="85,125" size="110,46">
<comment>vector import</comment>
<task name="v.import">
<flag name="o" />
<flag name="overwrite" />
<parameter name="input">
<value>%vector</value>
</parameter>
Expand All @@ -56,8 +58,6 @@
<parameter name="snap">
<value>1e-13</value>
</parameter>
<flag name="o" />
<flag name="overwrite" />
</task>
</action>
<action id="3" name="g.region" pos="85,180" size="110,52">
Expand All @@ -74,12 +74,16 @@
<action id="4" name="v.rast.stats" pos="460,65" size="148,46">
<comment>method = average</comment>
<task name="v.rast.stats">
<flag name="c" />
<parameter name="map">
<value>zipcodes_wake</value>
</parameter>
<parameter name="layer">
<value>1</value>
</parameter>
<parameter name="type">
<value>point,line,boundary,centroid,area</value>
</parameter>
<parameter name="raster">
<value>elevation</value>
</parameter>
Expand All @@ -92,7 +96,6 @@
<parameter name="percentile">
<value>90</value>
</parameter>
<flag name="c" />
</task>
</action>
<action id="5" name="v.db.univar" pos="240,205" size="108,50">
Expand All @@ -114,6 +117,7 @@
<action id="6" name="v.to.rast" pos="405,185" size="114,42">
<comment>average raster</comment>
<task name="v.to.rast">
<flag name="overwrite" />
<parameter name="input">
<value>zipcodes_wake</value>
</parameter>
Expand All @@ -138,19 +142,25 @@
<parameter name="memory">
<value>300</value>
</parameter>
<flag name="overwrite" />
</task>
</action>
<action id="7" name="r.colors" pos="385,250" size="116,44">
<comment>bgyr color table</comment>
<task name="r.colors">
<flag name="e" />
<parameter name="map">
<value>zipcodes_avg</value>
</parameter>
<parameter name="color">
<parameterized />
<value>bgyr</value>
</parameter>
<flag name="e" />
<parameter name="offset">
<value>0</value>
</parameter>
<parameter name="scale">
<value>1</value>
</parameter>
</task>
</action>
<action id="8" name="d.mon" pos="285,310" size="122,42">
Expand Down Expand Up @@ -228,6 +238,12 @@
<parameter name="size">
<value>5</value>
</parameter>
<parameter name="icon_area">
<value>legend/area</value>
</parameter>
<parameter name="icon_line">
<value>legend/line</value>
</parameter>
<parameter name="label_layer">
<value>1</value>
</parameter>
Expand Down Expand Up @@ -295,6 +311,12 @@
<parameter name="fontsize">
<value>10</value>
</parameter>
<parameter name="border_color">
<value>black</value>
</parameter>
<parameter name="bgcolor">
<value>white</value>
</parameter>
</task>
</action>
<data pos="265,65" size="175,50">
Expand Down

0 comments on commit 7089dc6

Please sign in to comment.