Wow! Thank you very much Steven!
Finally I can display custom data from postgis with your links before.
I set like this for the mapfile :
VALIDATION
'tid' '^[0-9]{1}\,'
END
FILTER (id in (%tid%))
And this is nicely work for me. :D
Thank you,
regards.
On Sat, May 31, 2014 at 12:30 AM, wrote:
Begin with a simple validation until it works. Is it working if you set
VALIDATION
id '.*'
END
If yes then the problem is in your regex. Make sure that ',' are accepted.
If not the problem is the FILTER or the parameter you pass.
Also Is your ID an integer or text in postgis? I think i
This is my mapfile part :
VALIDATION
'id' '^[0-9]{1}$'
END
FILTER (id in ('%id%'))
and as your advice I set URL parameter like &id=1,4,8 but the map is not
appears there.
When I opened debug, I found :
[Sat May 31 00:10:34 2014].758000 msEvalRegex(): Regular expression error.
String failed expre
In your mapfile you could set FILTER "id in (%ID%)" .
And in the url pass a string as parameter such as &id=1,4,8
That would be a simple way
Please post further question on mapserver list, so others can answer you,
and the answers can help other people later
thanks
steve
Dedy Fuadi
2014-05