Browse Source

g.mlist: Add more examples

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61038 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 11 năm trước cách đây
mục cha
commit
6e6933e7b9
1 tập tin đã thay đổi với 13 bổ sung2 xóa
  1. 13 2
      general/g.mlist/g.mlist.html

+ 13 - 2
general/g.mlist/g.mlist.html

@@ -148,9 +148,10 @@ g.mlist -e type=rast separator=comma pattern="precip_total.(199[7-9]|200[0-9]|20
 <h3>Maps whose region overlaps with a saved region</h3>
 
 List all raster maps starting with &quot;tmp_&quot; whose region overlaps with
-a saved region &quot;myregion&quot;:
+the region of &quot;test&quot; raster map:
 <div class="code"><pre>
-g.mlist type=rast pattern='tmp_*' region=myregion
+g.region rast=test save=test_region
+g.mlist type=rast pattern='tmp_*' region=test_region
 </pre></div>
 
 List &quot;tmp0&quot;...&quot;tmp9&quot; vector maps whose region overlaps with
@@ -159,6 +160,16 @@ the current region:
 g.mlist -r type=vect pattern='^tmp[0-9]$' region=.
 </pre></div>
 
+List all raster and vector maps whose region overlaps with the default region
+of the PERMANENT mapset in the current location (DEFAULT_WIND):
+<div class="code"><pre>
+g.mlist type=rast,vect region=*
+</pre></div>
+
+Note that, without <tt>region=*</tt>, <tt>g.mlist type=rast,vect</tt> simply
+lists all available raster and vector maps from the current search path
+regardless of their region.
+
 <h2>SEE ALSO</h2>
 
 <em>