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

2008-05-30 Thread Adrien Ducos
Thanks to all it now works very nicely. Adrien On Fri, May 30, 2008 at 3:36 PM, Yewondwossen Assefa <[EMAIL PROTECTED]> wrote: > Adrien Ducos wrote: > >> 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 symboli

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

2008-05-30 Thread Yewondwossen Assefa
Adrien Ducos wrote: 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

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

2008-05-30 Thread Yewondwossen Assefa
Adrien You should be able to use the sld with filter. Looking at your sld, you should end up with several classes where the expressions in each class should be set to something like EXPRESSION ([color] = 1), EXPRESSION ([color] = 2). Would these expressions be valid in your case (with your d

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

2008-05-30 Thread Adrien Ducos
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

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

2008-05-30 Thread Barend Kobben
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 -- w

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

2008-05-29 Thread Adrien Ducos
Hi I would like to use an SLD file linked to a wms layer comming from a postgres query (using postgis). In the SLD file I have rules that puts polygon colors according to an attribute in my table the attribute data can be equal to 1,2,3,4,5,6,7 or 8. and according to the value the polygon would be