thanks Oscar. i'll try it as soon as i get to work.<br>about query code, i'm using GMap code.<br><br><div><span class="gmail_quote">2007/9/10, Oscar ^_^ <<a href="mailto:oscarfbh@gmail.com">oscarfbh@gmail.com</a>
>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hello again Eduardo.</div>
<div> </div>
<div>I can see You use for every class a template so that mean for every shape that has values for each class it returns this values.</div>
<div> </div>
<div>I think You must use just a main template because You call the same template for every class so when shape has values for 2 fields (I think must be unique for use a class for every shape but maybe u've got more than one value for each shape) Mapserver returns this values for your query.
</div>
<div> </div>
<div>Try something like this:</div>
<div> </div>
<div><span class="q">LAYER<br> NAME Solos_AL<br> METADATA<br> "DESCRIPTION" "Solos" <br> "RESULT_FIELDS" "Leg_solos"<br> "RESULT_HEADERS" "Código"
<br>
END<br> LABELITEM "Leg_solos"<br> LABELCACHE ON<br> TYPE POLYGON<br> STATUS OFF <br> DATA Solos_AL<br> CLASSITEM "Leg_solos"<br></span> TOLERANCE 0 #<-- I think you must put at least value 1
<br> TOLERANCEUNITS pixels</div>
<div> <font color="#ff0000">TEMPLATE "templates/template_solos.html" #<-- This is what I mean<br></font><span class="q"> CLASS <br> NAME "PA"<br> EXPRESSION "PA"<br> STYLE
<br> COLOR 253 241 240
<br> OUTLINECOLOR 0 0 0<br> END<br> LABEL<br> FONT sans<br> TYPE TRUETYPE <br> PARTIALS TRUE<br> SIZE 7<br> OUTLINECOLOR 255 255 255<br> END
<br></span><span class="q"> END<br> CLASS<br> NAME "PVA" <br> EXPRESSION "PVA"<br> STYLE<br> COLOR 249 210 205<br> OUTLINECOLOR 0 0 0 <br> END
<br> LABEL<br> FONT sans
<br> TYPE TRUETYPE<br> PARTIALS TRUE <br> SIZE 7<br> OUTLINECOLOR 255 255 255<br> END<br></span><span class="q"> END<br> CLASS<br> NAME "RL"<br> EXPRESSION "RL"
<br> STYLE<br> COLOR 150 149 149<br> OUTLINECOLOR 0 0 0 <br> END<br> LABEL <br> FONT sans<br> TYPE TRUETYPE<br> PARTIALS TRUE<br> SIZE 7
<br> OUTLINECOLOR 255 255 255<br> END<br></span> END<br>.</div>
<div>.</div>
<div>.</div>
<div>END #Layer</div>
<div> </div>
<div>What about your code for query? it works fine? You can try debug your code too.</div>
<div> </div>
<div>Hope it be helpful for You. </div>
<div> </div>
<div> </div>
<div>Oscar.</div>
<div> </div>
<div> </div>
<div><span class="gmail_quote">2007/9/10, Eduardo Zenaide <<a href="mailto:ezenaide@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ezenaide@gmail.com</a>>:</span>
<div><span class="e" id="q_114f0e711ed3db1a_7"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">hi Oscar!<br><br>i'm using php/mapscript
<br><br><br>
<div><span class="gmail_quote">2007/9/3, Oscar ^_^ <<a href="mailto:oscarfbh@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">oscarfbh@gmail.com</a>>:</span>
<div><span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Can You give more information about what are u doing?</div>
<div> </div>
<div>Are you using mapscript or CGI or what?</div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">2007/9/1, Eduardo Zenaide <<a href="mailto:ezenaide@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ezenaide@gmail.com</a>>:</span>
<div><span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">nobody? :(<br><br>
<div><span class="gmail_quote">2007/8/24, Eduardo Zenaide <<a href="mailto:ezenaide@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ezenaide@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi all,<br><br>i'm experiencing something odd here.<br>i have a soil layer with some IDs. its dbf is something like:
<br><br>leg_solos<br><br>PVA<br>PA<br>RL<br>SX<br>RL<br>RY<br>RR<br>...<br><br>when i do the query, using ROSA i click in a RL polygon. it returns: <br><br>SX<br>RR<br>RL<br>PA<br>PA<br>PVA<br>PVA<br>RY<br>RY<br><br>any other polygon returns same results - only changes the one in query and, sometimes, PAs appear above. like:
<br><br>SX<br>RR<br>PA<br>PA<br>SX<br>PVA<br>PVA<br>RY<br>RY<br><br>(when querying SX polygon)<br><br>here a visual example: <a href="http://www.uep.cnps.embrapa.br/imagens/queryexemplo.jpg" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.uep.cnps.embrapa.br/imagens/queryexemplo.jpg </a><br><br>my map file (its really big, so i'm just sending relevant layer and classes): <br><br>LAYER<br> NAME Solos_AL<br> METADATA<br> "DESCRIPTION" "Solos"
<br> "RESULT_FIELDS" "Leg_solos"<br> "RESULT_HEADERS" "Código"<br> END<br> LABELITEM "Leg_solos"<br> LABELCACHE ON<br> TYPE POLYGON<br> STATUS OFF
<br> DATA Solos_AL<br> CLASSITEM "Leg_solos"<br> TOLERANCE 0<br> TOLERANCEUNITS pixels<br> CLASS <br> NAME "PA"<br> EXPRESSION "PA"<br> STYLE<br> COLOR 253 241 240
<br> OUTLINECOLOR 0 0 0<br> END<br> LABEL<br> FONT sans<br> TYPE TRUETYPE <br> PARTIALS TRUE<br> SIZE 7<br> OUTLINECOLOR 255 255 255<br> END
<br> TEMPLATE "templates/template_solos.html"<br> END<br> CLASS<br> NAME "PVA" <br> EXPRESSION "PVA"<br> STYLE<br> COLOR 249 210 205<br> OUTLINECOLOR 0 0 0
<br> END<br> LABEL<br> FONT sans<br> TYPE TRUETYPE<br> PARTIALS TRUE <br> SIZE 7<br> OUTLINECOLOR 255 255 255<br> END<br> TEMPLATE "templates/template_solos.html"
<br> END<br> CLASS<br> NAME "RL"<br> EXPRESSION "RL" <br> STYLE<br> COLOR 150 149 149<br> OUTLINECOLOR 0 0 0 <br> END<br> LABEL
<br> FONT sans<br> TYPE TRUETYPE<br> PARTIALS TRUE<br> SIZE 7 <br> OUTLINECOLOR 255 255 255<br> END<br> TEMPLATE "templates/template_solos.html"
<br> END<br> CLASS<br> NAME "RY"<br> EXPRESSION "RY"<br> STYLE <br> COLOR 238 235 220<br> OUTLINECOLOR 0 0 0<br> END<br> LABEL<br>
FONT sans<br> TYPE TRUETYPE<br> PARTIALS TRUE<br> SIZE 7<br> OUTLINECOLOR 255 255 255 <br> END<br> TEMPLATE "templates/template_solos.html"
<br> END<br> CLASS<br> NAME "RR"<br> EXPRESSION "RR"<br> STYLE<br> COLOR 207 206 206 <br> OUTLINECOLOR 0 0 0<br> END<br> LABEL<br> FONT sans
<br> TYPE TRUETYPE<br> PARTIALS TRUE<br> SIZE 7<br> OUTLINECOLOR 255 255 255<br> END <br> TEMPLATE "templates/template_solos.html"<br> END<br> CLASS
<br> NAME "SX"<br> EXPRESSION "SX"<br> STYLE<br> COLOR 181 214 174<br> OUTLINECOLOR 0 0 0 <br> END<br> LABEL<br> FONT sans
<br> TYPE TRUETYPE<br> PARTIALS TRUE<br> SIZE 7<br> OUTLINECOLOR 255 255 255<br> END<br> TEMPLATE "templates/template_solos.html" <br> END<br>END # layer Solos_final_dd
<br><br>########################<br><br>any thoughts?<br><br>thanks :)<br><br><br>-- <br><span>Eduardo Zenaide </span></blockquote></div><br><br clear="all"><br>-- <br><span>Eduardo Zenaide </span></blockquote></span></div>
</div><br><br clear="all"><br>-- <br><span>Oscar ^_ </span></blockquote></span></div></div><br><br clear="all"><br>-- <br><span>Eduardo Zenaide </span></blockquote></span></div></div><br><br clear="all"><br>-- <br><span class="sg">
Oscar ^_
</span></blockquote></div><br><br clear="all"><br>-- <br>Eduardo Zenaide