<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
i have a layer in a map file i want to show dynamicly from FORM <br>
parameters choosed by user. This is a POINT layer.<br>
When i do a queryByAttributes on that layer mapserver returns several <br>
shapes but points doesn't appear, nor labels defined in layer.<br>
<br>
What do i miss ? Points should be drawn with draw() method ? Is there <br>
any particularity when querying POINT LAYERS ?<br>
<br>
I tested the same thing on POLYGON layers and it works fine !<br>
When i turn this POINT LAYER ON points are drawn fine.<br>
<br>
Here is my POINT LAYER :<br>
<br>
LAYER<br>
&nbsp;&nbsp;NAME "colPU"<br>
&nbsp;&nbsp;TYPE POINT<br>
&nbsp;&nbsp;STATUS OFF<br>
&nbsp;&nbsp;CONNECTIONTYPE OGR<br>
&nbsp;&nbsp;CONNECTION "data/etablissements/E-clgpu05.TAB"<br>
&nbsp;&nbsp;CLASSITEM "ETAB"<br>
<br>
&nbsp;&nbsp;METADATA<br>
&nbsp;&nbsp; &nbsp;"DESCRIPTION" &nbsp; "|||Etablissements"<br>
&nbsp;&nbsp; &nbsp;"RESULT_FIELDS" "ETAB,NOM,DEPT,SECT"<br>
&nbsp;&nbsp; &nbsp;"RESULT_HEADERS" "|||Numero d'&eacute;tablissement,Nom <br>
&eacute;tablissement,D&eacute;partement,Secteur"<br>
&nbsp;&nbsp; &nbsp;"RESULT_HYPERLINK" "ETAB"<br>
&nbsp;&nbsp;END<br>
&nbsp;&nbsp;LABELITEM "NOM"<br>
<br>
&nbsp;&nbsp;CLASS<br>
&nbsp;&nbsp; &nbsp;NAME "Coll&egrave;ge public"<br>
&nbsp;&nbsp; &nbsp;TEMPLATE void<br>
&nbsp;&nbsp; &nbsp;COLOR 139 0 139<br>
&nbsp;&nbsp; &nbsp;SYMBOL 'circle'<br>
&nbsp;&nbsp; &nbsp;SIZE 5<br>
&nbsp;&nbsp; &nbsp; &nbsp;LABEL<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;COLOR 139 0 139<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;POSITION AUTO<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;TYPE bitmap<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;SIZE tiny<br>
&nbsp;&nbsp; &nbsp;WRAP " "<br>
&nbsp;&nbsp; &nbsp;FORCE TRUE<br>
&nbsp;&nbsp; &nbsp; &nbsp;END<br>
&nbsp;&nbsp;END<br>
&nbsp;<br>
END<br>
<br>
Here piece of PHP code :<br>
<br>
&nbsp;&nbsp; &nbsp;$db =&amp; DB::connect($dsn, $options);<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;# r&eacute;cup&eacute;ration de la liste des &eacute;tablissements<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;$modele = &amp; new carteModel($db);<br>
&nbsp;&nbsp; &nbsp;$modele-&gt;listeEtabSect($secteur);<br>
&nbsp;&nbsp; &nbsp;$Lcommunes=$map-&gt;getLayerByName("colPU");<br>
&nbsp;&nbsp; &nbsp;$Lcommunes-&gt;set("status", MS_ON);<br>
&nbsp;&nbsp; &nbsp;while ($item = $modele-&gt;getItem()) {<br>
<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (!$item["numetab"]) continue;<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
@$Lcommunes-&gt;queryByAttributes("ETAB",$item["numetab"],MS_MULTIPLE);<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (!$nb = $Lcommunes-&gt;getNumResults()) continue;<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$resultat=$Lcommunes-&gt;getResult(0);<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$Lcommunes-&gt;open();<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$nb = $Lcommunes-&gt;getNumResults();<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo "{$item["numetab"]} Nombre de r&eacute;sulats $nb\n&lt;br&gt;";<br>
&nbsp;&nbsp; &nbsp; &nbsp; <br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$Lcommunes-&gt;close();<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$shape-&gt;free();<br>
&nbsp;&nbsp; &nbsp; &nbsp; <br>
&nbsp;&nbsp; &nbsp;$Lcommunes-&gt;close();<br>
&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;$db-&gt;disconnect();<br>
<br>
<div class="moz-signature">-- <br>
Eric BELENFANT <br>
Tel : 02.38.79.45.97 <br>
INGENIEUR D'ETUDES INFORMATIQUE <br>
<a href="http://dep.ac-orleans-tours.fr">DEP - Division Etudes et
Prospectives</a><br>
<a href="http://www.ac-orleans-tours.fr">Rectorat d'Orl&eacute;ans-Tours</a><br>
</div>
</body>
</html>