[Mapserver-users] pass filter on url

John Hagstrand john.hagstrand at interageresearch.com
Wed Oct 29 12:21:19 EST 2003


Hello,

I'm having a problem passing a FILTER value through the URL, when the column
is type CHAR.

Here is a snippet of my map file.

LAYER
  	NAME stories
    CONNECTIONTYPE postgis
    CONNECTION "user=..."
    DATA "geo from tstory"
    FILTER "dtime > 2003.170 and scategory = 'wc'"
    CLASSITEM dtime
  	TYPE POINT
  	CLASS
...

Now I want to change the FILTER parameter dynamically.

this works:
...&map_stories_filter=dtime+between+2003.297+and+2003.302&...

this works:
...&map_stories_filter=topicid=0&...

this does not work:
...&map_stories_filter=scategory='wc'&...

I suppose it's the single quotes.  How can I pass this value?

Thanks
John

John Hagstrand
Interage Research, Inc.




More information about the mapserver-users mailing list