[mapserver-users] Runtime variable Substitution Filter
lars.schylberg at blixtmail.se
lars.schylberg at blixtmail.se
Fri Mar 11 06:38:39 PST 2016
Here is a full example with a default value also:
http://linfiniti.com/2011/09/making-the-most-of-umn-mapserver-runtime-variable-substitution/
/Lars S.
-----Originalmeddelande-----
Från: "milad nidal" <miladnidal2604 at gmail.com>
Till: "Richard Greenwood" <richard.greenwood at gmail.com>, "MapserverList OSGEO" <mapserver-users at lists.osgeo.org>
Datum: 2016-03-11 14:31
Ämne: Re: [mapserver-users] Runtime variable Substitution Filter
Could you please explain more about how to do it (the first time which I'm using this variable)..
Do you mean that I use 'default_nom' ' aaa' in the layer metadata (it does not work).. where I should put the default value?
Thanks
On Thu, Mar 10, 2016 at 11:06 PM, Richard Greenwood < richard.greenwood at gmail.com> wrote:
Michael's suggestion is very good. Another method would be to define the later twice with two different names and no filter in one of the definitions. That would also allow you to style the layer differently which might be desirable.
Rich
On Thu, Mar 10, 2016 at 6:44 PM, Michael Smith < michael.smith.erdc at gmail.com> wrote:
You can set a default value for your layer when no value is set. What I do is set it to something like 1=1 and then all values will display. http://mapserver.org/cgi/runsub.html#default-values-if-not-provided-in-the-url
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
On Mar 10, 2016, at 8:36 PM, milad nidal < miladnidal2604 at gmail.com> wrote:
Hi,
I'm using Runtime variable Substitution (FILTER "nom in ( %municipalitylist% )") to chose one municipality from a list and it is going good. But how I can visualize all the municipalities in the layer? Is-it possible to ignore the filter?
Thanks
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Richard W. Greenwood, PLS
www.greenwoodmap.com
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160311/27b5afa6/attachment.htm>
More information about the MapServer-users
mailing list