<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>> <br>> Hi to all,<br>>  <br>> In the past days I have been answering some questions about it but, by <br>> now,
 I haven’t achieved my goal. I will try to explain what I have and <br>> what I want (need, in fact):<br>>  <br>> I’m displaying some cartography: lines and polygons from shape files <br>> and points from a Postgis table (without filtering).<br>> At the same time, I have a form to query the postgis table applying <br>> some filters. I am making these queries using PHP and SQL in the usual <br>> way. I don’t use mapscript queryByAttibutes, because SQL queries are <br>> more flexible and powerful (I think). Due to these facts what I have <br>> is: on one side, a map showing all the points (with no filter) and, on <br>> the other side, a filtered list of these same points.<br>>  <br>> What I’m looking to do is:<br>>  <br>> -          Zoom to all my selection, changing simbology in order to show<br>> some points with the default simbology (map
 file) and others (the <br>> result of my selection) with a special simbology.<br>> -          Zoom to one chosen point in my selection. By now, I’m doing it<br>> using zoomToExtents, passing as parameters x and y of the point <br>> (retrieved in the sql query). This works fine but I need to change the <br>> simbology of the selected point in order to make it clearly visible between the others.<br>>  <br>> What I’m trying in order to change simbology for selected points is <br>> something like this:<br>>  <br>> $oMap = ms_newMapObj($szMapFile);<br>>             <br>>             $oLayer = $oMap->getLayerByName("EMPRESAS");<br>>            
 <br>>             $oClass = $oLayer->getClass(0);<br>>             <br>>             $oEstilo = $oClass->getStyle(0);<br>>             <br>>             $oLayer->setFilter($sql);<br>>             <br>>             $oEstilo->set("symbolname", "MARKER_EMPRESA_ALT");<br>>  <br>> But I have no results (at least no errors, too J)<br>>  <br>> Some help will be welcomed.<br>> Thanks in advance to everyone.<br>>  <br>>  <br>>  <br>>  <br>> Hans
 Castorp<br>> <br>> __________________________________________________<br>> Correo Yahoo!<br>> Espacio para todos tus mensajes, antivirus y antispam ¡gratis! <br>> Regístrate ya - http://correo.yahoo.es <br>> _______________________________________________<br>> mapserver-users mailing list<br>> mapserver-users@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>> <br>> <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> <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>