[WFS] Set max features to 0
Clint Johnson
cjohnson at REFRACTIONS.NET
Wed Feb 15 20:00:57 EST 2006
Hi guys,
Is it possible to disable a layer's contents from appearing in a
GetFeature WFS request in terms of a mapping file setting? If not, then
can you give any advice reguaring where I can add such functionality
into the mapserver source code?
I essentially want to have a mechanism where I "protect my data"; that
is, where a complete graphical representation of my data (aka map) can
be viewed via a GetMap WMS request, yet be private/encapsulated by means
of hidden to WFS request (in terms of not returning any features for a
WFS request). And selective in the sense that this functionality can be
applied on a per layer basis without having to completely disable WFS
altogether.
I've looked at the mapserver source code (all occurrences of
MAXFEATURES/maxfeatures) and I see a lot of checks for >0 -- which
reaffirms my observation that "MAXFEATURES 0" is the same as not
specifying MAXFEATURES at all. My guess is that anything less than 1
(and by default -1) is being used denote MAXFEATURES as being not set.
Thanks,
Clint
More information about the mapserver-dev
mailing list