[GRASS-SVN] r66669 - grass-addons/grass7/raster/r.category.trim

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 30 02:24:43 PDT 2015


Author: pvanbosgeo
Date: 2015-10-30 02:24:43 -0700 (Fri, 30 Oct 2015)
New Revision: 66669

Modified:
   grass-addons/grass7/raster/r.category.trim/r.category.trim.html
   grass-addons/grass7/raster/r.category.trim/r.category.trim.py
Log:
further corrections (thanks Marcus for pointing them out)

Modified: grass-addons/grass7/raster/r.category.trim/r.category.trim.html
===================================================================
--- grass-addons/grass7/raster/r.category.trim/r.category.trim.html	2015-10-30 08:29:48 UTC (rev 66668)
+++ grass-addons/grass7/raster/r.category.trim/r.category.trim.html	2015-10-30 09:24:43 UTC (rev 66669)
@@ -1,6 +1,6 @@
 <h2>DESCRIPTION</h2>
 
-<p><b>Trim redundant category labels and colors</b>
+<h3>Trim redundant category labels and colors</h3>
 <p>In GRASS you can 'cut out' a subset of a larger raster layer by 
 setting the extent to something smaller then the extent of the 
 original map using g.region and/or by setting a mask using r.mask, 
@@ -10,17 +10,16 @@
 category labels and colour table of the original map are copied over 
 to the new map, even for category values that are not in the new 
 map. If you are working with categorical maps, this may not be what 
-you want. See <a href=
-"https://pvanb.wordpress.com/2015/09/22/categorical-maps-and-legends/"
->here</a> for a more detailed discussion.
+you want. See <a href="https://pvanb.wordpress.com/2015/09/22/categorical-maps-and-legends/">
+here</a> for a more detailed discussion.
 
 <p>With this addon you can trim the category and colour tables so it 
 only contains category labels and colour definitions for the values 
 present in the new map. You can do this on the input map, or do this 
 on a copy of the map.
 
-<p><b>Recode to consecutive category values</b>
-<p>If you prefer the map to have consecutive values (i.e., without 
+<h3>Recode to consecutive category values</h3>
+If you prefer the map to have consecutive values (i.e., without 
 gaps), there is the option to change the category values to a 
 consecutive series by setting the n-flag. For example, if the map 
 has the following categories values and labels (after the redundant 
@@ -38,13 +37,14 @@
 3 label9
 </pre></div>
 
-<p><b>Export QGIS color map file</b> <p>The addon let's you export 
-the categories, category labels and colours as QGIS colour map file. 
-This is just a simple text file with the raster categories and 
-corresponding colour definitions and category labels. QGIS can use 
-this to set the colour and labels for a raster layer. See <a href= 
-"https://pvanb.wordpress.com/grass-gis-categorical-raster-layers-in-qg
-is">this blogpost</a> for more details how to use the colour map 
+<h3>Export QGIS color map file</h3>
+The addon let's you export the categories, category labels and 
+colours as QGIS colour map file. This is just a simple text file 
+with the raster categories and corresponding colour definitions and 
+category labels. QGIS can use this to set the colour and labels for 
+a raster layer. See 
+<a href="https://pvanb.wordpress.com/grass-gis-categorical-raster-layers-in-qgis">
+this blogpost</a> for more details how to use the colour map 
 file in QGIS. Alternatively, you can also export the categories and 
 category labels as a normal comma separated calues (CSV) file file, 
 which can be easily viewed in a spreadsheet program such as 
@@ -53,11 +53,12 @@
 use other GIS programs
 
 
-<h2>NOTE</h2> The file is only useful for categorical maps. 
+<h2>NOTE</h2>
+The file is only useful for categorical maps. 
 Therefore only integer maps are accepted as input.
 
 <p>When you use the option to recode the map, you need to set an 
-output map as well. It uses the <a href="r.recode">r.recode </a> 
+output map as well. It uses the <em><a href="r.recode">r.recode </a></em> 
 function, with the 'a' flag set, i.e., the region is 
 aligned to the input raster map.
    
@@ -65,10 +66,11 @@
 See <a href="https://pvanb.wordpress.com/grass-gis-categorical-raster-layers-in-qgis">here</a> for examples
 
 <h2>See also</h2>
-<a href="r.recode.html">r.recode</a>,
+<em>
 <a href="r.category.html">r.category</a>,
 <a href="r.colors.html">r.colors</a>,
-<a href="r.describe.html">r.describe</a>
+<a href="r.recode.html">r.recode</a>
+</em>
 
 <h2>AUTHOR</h2>
 

Modified: grass-addons/grass7/raster/r.category.trim/r.category.trim.py
===================================================================
--- grass-addons/grass7/raster/r.category.trim/r.category.trim.py	2015-10-30 08:29:48 UTC (rev 66668)
+++ grass-addons/grass7/raster/r.category.trim/r.category.trim.py	2015-10-30 09:24:43 UTC (rev 66669)
@@ -23,7 +23,7 @@
 ########################################################################
 #
 #%Module
-#% description: Trim redundant category labels and colors and export as QGIS colour file
+#% description: Trim redundant category labels and colors and export as QGIS colour file.
 #% keyword: raster
 #% keyword: color
 #% keyword: category



More information about the grass-commit mailing list