[mapserver-users] Using SLD and WMS with data comming from postgres

Barend Kobben kobben at itc.nl
Fri May 30 04:29:18 EDT 2008


Did you check the SLD TMP file problem (from the thread Re: "SLD ignored /
External Graphic ignored)" see excerpt below)?

***snip***
Using SLDs is dependent on the correct setting of the two settings
 IMAGEPATH  -- where the mapserver software puts the SLD and other temporary
files 
 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
messages).

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:
WEB
    IMAGEPATH "/Users/kobben/Sites/ms_tmp/"
    IMAGEURL "http://localhost/~kobben/ms_tmp/"
    #--------------------------------------------#
    METADATA
       [all your web metadata...]
    END #metadata
END #web

For a Win box with Mapserver CGI 'behind'  IIS:
  IMAGEPATH "C:/tmp/ms_tmp/"
  IMAGEURL "http://geoserver.itc.nl/ms_tmp/"

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
SERVERNAME\IWAM_SERVERNAME).

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.

-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253

International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
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 mailing list