Hi
I use the geoserver for a weather project, and since 2 days I am trying to use external SLD.
In the documentation (http://geoserver.org/display/GEOSDOC/SLD+Intro+Tutorial) I read about 2 ways to realize it.
-
To include it as POST Variable (&sld=urlto.sld
-
In the OpenLayer definition
// setup untiled layer
untiled = new OpenLayers.Layer.WMS.Untiled(
“sf:dem”, “http://195.1.161.164:8080/geoserver/wms”,
{
height: ‘552’,
width: ‘800’,
layers: ‘sf:dem’,
styles: ‘’,
srs: ‘EPSG:26713’,
sld: ‘http://localhost/mysldfile.sld’,
format: ‘image/png’
},
{maxExtent: bounds, maxResolution: 74.1796875, projection: “EPSG:26713”}
);
I tested it with a geoserver on linux( Version 1.73 and 1.74 and both doesn’t work
Actual my SLD only work if i paste it with the Style Editor
I need only a way, without post the sld in the geoserver interphase(Styles) and without reload the server
Or should I use it with a database solution?
My example is on:
with sld i used following url
my url to my sld = http://login.comventus.com/sld/shape_CH_style.sld
Thank you
Guido Schratzer
E-Mail-Nachricht wurde von Internet Security ?berpr?ft (6.0.1.440)
Datenbankversion: 6.12500
http://www.pctools.com/internet-security/