SLD using 2 NamedLayers (one with defau lt NamedStyle and one with UserStyle)

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Sun Jan 8 22:53:21 PST 2006


Hi Assefa,

thanks for the answer, for reference, I have opened up an enhancement bug as
you suggested:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1602

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca]
Verzonden: donderdag 5 januari 2006 22:27
Aan: Eijnden, B. van den (Bart)
CC: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: Re: [UMN_MAPSERVER-USERS] SLD using 2 NamedLayers (one with
default NamedStyle and one with UserStyle)


 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
----------------------------------------------------------------




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.
************************************************************************



More information about the MapServer-users mailing list