SLD using 2 NamedLayers (one with default NamedStyle and one with UserStyle)

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Thu Jan 5 13:27:01 PST 2006


 Bart,

 Right now the sld parser would apply the style on your layer using the 
first NamedLayer found in the SLD and ignore the 2nd one (and 
susequent). The reason being only that It was not being thought when 
originally implemented.  You should add an enhacement bug on it. 

Later,

 
 

 


Eijnden, B. van den (Bart) wrote:

>Hi list,
>
>is the following SLD supposed to work with Mapserver? I can't get it to
>work. What I am trying to do is to display a layer with its default style
>with on top some custom labels for that same layer. I can get it to work
>using 2 separate WMS client layers, but ofcourse this would be far more
>efficient in one pass.
>
><StyledLayerDescriptor version='1.0.0'>
>  <NamedLayer>
>    <Name>NL-prov</Name>
>    <NamedStyle>
>      <Name></Name>
>    </NamedStyle>
>  </NamedLayer>
>  <NamedLayer>
>    <Name>NL-prov</Name>
>      <UserStyle>
>        <FeatureTypeStyle>
>          <Rule>
>            <TextSymbolizer>
>              <Label>OMSCHR</Label>
>              <Font>
>                <CssParameter name='font-color'>#000000</CssParameter>
>                <CssParameter name='font-family'>arial</CssParameter>
>                <CssParameter name='font-size'>10</CssParameter>
>              </Font>
>            </TextSymbolizer>
>          </Rule>
>        </FeatureTypeStyle>
>      </UserStyle>
>    </NamedLayer>
></StyledLayerDescriptor>
>
>Thanks in advance.
>
>Best regards,
>Bart
>
>
>Disclaimer
>************************************************************************
>Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
>uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
>hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
>informeren. Wij adviseren u om bij twijfel over de juistheid of de 
>volledigheid van de mail contact met afzender op te nemen.
>
>This message shall not constitute any rights or obligations.
>This message is intended solely for the addressee.
>If you have received this message in error, please delete it and
>notify the sender immediately. When in doubt whether this message
>is correct or complete, please contact the sender.
>************************************************************************
>  
>


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

Email: assefa 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