Bläddra i källkod

v.vect.stats: Add current mapset in msg, fixes for doc (#1137)

* Use *current mapset* instead of *user mapset* in message and show the mapset name.
* Use proper heading instead of emphasis with colon.
* Fix typo. Remove trailing whitespace. Use code instead of tt.
Vaclav Petras 4 år sedan
förälder
incheckning
8ee61174bc
2 ändrade filer med 19 tillägg och 19 borttagningar
  1. 2 2
      vector/v.vect.stats/main.c
  2. 17 17
      vector/v.vect.stats/v.vect.stats.html

+ 2 - 2
vector/v.vect.stats/main.c

@@ -284,8 +284,8 @@ int main(int argc, char *argv[])
     if ((mapset = G_find_vector2(area_opt->answer, "")) == NULL)
 	G_fatal_error(_("Vector map <%s> not found"), area_opt->answer);
     if (!print_flag->answer && strcmp(mapset, G_mapset()) != 0)
-	G_fatal_error(_("Vector map <%s> is not in user mapset and cannot be updated"),
-		      area_opt->answer);
+	G_fatal_error(_("Vector map <%s> is not in the current mapset <%s> and cannot be updated"),
+		      area_opt->answer, G_mapset());
 
     Vect_set_open_level(2);
     if (Vect_open_old(&AIn, area_opt->answer, mapset) < 0)

+ 17 - 17
vector/v.vect.stats/v.vect.stats.html

@@ -6,49 +6,49 @@ Optionally statistics on point attributes in <em>points</em> are
 calculated for each area. The results are either uploaded to the
 attribute table of the vector map <em>areas</em> or printed to stdout.
 
-<p>
-<em>Statistical Methods:</em>
+<h3>Statistical methods</h3>
+
 Using numeric attribute values of all points falling into a given area,
-a new value is detmined with the selected method.
+a new value is determined with the selected method.
 <em>v.vect.stats</em> can perform the following operations:
 
 <p><dl>
 
-<dt><b>sum</b> 
+<dt><b>sum</b>
 <dd>The sum of values.
 
-<dt><b>average</b> 
+<dt><b>average</b>
 <dd>The average value of all point attributes (sum / count).
 
-<dt><b>median</b> 
+<dt><b>median</b>
 <dd>The value found half-way through a list of the
 attribute values, when these are ranged in numerical order.
 
-<dt><b>mode</b> 
+<dt><b>mode</b>
 <dd>The most frequently occurring value.
 
-<dt><b>minimum</b> 
+<dt><b>minimum</b>
 <dd>The minimum observed value.
 
-<dt><b>min_cat</b> 
+<dt><b>min_cat</b>
 <dd>The point category corresponding to the minimum observed value.
 
-<dt><b>maximum</b> 
+<dt><b>maximum</b>
 <dd>The maximum observed value.
 
-<dt><b>max_cat</b> 
+<dt><b>max_cat</b>
 <dd>The point category corresponding to the maximum observed value.
 
-<dt><b>range</b> 
+<dt><b>range</b>
 <dd>The range of the observed values.
 
-<dt><b>stddev</b> 
+<dt><b>stddev</b>
 <dd>The statistical standard deviation of the attribute values.
 
-<dt><b>variance</b> 
+<dt><b>variance</b>
 <dd>The statistical variance of the attribute values.
 
-<dt><b>diversity</b> 
+<dt><b>diversity</b>
 <dd>The number of different attribute values.
 
 </dl>
@@ -184,8 +184,8 @@ User should note that some of the points may be outside the grid
 since the hexagons cannot cover all the area around the edges
 (the computational region extent needs to be enlarged if all points
 should be considered).
-The last command sets the vector map color table to <tt>viridis</tt>
-based on the <tt>count</tt> column.
+The last command sets the vector map color table to <code>viridis</code>
+based on the <code>count</code> column.
 
 <div class="code"><pre>
 v.colors map=hexagons use=attr column=average color=viridis