<HTML>
<HEAD>
<TITLE>Re: gis.m</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'>Kirk,<BR>
<BR>
Thanks for continuing to test the new GIS Manager. V.what is a replacement for d.what vect because d.what.vect REQUIRES you to interact with a xdisplay (tektronic emulation) to &nbsp;work. V.what does not require this. It is like r.what. It takes input xy coordinates and returns the attributes linked to the vector feature at that coordinate. V.what is a bit more flexible than d.what.vect in that you can set the &#8216;snapping&#8217; distance. More importantly, v.what can be used in any GUI and is not restricted to xdisplays, but returns the same kind of information as d.what.vect. We need to have GRASS modules that work with interfaces other than the old xmonitors if we want to build a modern interface for GRASS. V.what does this.<BR>
<BR>
The &#8211;e flag in d.what.vect invokes a separate program, the &#8220;form library&#8221; which includes a TclTk form (and maybe associated C-code? I&#8217;m not sure on this). This is what allows you to edit the associated attributes for a vector object. Theoretically, v.what&#8212;or TclTk or other GUI code that calls v.what&#8212;could also invoke the form library (or something like it) to edit a record. This would be very handy, though perhaps other methods might be better&#8212;such as doing a query that selected the associated attribute record in a GUI table manager like SQLite Browser. IMHO, GRASS needs these kind of attribute management tools. Moving to a new display model that does not depend on a specific, antiquated display technology, will give us much more flexibility to develop such tools. <BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution and Social Change<BR>
Arizona State University<BR>
Tempe, AZ 85287-2402<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>&quot;Kirk R. Wythers&quot; &lt;kwythers@umn.edu&gt;<BR>
<B>Date: </B>Wed, 1 Mar 2006 09:09:31 -0600<BR>
<B>To: </B>Michael Barton &lt;michael.barton@asu.edu&gt;<BR>
<B>Cc: </B>devel grass &lt;grass5@grass.itc.it&gt;<BR>
<B>Subject: </B>gis.m<BR>
<BR>
<BR>
On Feb 27, 2006, at 6:19 PM, Michael Barton wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>The new gism does not use d.what.vect, but the new v.what. I'm not sure if<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>it will show information in different layers or not. But that is something<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>that should be fixable.<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'><BR>
<BR>
I am looking at the v.what and it may be just me, but I don't see that it is a replacement for d.what.vect in that d.what.vect -e allows the user to interactively click on a polygon and have a form open with that polygon's attributes visible in an editable form. If an attribute has not not been assigned yet (as in the case of a new attribute column), d.what.vect -e can be used to &quot;fill in&quot; attributes. I'm just not seeing this kind of interactive control in v.what. Am I missing something here?<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>BTW, I've now fixed the show columns and show data buttons in the vector,<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>chart, and thematic panels so that they respect current database connections<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>and layer settings. So you you can see the columns and data associated with<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>your vector file.<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
Also the &quot;show attribute data&quot; button does not seem to be working for me. While the &quot;show attibue colmns&quot; butotn returns the output of v.info -c map=t61v1_working layer=1to the output window:<BR>
<BR>
INTEGER|cat<BR>
INTEGER|id<BR>
CHARACTER|type<BR>
CHARACTER|class<BR>
<BR>
The &quot;show attribute data&quot; button returns:<BR>
GRASS 6.1.cvs (minnesota_utm):~ &gt; table=t61v1_working database=host=localhost,dbname=ts2325 driver=pg<BR>
2<BR>
<BR>
It seems that the problem is the 2 at the end of the return. I get the expected output if I send the first part of the command from the command line:<BR>
GRASS 6.1.cvs (minnesota_utm):~ &gt; db.select table=t61v1_working database=host=localhost,dbname=ts2325 driver=pg<BR>
<BR>
Michael, this may be due to the fact that I am using pg for attibute management. Just thought you should know<BR>
<BR>
Kirk<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>