<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=299453101-14022006><FONT face=Arial size=2>I've been looking at 
the Itasca demo and see how they query a feature from a given layer.&nbsp; I 
want to be able to do the same when my information is stored in a database, but 
I have been unable to figure out how to do so.</FONT></SPAN></DIV>
<DIV><SPAN class=299453101-14022006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=299453101-14022006><FONT face=Arial size=2>I have the following 
layer:</FONT></SPAN></DIV>
<DIV><SPAN class=299453101-14022006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=299453101-14022006><FONT face=Arial size=2>LAYER<BR>&nbsp; NAME 
Machine_Outlines<BR>&nbsp; GROUP Machine<BR>&nbsp; CONNECTIONTYPE 
postgis<BR>&nbsp; CONNECTION "host=localhost port=5432 dbname=thedatabase 
password=thepassword user=testuser"<BR>&nbsp; DATA "outline FROM (SELECT 
instance_id AS id, Translate(outline, X(position), Y(position), 0) AS outline 
FROM instance INNER JOIN primitive_def_footprint&nbsp;ON 
instance.primitive_def_id = primitive_def_footprint.primitive_def_id WHERE 
primitive_type = 'machine') AS instance USING UNIQUE id USING SRID=-1"<BR>&nbsp; 
TYPE POLYGON<BR>&nbsp; STATUS OFF<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME 
'Machine'<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp; COLOR 
192 64 192</FONT></SPAN></DIV>
<DIV><SPAN class=299453101-14022006><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
TEMPLATE templates/Machines.html<BR>&nbsp; END</FONT></SPAN></DIV>
<DIV><SPAN class=299453101-14022006><FONT face=Arial size=2>&nbsp; 
</FONT></SPAN></DIV>
<DIV><SPAN class=299453101-14022006><FONT face=Arial size=2>&nbsp; HEADER 
"templates/Machines_header.html"<BR>&nbsp; FOOTER 
"templates/Machines_footer.html"</FONT></SPAN></DIV><SPAN 
class=299453101-14022006>
<DIV><BR><FONT face=Arial size=2>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2>A<SPAN class=299453101-14022006>nd then 
Machines.html looks like</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=299453101-14022006>&lt;tr&gt;&lt;td&gt;[lrn]&lt;/td&gt;&lt;td&gt;[NAME]&lt;/td&gt;&lt;/tr&gt;</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=299453101-14022006></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=299453101-14022006>What I have 
been unable to figure out is how to get [NAME] to represent the column 'name' 
from the instance table of my database.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>Bryce Bangerter</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>