<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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 Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
p.HTMLconformatoprevio, li.HTMLconformatoprevio, div.HTMLconformatoprevio
        {mso-style-name:"HTML con formato previo";
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
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";}
span.E-MailFormatvorlage22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></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=DE-AT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi Manuel,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>thank you for your answer:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>my architecture is GeoExt – Geoserver – PostGIS.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I can create a view with joined tables in PostGIS, but I don’t want to join the entire table, but only the requested feature.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I don’t know if it’s clear now.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thank you anyway.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>lucia<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal style='margin-bottom:1.0pt'><b><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#365F91'>Dipl.-Geogr. Lucia Morper-Busch</span></b><b><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1F497D'> | </span></b><b><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#C00000'>Researcher</span></b><b><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1F497D'><o:p></o:p></span></b></p><p class=MsoNormal style='margin-bottom:1.0pt'><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:gray'>University of Salzburg | Centre for Geoinformatics - Z_GIS<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:1.0pt'><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:gray'>Schillerstr.30 | Techno-Z, Block 15, 3rd floor | 5020 Salzburg, Austria<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:gray'>Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260<o:p></o:p></span></p><p class=MsoNormal><b><i><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:gray'>> <a href="http://www.zgis.at/research"><span style='color:gray;text-decoration:none'>Z_GIS…experts for the spatial view</span></a><o:p></o:p></span></i></b></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Manuel Aymerich [mailto:maymerich@argongra.es] <br><b>Gesendet:</b> Dienstag, 29. März 2011 12:58<br><b>An:</b> Morper-Busch, Lucia<br><b>Cc:</b> users@geoext.org<br><b>Betreff:</b> Re: Query joined tables by GetFeatureInfo<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><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='border:solid #C6C9CB 1.0pt;padding:8.0pt 8.0pt 8.0pt 8.0pt'><p class=MsoNormal style='mso-margin-top-alt:18.0pt;margin-right:0cm;margin-bottom:18.0pt;margin-left:0cm;background:white'><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'><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'><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 lang=ES 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 lang=ES style='font-size:10.0pt'>28003 Madrid, SPAIN<o:p></o:p></span></p><p class=MsoNormal><span lang=ES 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 lang=ES 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 lang=ES 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 style='margin-bottom:12.0pt'><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 lang=ES 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 lang=ES 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 lang=ES 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 lang=ES 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"'>><o:p></o:p></span></p></div></body></html>