I believe you have two options here:<br><br>1. Create a database view that joins the two tables and set your DATA variable to that view.<br> OR<br>2. Modify the DATA variable to include a JOIN statement.<br><br>Aaron
<br><br><div><span class="gmail_quote">On 6/19/06, <b class="gmail_sendername">Luis Treviņo Huerta</b> <<a href="mailto:ltrevino@gpobsi.com.mx">ltrevino@gpobsi.com.mx</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list:<br><br>I'm currenttly using a point layer that displays some GPS points that are<br>stored on a postgis table called "loca". I'd like to label this points with<br>data that comes from another table in the same postgis data base (this table
<br>is named "autos"), both tables share a common column named "idunit" and I<br>would like to use autos.idunit as a label. How can I do this?. This is part<br>of my map file:<br><br> LAYER<br> NAME gis
<br> STATUS ON<br> TYPE POINT<br> UNITS METERS<br><br> DEBUG ON<br> CONNECTION "user=XXX password=XXXXX dbname=bsiubica host=XXX.XXX.XXX.XX<br>port=5432"<br> CONNECTIONTYPE postgis<br> DATA "posicion from loca as foo using unique cmpoid using srid=4326"
<br><br> PROJECTION<br> "proj=longlat"<br> "ellps=WGS84"<br> "datum=WGS84"<br> END<br><br> FILTER 'idunit = %unid%'<br><br> CLASS<br> EXPRESSION ('[mo]' = '1')<br> COLOR 255 255 26 #amarillo
<br> SYMBOL 7<br> SIZE 13<br> END<br>END<br><br>regards,<br>Luis<br></blockquote></div><br><br clear="all"><br>-- <br>+--------------------------------------------<br>| Aaron Koning<br>| Information Technologist
<br>| Prince George, BC, Canada.<br>+--------------------------------------------<br>| <a href="http://datashare.gis.unbc.ca/fist/">http://datashare.gis.unbc.ca/fist/</a><br>| <a href="http://datashare.gis.unbc.ca/gctp-js/">
http://datashare.gis.unbc.ca/gctp-js/</a><br>+--------------------------------------------