Hi,

Rober Corona wrote:
> Hey everybody!
>  
> I'm trying to apply a certain SLD (not the default one) to a WMS 
> hosted in Geoserver. I´m using the "OnlineResource" to apply the SLD 
> in the following way:(i have omitted some marks for problems with my 
> mail server).
>  
> StyleList
>         Style current=1
>   SLD
>     OnlineResource xlink:type="simple" 
> xlink:href="http://geoserver:8080/geoserver/data/styles/my_sld.sld"; 
>   SLD
> StyleList

You should post XML tags to make it easier to read your XML, but the 
above will probably fail because you have to quote attribute values in 
XML. Here is one that works for me:

            <StyleList>
                <Style current="1">
                    <SLD>
                        <Name>area</Name>
                        <Title>By area</Title>
                        <OnlineResource xlink:type="simple" 
xlink:href="http://localhost:8080/data/area.sld"/>
                    </SLD>
                </Style>
            </StyleList>


Check the URL that Mapbuilder generates to fetch the map images, if 
there is a SLD parameter with the correct URL in it. If yes, then 
everything on the Mapbuilder side is correct.

Regards,
Andreas.


-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to