[MAPSERVER-USERS] SLD ignored / External Graphic ignored
kobben at itc.nl
Wed Apr 9 13:20:56 EDT 2008
I never tried the external SVG graphics, but the SLD problem sounds very
familiar. Almost always I find this kind of problem having not much to do
with the SLDs themselves, but with TMP file settings. This is certainly more
likely if you say sending the SLD it in SLD-BODY works.
Using SLDs is dependent on the correct setting of the two settings
IMAGEPATH -- where the mapserver software puts the SLD and other temporary
IMAGEURL -- where the web browser and other http services pick them up.
Setting these incorrectly, and more importantly their security setting
incorrrectly, will normally give no problems, but when using SLDs (and also
in other cases, eg. when chaining Mapserver to external WMS and WFS
services), they will make MS malfunction, but SILENTLY (ie. No error
Eg. in our set ups of a WMS with external SLD they are set as follows:
For a *nix setup ( MacOSX) with Mapserver CGI 'behind' Apache:
[all your web metadata...]
For a Win box with Mapserver CGI 'behind' IIS:
The IMAGEPATh is a directory that is reacheable by Mapserver at this real
location (in this case expressed as Unix BSD path on my MacOSX or as UNC
path on Win) and that has read & write access set for the Mapserver
process. Eg. on the Winbox it should have write access for the anonymous
system service account under which Mapserver runs (usually something like
You can test this by seeing if files with names like) are being created when
you request the WMS with external SLD. If they are the IMAGEPATH celarly
works. Then test if you can point a browser to the IMAGEURL and pick up the
tmp file. If that worsk the IMAGEURL is also OK. Now it should work...
Hope this helps.
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
More information about the mapserver-users