SLD / MAXSCALEDENOMINATOR, MINSCALEDENOMINATOR
François Prunayre
fx.prunayre at OIEAU.FR
Mon Mar 27 01:53:51 PST 2006
Hi list,
I'm trying to use min & maxscaledenominator on SLD but can't make it work.
Only the first rule is applied.
Any ideas ? One exemple :
http://sandre.eaufrance.fr/geo/sld/auto/STEP.sld
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengeospatial.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>STEP</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name>Min</Name>
<Title>Min</Title>
<MinScaleDenominator>25000</MinScaleDenominator>
<MaxScaleDenominator>100000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>square</WellKnownName>
<Stroke>
<CssParameter name="stroke">#OOffOO</CssParameter>
</Stroke>
</Mark>
<Size>2</Size>
</Graphic>
</PointSymbolizer>
<TextSymbolizer>
<Label>LIBELLE</Label>
<Font>
<CssParameter
name="font-family">ARIAL</CssParameter>
<CssParameter
name="font-size">6</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>1.0</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>5</DisplacementX>
<DisplacementY>0</DisplacementY>
</Displacement>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter
name="fill">#000000</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
<Rule>
<Name>Max</Name>
<Title>Max</Title>
<MinScaleDenominator>100000</MinScaleDenominator>
<MaxScaleDenominator>1000000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Stroke>
<CssParameter name="stroke">#b3ac3b</CssParameter>
</Stroke>
</Mark>
<Size>2</Size>
</Graphic>
</PointSymbolizer>
<TextSymbolizer>
<Label>LIBELLE</Label>
<Font>
<CssParameter
name="font-family">ARIAL</CssParameter>
<CssParameter
name="font-size">6</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>1.0</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>5</DisplacementX>
<DisplacementY>0</DisplacementY>
</Displacement>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter
name="fill">#000000</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Thanks for your help.
Francois
--
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.
Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.
More information about the MapServer-users
mailing list