Ticket #4152 (closed defect: fixed)
SLD fails when using PostGIS
| Reported by: | adube | Owned by: | aboudreault |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | WMS Server | Version: | 6.0 |
| Severity: | normal | Keywords: | |
| Cc: | dmorissette |
Description
SLD
I try to apply a SLD having multiple rules on the GMap popplace data.
Issue
When using a SLD_BODY parameter in a WMS GetMap request on the layer using CONNECTIONTYPE postgis, the image returned doesn't show the expected result. After digging a little, I found out that instead of having each rule applied as an EXPRESSION parameter to each CLASS object (as it is done when using the default CONNECTIONTYPE), only the first rule is applied as a FILTER parameter of the LAYER object. Each CLASS were created, but without EXPRESSION, so only the first one is actually used.
How to reproduce the problem
Import the popplace data in postgis using shp2pgsql. I'll attach a mapfile you can put inside the ./htdocs folder of the gmap demo. I'll also add the query with SLD_BODY I used.

