<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Can anybody tell me why the classification I so carefully preserve
on v.to.rast from my training data does not reflect on my
classification?<br>
<br>
When I query my vector training data I get:<br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<font color="#666666"><tt>v.what --v -a
map=traintest210912a@3420
east_north=-80606.881455,-3785043.808541
distance=388.789822</tt></font>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>East:
-80606.881455</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>North:
-3785043.808541</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Map:
traintest210912a </tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Mapset:
3420</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Type:
Area</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Sq
Meters: 6133078.387</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Hectares:
613.308</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Acres:
1515.517</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Sq
Miles: 2.3680</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Layer:
1</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Category:
1</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Driver:
dbf</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Database:
/home/tms/LC_NGIqxx/LO21/3420/dbf/</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Table:
traintest210912a</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Key
column: cat</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>cat
: 1</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>cat_
: <font color="#ff0000">12</font></tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>label
: shrubs and
bushes</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>rgb
: 38: 181: 113</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><font color="#666666"><tt>Building
spatial
index...</tt></font></p>
<p>
</p>
<p class="western" style="margin-bottom: 0cm"><tt><font
color="#666666">(Thu Sep 27 14:29:00
2012) Command finished (0 sec) </font>
</tt></p>
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.3 (Win32)">
<style type="text/css">
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style><br>
When I convert this to raster ensuring 'cat_' remains the key column
and I query the resulting raster I get:<br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<p class="western" style="margin-bottom: 0cm"><font color="#666666">r.what
--v -f
input=trainteset1_rast@3420
east_north=-80568.002473,-3785121.566505</font></p>
<font color="#666666">
</font>
<p class="western" style="margin-bottom: 0cm"><font color="#666666">-80568.002473|-3785121.566505|<font
color="#ff0000">|12|</font></font></p>
<font color="#666666">
</font>
<p class="western" style="margin-bottom: 0cm"><font color="#666666">(Thu
Sep 27 14:30:58
2012) Command finished (0 sec) </font></p>
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.3 (Win32)">
<style type="text/css">
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style><br>
And when I query the classification after running i.gensig and
i.maxlik, I get:<br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<p class="western" style="margin-bottom: 0cm"><font color="#666666">r.what
--v -f
input=sclasstest1@3420 east_north=-80412.486544,-3783994.076020
</font></p>
<font color="#666666">
</font>
<p class="western" style="margin-bottom: 0cm"><font color="#666666">-80412.486544|-3783994.076020|<font
color="#ff0000">|1|</font></font></p>
<font color="#666666">
</font>
<p class="western" style="margin-bottom: 0cm"><font color="#666666">(Thu
Sep 27 14:31:57
2012) Command finished (0 sec) </font></p>
<font color="#666666">
</font>
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.3 (Win32)">
<style type="text/css">
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style><br>
Which means I am now forced to repeat myself and run recode or
reclass, after going to the hassle of setting the classification
codes for a supervised classificaton in the begining.<br>
It would make sense to me if I had run i.class (as per the older
documentation I have found that doesn't include i.gensig), but not
with a training map.<br>
<br>
Is there maybe a background setting I haven't found yet that I need
to set? Or is this how it is supposed to run? In which case, is
there a technical reason for this that I am missing? <br>
<br>
Thank you<br>
Sam<br>
</body>
</html>