Apply layerdefs to all layers

Discussion created by tinks.thomas on Oct 31, 2011
Latest reply on Nov 1, 2011 by rnarayanan-esristaff
When applying layer definitions to a mapserver export, is it possible to apply a definition to all layers without specifying the query to each individual layer?



instead of


I.E. layerdefs=all:"fieldname=value" instead of layerdefs=0:"fieldname=value";1:"fieldname=value";2:"fieldname=value";...;n:"fieldname=value"

This of course assumes a consistent field name and value.

The reason I want to do this is I'm trying to apply this in a proxy to a request that the web client is making. The proxy doesn't know how many layers there are.