[mapserver-users] SLD scale problems with raster symboolizer

tellett thomas.ellett at statkart.no
Tue Jan 15 02:33:56 PST 2013


Hi All,

I'm trying to use an sld with a simple raster service and all I'm trying to
do is change the min and maxscales of the layers using the SLD. Mapserver
just doesn't seem to be applying the SLD maxscaledenominator and
minscaledenominator values. 

Mapfile snippet:

LAYER
    NAME "n50"
    STATUS ON
    TILEINDEX "tileindex/n50_index.shp"
    TILEITEM "location"
    TYPE RASTER
    MAXSCALE 100000
    MINSCALE 5000
    PROCESSING "OVERSAMPLE_RATIO=4"
    PROCESSING "RESAMPLE=AVERAGE"
    METADATA
      "wms_title" "n50"
      "wms_extent" "-127998 6377917 1145513 7976805"
    END
    PROJECTION
      "init=epsg:32633"
    END
  END

SLD snippet:

<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.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
    <NamedLayer>
        <Name>n50</Name>
        <UserStyle>
            <FeatureTypeStyle>
                <Rule>
                    <Name>n50</Name>
		    <MinScaleDenominator>1.00000</MinScaleDenominator>
                    <MaxScaleDenominator>100000.000000</MaxScaleDenominator>
                    <RasterSymbolizer></RasterSymbolizer>
                </Rule>
            </FeatureTypeStyle>
        </UserStyle>
    </NamedLayer>
</StyledLayerDescriptor>

I thought I'd see if anyone else has had this problem/knows of an answer
before posting a bug report.

Thanks in advance,

Tom



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-scale-problems-with-raster-symboolizer-tp5027533.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list