在iServer10.1.2上发布一个data服务,用ajax发送请求。设置maxFeatures为30,但返回了109条feature
代码如下:
var queryParam = {
"getFeatureMode": "SQL",
"datasetNames": ["DataSource:Dataset"],
"maxFeatures": 30,
"targetEpsgCode": 3857,
"queryParameter": {
"sortClause": null,
"ids": null,
"name": "getGeoJson",
"attributeFilter": "SmSdriE >= 15415261.828925535 AND SmSdriW <= 15434935.450307712 AND SmSdriS >= 4247431.32282394 AND SmSdriN <= 4260824.9307497218",
"groupClause": null,
"linkItems": null,
"joinItems": null,
"fields": ["field1", "field2"]
},
"hasGeometry": true
};
var entryJson = JSON.stringify(queryParam);
$.ajax({
type: "POST",
cache: false,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
url: url,
dataType: "json",
data: entryJson,
success: function (response) {
console.log("success");
console.log(response);
},
error: function (error) {
console.log("error");
console.log(error);
}
});
请问造成设置maxFeatures无效的原因是什么,应该如何解决问题。服务器是客户那边的服务器,无法随便更新。