[MAPSERVER-USERS] Postgis and Mapserver

Hans Castorp hanscastorp76 at yahoo.es
Fri Apr 25 06:56:56 EDT 2008


Hi Ritesh,

I have no errors in my log file. Additionally mo images are generated with the required simbology.

Thanks in advance.

-----Mensaje original-----
De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Ritesh Ambastha Enviado el: viernes, 25 de abril de 2008 10:12
Para: mapserver-users at lists.osgeo.org
Asunto: Re: [MAPSERVER-USERS] Postgis and Mapserver


Hey Hans, 

Please check the mapserver log for the error(s). 
Also, do check the 'tmp' directory where map images are generated. 

Regards,
Ritesh Ambastha



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

--
View this message in context: http://www.nabble.com/Postgis-and-Mapserver-tp16740842p16892667.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.4/1396 - Release Date: 24/04/2008 18:32
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.4/1396 - Release Date: 24/04/2008 18:32


      ______________________________________________ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080425/58329a01/attachment.html


More information about the mapserver-users mailing list