<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="monospace">On 06/09/2010 07:48 PM, Jenny Turner wrote:</font>
<blockquote
 cite="mid:AANLkTil6RP8Q9q-d045ew3NaSNTtji30K3Th3yj3BVqb@mail.gmail.com"
 type="cite"><font face="monospace">Greetings</font>
  <div><font face="monospace"><br>
  </font></div>
  <div><font face="monospace">I'm using WinGRASS (from OSGEO4W
installer) to do some supervised classification. Since I'm using
winGRASS i.class function is not available neither wxGUI's vector
digitizer. So I'm using tcl/tk but I'm a bit confused on using it.&nbsp;</font></div>
  <div><font face="monospace">About the background images I used a
discussion from last week regarding this but now.. How can I define a
category? I mean, How can atribute a polygon to a certain category? <br>
  </font></div>
</blockquote>
<font face="monospace">This indeed is not obvious. What I've done is
change the category mode from "Next not used" to "Manual entry". This
is set in the lower part of the v.digit window (in tcltk interface).
Now each time you digitize a *centroid* for a training area, set its
cat value to some standard value you choose. For example, you might
decide:<br>
train_area&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cat<br>
------------------------<br>
forest&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 1<br>
agriculture&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2<br>
urban&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; 9<br>
water&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 10<br>
....<br>
<br>
Now for each training polygon which is a forest, set the cat value of
its centroid to 1, agri areas will get value 2, and so on for all the
centroids of all the training polygons. (Note that the cat values for
the boundary lines are pretty much irrelevant in GRASS's vector model).<br>
<br>
When you're done digitizing training areas, you might add another
column or two to the attrib table for the training areas - <br>
v.db.addcol train_areas col="train_label varchar(16), RGBCOLOR
varchar(16)"<br>
then give each centroid cat value a suitable label and an RGB color
combo, etc.&nbsp; Makes life easier down the line... <br>
<br>
</font>
<blockquote
 cite="mid:AANLkTil6RP8Q9q-d045ew3NaSNTtji30K3Th3yj3BVqb@mail.gmail.com"
 type="cite"><font face="monospace"><br>
This mail was received via Mail-SeCure System.<br>
  </font>
  <pre wrap=""><font face="monospace">
</font><fieldset class="mimeAttachmentHeader"></fieldset><font
 face="monospace">
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>

This mail was received via Mail-SeCure System.


</font></pre>
</blockquote>
<font face="monospace"><br>
<br>
</font>
<pre class="moz-signature" cols="72"><font face="monospace">-- 
Micha Silver
Arava Development Co. +972-52-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
 
</font></pre>
</body>
</html>