Your should do something like this:
<FormatList>
<Format current="1">image/jpeg</Format>
</FormatList>
<StyleList>
<Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0">
...
</StyledLayerDescriptor>
</SLD>
</Style>
</StyleList>
Hope this helps.
Luca Giandoso
On Mon, 2008-03-10 at 14:20 +0100, Patrick O'Brian wrote:
> Hi everybody!
>
> I'm trying to filter some layers using sld:MinScaleDenominator and
> sld:MaxScaleDenominator tags in the web map context file.
> I've read the WMC standard and think I've set XML tags in the correct
> place, but it doesn't work.
> Here is my context.xml.
>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <ViewContext xmlns="http://www.opengis.net/context"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:ows="http://www.opengis.net/ows"
> xmlns:param="http;//www.opengis.net/param"
> xmlns:sld="http://www.opengis.net/sld"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> id="ows-context-tie" version="0.0.13"
> xsi:schemaLocation="http://www.opengis.net/oc oc_0_0_13.xsd">
> <General>
> <Window height="350" width="666" />
> <BoundingBox SRS="EPSG:23030" maxx="632000" maxy="4300000"
> minx="91310" miny="3959500" />
> <Title>mapbuilder demo</Title>
> </General>
> <LayerList>
> <Layer queryable="0" hidden="0">
> <Server service="OGC:WMS" version="1.1.1" title="raster">
> <OnlineResource xlink:type="simple"
>
> xlink:href="http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/mapas/orto2004Max50000.map"
> />
> </Server>
> <Name>Raster</Name>
> <Title>Ortofoto</Title>
> <SRS>EPSG:23030</SRS>
> <FormatList>
> <Format current="1">image/jpeg</Format>
> </FormatList>
> <sld:MinScaleDenominator>10000</sld:MinScaleDenominator>
> <sld:MaxScaleDenominator>100000</sld:MaxScaleDenominator>
> </Layer>
> </LayerList>
> </ViewContext>
>
> Is there something I missed?
>
> Thank you
>
> Best regards.
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users