[mapserver-users] using &viewparams
Pedro Costa
pedrocostaarma at sapo.pt
Tue Jul 30 03:56:01 PDT 2013
Hi guys,
I'm trying to generate a lot of maps passing a param in URL request.
In my mapfile I have one layer called streets. The streets are stored in
postgis database and in my mapfile I have that:
".... DATA "the_geom from streets using unique id WHERE id = %id% .. "
Next, i have added to the URL GetMap request this:
&viewparams=id:1
But I get all the layer, and not only the feature with id 1...
I'm doing something wrong?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130730/27942bf5/attachment.htm>
More information about the MapServer-users
mailing list