Hello friends,
I just success applying filter data for postgis database on my mapfile, but
I met problem when I was to try use dynamic variable for filter data and
extent map like variable at php file.
What should I do for solving this problem? Whether mapfile can be a
dynamically file like php?
All,
Just a heads up on the hatching of a plan by myself (and a couple of others).
See this posting:
https://2014.foss4g.org/all-aboard-the-foss4g2014-express/
Please forward to whomever you think might be interested. I felt comfortable
enough posting to these three lists, but maybe you can
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
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
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
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,
Nice ride! Too bad the train station is a bit far for us. :-)
On 14-05-30 10:58 AM, Basques, Bob (CI-StPaul) wrote:
All,
Just a heads up on the hatching of a plan by myself (and a couple of
others).
See this posting:
https://2014.foss4g.org/all-aboard-the-foss4g2014-express/
Please
Daniel,
Well, yeah, it is a bit far, but it is on the way . . . . hint, hint.
Bobb
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette
Sent: Friday, May 30, 2014 3:20 PM
To: