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

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Thu Jan 5 02:30:51 PST 2006


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



More information about the MapServer-users mailing list