<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Hi Lucia,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Probably, the
geoext users-list is not the right place to ask this type of question.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>To give you the right
answer, we would need more information regarding the technology and architecture
you are using; please give us some technological context if you want the right hint
.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Anyway, assuming
you are using mapserver and postgis for example, you could implement a join
directly in the mapfile like this:<o:p></o:p></span></p>
<div style='mso-element:para-border-div;border:solid #C6C9CB 1.0pt;padding:
8.0pt 8.0pt 8.0pt 8.0pt;background:white'>
<p class=MsoNormal style='mso-margin-top-alt:18.0pt;margin-right:0cm;
margin-bottom:18.0pt;margin-left:0cm;background:white;border:none;padding:0cm'><span
lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>CONNECTIONTYPE
POSTGIS<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:18.0pt;margin-right:0cm;
margin-bottom:18.0pt;margin-left:0cm;background:white;border:none;padding:0cm'><span
lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>CONNECTION
"dbname=yourdatabasename user=yourdbusername"<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:18.0pt;margin-right:0cm;
margin-bottom:18.0pt;margin-left:0cm;background:white;border:none;padding:0cm'><span
lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>DATA
"the_geom from (select g.gid, g.the_geom, a.attr1, a.attr2 from geotable g
join attrtable a on g.gid = a.aid) as subquery unique gid using srid=4326"<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>That should take
care of the GetFeatureInfo join.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Manuel Aymerich<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>R&D Project
Manager<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;color:#C00000'>ARGONGRA,
S.L.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>Plaza San Juan de la Cruz,
7 ofic.2<span style='color:black'><o:p></o:p></span></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>28003 Madrid, SPAIN<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'><a
href="mailto:mjgarcia@argongra.com">maymerich@argongra.es</a><span
style='color:black'><o:p></o:p></span></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'><a
href="http://www.argongra.com">www.argongra.com</a><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt'>(+34) - 91 129 96 35<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>--<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Date:
Tue, 29 Mar 2011 10:39:15 +0200<br>
From: "Morper-Busch, Lucia" <</span><span style='font-size:9.0pt;
font-family:"Arial","sans-serif"'><a href="mailto:Lucia.Morper-Busch@sbg.ac.at"><span
lang=EN-US>Lucia.Morper-Busch@sbg.ac.at</span></a></span><span lang=EN-US
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>><br>
Subject: [Users] Query joined tables by GetFeatureInfo<br>
To: <</span><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'><a
href="mailto:users@geoext.org"><span lang=EN-US>users@geoext.org</span></a></span><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'>><br>
Message-ID:<br>
<</span><span style='font-size:
9.0pt;font-family:"Arial","sans-serif"'><a
href="mailto:7506863B0141334AA8B9FAAAC6D703B001F6A870@MAIL2.plus.sbg.ac.at"><span
lang=EN-US>7506863B0141334AA8B9FAAAC6D703B001F6A870@MAIL2.plus.sbg.ac.at</span></a></span><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hello GeoExt users,<br>
<br>
<br>
<br>
do somebody have experiences with queries on joined tables via<br>
GetFeatureInfo?<br>
<br>
The intention is to get the description of a separate joined table<br>
instead of only index values.<br>
<br>
<br>
<br>
Is it possible to use the cql_filter?<br>
<br>
<br>
<br>
Thank you<br>
<br>
Lucia Morper-Busch<br>
<br>
<br>
<br>
Dipl.-Geogr. Lucia Morper-Busch | Researcher<br>
<br>
University of Salzburg | Centre for Geoinformatics - Z_GIS<br>
<br>
Schillerstr.30 | Techno-Z, Block 15, 3rd floor | 5020 Salzburg, Austria<br>
<br>
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260<br>
<br>
> Z_GIS...experts for the spatial view <</span><span style='font-size:
9.0pt;font-family:"Arial","sans-serif"'><a href="http://www.zgis.at/research"><span
lang=EN-US>http://www.zgis.at/research</span></a></span><span lang=EN-US
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>><br>
<br>
<o:p></o:p></span></p>
</div>
</body>
</html>