MapServer with SLD support

Till Adams adams at TERRESTRIS.DE
Thu Dec 16 10:40:44 EST 2004


Nikolaj Kamstrup wrote:

>
> Dear list members
>
> I'm currently evaluating  a few map engines including MapServer.
> However, I'm having some problems of finding af compiled version of
> MapServer for Windows that supports SLD. I have previously downloaded
> the windows binaries 4.2 version and recently the 4.4 version from the
> MapServer homepage but both of them throw an exception when trying to
> make a WMS request that includes SLD. Exception is something like
> "MapServer supports only default styles and is expecting an empty
> string for the STYLES parameter....".
>
> I would appreciate if someone could direct me to a downloadable
> compiled version of MapServer for windows that supports SLD. I would
> prefer a version compiled with OracleSpatial input support but it's
> not a must.
>
> Thanks
>
> Nikolaj Kamstrup

Nikolaj,

be sure to include the

  "wms_sld_body"  "AUTO"

in your WMS tag of the layer in your mapfile.

I worked on our demo-laptop with umn v4.2 and SLD. The problem is, that
umn just seem to ignore the SLD-tag, if your configuration is not
correct. For the map-request leave the STYLES= Section empty, an example:
http://212.79.172.184/cgi-bin/mapserv42?map=/var/data/sld/world.map&VERsion=1.1.1&REQUEST=getmap&LAYERS=country&STYLES=&SRS=EPSG:4326&BBOX=-180,-180,180,180&WIDTH=400&HEIGHT=200&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE&SLD=http://212.79.172.184/sld/world/country.xml

You may download the SLD from our demoserver and play around with this
(Building side!!!).

Greetings from Germany,

Till 8-)



More information about the mapserver-users mailing list