I perform a GetFeature query in multiple layers (typeNames
according to spec), which is limited to a certain number of MAXFEATURES
, let's say 500.
Let's say layer A has 10 features that match, and layer B has 600 features that match.
If I include typeNames: [B,A]
, only features from layer B are returned.
If I include typeNames: [A,B]
, I get 10 features from layer A and 490 from layer B.
This is working as I need it to, in the times I've tried it.
My question is: Can I count on it? Is this documented behavior?
The official documentation only mentions "Exactly which N features will be returned depends on the internal structure of the data", which isn't really telling me anything.
Best Answer
One might argue that the the official documentation is the WFS standard, not the GeoServer documentation.
In Web Feature Service Implementation Specification with Corrigendum (Version: 1.1.3) it states:
So if GeoServer follows the standard you should be able to count on it.
However...
You have used
typenames
which suggests you are using WFS 2. In WFS 2 maxfeatures is no longer supported, and you should instead use the COUNT parameter.