admin管理员组

文章数量:1654028

需求

利用ArcGIS API for JavaScript进行identify Task或者是QueryTask进行大量查询的时候,发现返回的查询结果最大为1000个,不符合实际的生产需求。

官方说明文档

To prevent queries that request unlimited numbers of features (e.g., empty WHERE statements and statements that are always true), use MaxRecordCount to set the maximum number of features. 
By default, the maximum for ArcGIS Server 10.0 is 1000 features (and 500 features for for ArcGIS Server 9.3).
You can modify this for a specific MapService in its configuration file. For a default windows installation, the file is C:\Program Files\ArcGIS\server\user\cfg\[YourMapService].cfg

解决方法

方法一:
找到arcgis安装目录下你发布的地图文件的 config配置文件(本机:E:\Program Files\ArcGIS\Server10.0\server\user\cfg目录下)
在此文件中修改 节点数值后,重新启动ArcGIS Server Object Manager服务后,即可

方法二:

本文标签: 查询结果JavaScriptAPIArcGISidentify