[mapserver-users] Dinamic SLD style

Joaquín Rodriguez-Guerra Urcelay jrguerra at gmv.com
Mon Oct 25 05:55:44 EDT 2010


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.

______________________



More information about the mapserver-users mailing list