[OpenLayers-Users] SLD over WMS

Arnd Wippermann arnd.wippermann at web.de
Thu Aug 12 05:43:17 EDT 2010


As far as I know from MapServer, you can't use a relative url.
 
 
example from http://mapserver.org/ogc/sld.html
http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS
<http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VERSION=1.1.1&Re
quest=GetMap&LAYERS=WorldGen_Outline&SLD=http://www2.dmsolutions.ca/msapps/w
orld_testdata/tests/sld_tests/sld_line_simple.xml>
&VERSION=1.1.1&Request=GetMap

&LAYERS=WorldGen_Outline&SLD=http://www2.dmsolutions.ca/msapps/world_testdat
a/tests

/sld_tests/sld_line_simple.xml
Arnd

  _____  

Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Fernando Ribeiro
Gesendet: Donnerstag, 12. August 2010 10:27
An: users at openlayers.org
Betreff: [OpenLayers-Users] SLD over WMS


Hi list,

I am trying to change the default style of a WMS layer, with a new SLD
style. So far I tried the "SLD:", direcly on layer options, and
layer.mergeNewParams, without much success.

Here's the layer I want to change:

var fires_24h = new OpenLayers.Layer.WMS( 
            "Fires 24h",  
            "http://firefly.geog.umd.edu/wms/wms?",  
            { 
                layers: 'fires24',
                sld: './SLD/fires.sld', 
                srs: 'EPSG:4326', 
                format: 'image/png', 
                tiled: 'true', 
                transparent: true 
            }, 
            {isBaseLayer: false} 
        );

Can anyone try and help me?

Thank you!

-- 
Fernando

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100812/ffbe6c82/attachment.html


More information about the Users mailing list