[TCMUG] mapfile filter & variable substitution question

Jennifer Strahan jennifer at greeninfo.org
Sat Oct 10 22:43:05 EDT 2009


Hi,

Just wanted to let the group know that I've solved this question using SLD.

Thanks,
Jennifer

Jennifer Strahan wrote:
> Hi everyone,
>
> I have a question about using the mapfile Filter option with variable 
> substitution.  In my user interface (OpenLayers), I have drop down 
> boxes that allow users to filter the data display based on selected 
> year and selected category.  Accordingly, I have two filters set up in 
> my mapfile:
>
>   FILTER "year = %selected_year%"
>   FILTER "category=%selected_category%"
>
> What if the user wants to see data for all years or for all 
> categories?  Is there a way that I can submit a wildcard in my mapserv 
> URL instead?  Or is there some other way to do this?  My data source 
> is a PostGIS.
> Regards,
> Jennifer
>
>


-- 
Jennifer Strahan, GIS Specialist
GreenInfo Network - www.greeninfo.org -
Information and Mapping in the Public Interest

**As of Oct. 13, 2008 we have a new address**
564 Market Street, Suite 510
San Francisco CA 94104

Phone: 651-917-0191
Fax: 415-979-0371
Email: jennifer at greeninfo.org 



More information about the Tcmug mailing list