[mapserver-users] Legend for a layer with filter

Steve Lime Steve.Lime at dnr.state.mn.us
Tue Dec 16 17:42:36 EST 2008


Your CLASS needs a name and then it should work ok.

Steve

>>> On 11/13/2008 at 11:31 PM, in message <491D0D1F.2070800 at gslab.com>, Subha
Ramakrishnan <subha at gslab.com> wrote:
> Hi,
> 
> I want to know if it is possible to generate a legend for a layer with a 
> filter.
> I am getting a blank response with a mode=legend for this layer.
> I tried passing the parameter that i am using in the filter, in the 
> request but didn't work either.
> 
> This is the layer in the mapfile:
> layer
>   name filterlayer
>   connectiontype postgis
>   connection "user= username dbname=db password=passwd host=localhost"
>   group world
>   type polygon
>   status on
>   class
>     style
>       width 3
>     color 170 153 175
>     outlinecolor 000 000 000
>    end
>   end
>   filter 'id IN (%pid%)'
>   data "topology from dbtable"
>   transparency 65
>   end
> 
> Thank you.
> 
> Regards,
> Subha
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list