MapServer 7.0 WFS GetFeature with maxFeature and ogc:Filter returns no features

المشرف العام

Administrator
طاقم الإدارة
I am trying to dynamically compose and send a WFS GetFeature query (using OpenLayers 2.13) based on user input. User has an option to apply ogc:Filter to the query but may choose not to, so a whole set of features would be returned. To prevent being overwhelmed by too many features, I added the maxFeatures parametr with the value 100. The XML I'm sending to Mapserver might look like this:

NAZ_TOK Or When I send this to the server I'd expect to recieve maximally 100 features with a property called NAZ_TOK starting with letters "Or". Instead I recieve an empty result set.

When I ommit the maxFeatures parameter, the query returns results as expected, in this case a set of 5 features.

This looks to me as if the Mapserver, when supplied the maxFeatures parameter, takes the 100 first features and applies the ogc:Filter to those and since the the first 100 features don't include any features to satisfy the conditoions of the filter, the result set is empty. I tried to set maxFeatures to higher number and the results were as expected.

Is this supposed to happen? Is it my misconception of the parameter or a bug in Mapserver or is something wrong with the XML i send? Thanks.



أكثر...
 
أعلى