<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi Ritesh,<br><br>I have no errors in my log file. Additionally mo images are generated with the required simbology.<br><br>Thanks in advance.<br><br>-----Mensaje original-----<br>De: mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org] En nombre de Ritesh Ambastha Enviado el: viernes, 25 de abril de 2008 10:12<br>Para: mapserver-users@lists.osgeo.org<br>Asunto: Re: [MAPSERVER-USERS] Postgis and Mapserver<br><br><br>Hey Hans, <br><br>Please check the mapserver log for the error(s). <br>Also, do check the 'tmp' directory where map images are generated. <br><br>Regards,<br>Ritesh Ambastha<br><br><br><br>Hans Castorp wrote:<br>&gt; <br>&gt; Hi to all,<br>&gt;&nbsp; <br>&gt; In the past days I have been answering some questions about it but, by <br>&gt; now,
 I haven’t achieved my goal. I will try to explain what I have and <br>&gt; what I want (need, in fact):<br>&gt;&nbsp; <br>&gt; I’m displaying some cartography: lines and polygons from shape files <br>&gt; and points from a Postgis table (without filtering).<br>&gt; At the same time, I have a form to query the postgis table applying <br>&gt; some filters. I am making these queries using PHP and SQL in the usual <br>&gt; way. I don’t use mapscript queryByAttibutes, because SQL queries are <br>&gt; more flexible and powerful (I think). Due to these facts what I have <br>&gt; is: on one side, a map showing all the points (with no filter) and, on <br>&gt; the other side, a filtered list of these same points.<br>&gt;&nbsp; <br>&gt; What I’m looking to do is:<br>&gt;&nbsp; <br>&gt; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Zoom to all my selection, changing simbology in order to show<br>&gt; some points with the default simbology (map
 file) and others (the <br>&gt; result of my selection) with a special simbology.<br>&gt; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Zoom to one chosen point in my selection. By now, I’m doing it<br>&gt; using zoomToExtents, passing as parameters x and y of the point <br>&gt; (retrieved in the sql query). This works fine but I need to change the <br>&gt; simbology of the selected point in order to make it clearly visible between the others.<br>&gt;&nbsp; <br>&gt; What I’m trying in order to change simbology for selected points is <br>&gt; something like this:<br>&gt;&nbsp; <br>&gt; $oMap = ms_newMapObj($szMapFile);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oLayer = $oMap-&gt;getLayerByName("EMPRESAS");<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oClass = $oLayer-&gt;getClass(0);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oEstilo = $oClass-&gt;getStyle(0);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oLayer-&gt;setFilter($sql);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oEstilo-&gt;set("symbolname", "MARKER_EMPRESA_ALT");<br>&gt;&nbsp; <br>&gt; But I have no results (at least no errors, too J)<br>&gt;&nbsp; <br>&gt; Some help will be welcomed.<br>&gt; Thanks in advance to everyone.<br>&gt;&nbsp; <br>&gt;&nbsp; <br>&gt;&nbsp; <br>&gt;&nbsp; <br>&gt; Hans
 Castorp<br>&gt; <br>&gt; __________________________________________________<br>&gt; Correo Yahoo!<br>&gt; Espacio para todos tus mensajes, antivirus y antispam ¡gratis! <br>&gt; Regístrate ya - http://correo.yahoo.es <br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; mapserver-users@lists.osgeo.org<br>&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt; <br>&gt; <br><br>--<br>View this message in context: http://www.nabble.com/Postgis-and-Mapserver-tp16740842p16892667.html<br>Sent from the Mapserver - User mailing list archive at Nabble.com.<br><br>_______________________________________________<br>mapserver-users mailing list<br>mapserver-users@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/mapserver-users<br><br>No virus found in this incoming message.<br>Checked by AVG. <br>Version: 7.5.524 / Virus Database: 269.23.4/1396 - Release Date: 24/04/2008
 18:32<br>&nbsp;<br><br>No virus found in this outgoing message.<br>Checked by AVG. <br>Version: 7.5.524 / Virus Database: 269.23.4/1396 - Release Date: 24/04/2008 18:32<br><br></div></div><br>
      <hr size=1><br><font face="Verdana" size="-2">Enviado desde <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html">Correo Yahoo!</a><br>La bandeja de entrada más inteligente.<br></font></body></html>