[mapserver-users] Dinamic SLD style

Yewondwossen Assefa yassefa at dmsolutions.ca
Mon Oct 25 06:29:22 PDT 2010


Hi there,

  It is possible to do attribute binding on some elements but It was not 
implemented for the Graphic symbol property name. I have added that 
support in trunk. It is described in the bug 3586 [1].
  You might want to add your name to that bug and comment on it.

regards,

[1]: http://trac.osgeo.org/mapserver/ticket/3586
On 25/10/2010 5:55 AM, Joaquín Rodriguez-Guerra Urcelay wrote:
> Hello, I am trying to create a dinamic sld style for a shapefile in mapserver. I come from geoserver, and I was wondering if there was any way to use properties of the shapefile in the sld style, as in the example below where points in the shapefile with tipo=3 are represented with a ship3.png rotated COG deegrees.  Is this possible in mapserver? Thanks for your help!
>
>          <Rule>
>            <Title>ship3</Title>
>            <ogc:Filter>
>              <ogc:PropertyIsEqualTo>
>                <ogc:PropertyName>Tipo</ogc:PropertyName>
>                <ogc:Literal>3</ogc:Literal>
>              </ogc:PropertyIsEqualTo>
>            </ogc:Filter>
>            <PointSymbolizer>
>         <Graphic>
>         <ExternalGraphic>
>           <OnlineResource
>             xlink:type="simple"
>             xlink:href="ships/ship3.png" />
>           <Format>image/png</Format>
>         </ExternalGraphic>
>         <Size>16</Size>
>         <Rotation><ogc:PropertyName>COG</ogc:PropertyName></Rotation>
>       </Graphic>
>            </PointSymbolizer>
>          </Rule>
>
> Joaquín Rodríguez-Guerra Urcelay
>
> ______________________
> This message including any attachments may contain confidential
> information, according to our Information Security Management System,
>   and intended solely for a specific individual to whom they are addressed.
>   Any unauthorised copy, disclosure or distribution of this message
>   is strictly forbidden. If you have received this transmission in error,
>   please notify the sender immediately and delete it.
>
> ______________________
> Este mensaje, y en su caso, cualquier fichero anexo al mismo,
>   puede contener informacion clasificada por su emisor como confidencial
>   en el marco de su Sistema de Gestion de Seguridad de la
> Informacion siendo para uso exclusivo del destinatario, quedando
> prohibida su divulgacion copia o distribucion a terceros sin la
> autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
>   erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
> Gracias por su colaboracion.
>
> ______________________
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------





More information about the MapServer-users mailing list