Ok I found the error, it was on the sld itself: apparently mapserver can't handle in the same rule a point symbolizer and a polygon symbolizer. So I have to make 2 sld layers: one for my points and one for my polygons. It is a pity since openlayers could handle this without any problem.
(there was no problem with the temp file since I gave a chmod access to all users in this folder; but now I understand why I have so many temp files in this directory). On Fri, May 30, 2008 at 10:29 AM, Barend Kobben <[EMAIL PROTECTED]> wrote: > 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/<http://localhost/%7Ekobben/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. >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
