ArcGIS for silverlight 中 QueryTask查询结果限制(500)问题

今天在做项目时遇到了,采用QueryTask地图图层查询任务时,发现最大返回结果为500条的限制。

      困扰整个下午之后,搜索到:

    官网帮助:http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/intro_querytask.htm中有一段提到:

“You should also consider that users can inadvertently or maliciously request unlimited numbers of features. The maximum number of features returned is the MaxRecordCount set in the map service configuration file. By default, this maximum is set to 500 features. Some common ways a user can request the maximum number of records for a layer are:

  • Request all cities with a population greater than 0.
  • Send an empty where statement (where="")
  • Send a statement that is always true (where="1=1").
  • Selecting all features in a layer. ”

    最终按图索骥发现在ArcGIS Server安装目录下存在路径:“C:\Program Files\ArcGIS\server\user\cfg”(本机安装ArcGIS Server默认装在C盘时)中存在已发布地图文件的config配置文件。如地图名为argc,文件名相应为argc.MapServer.ctg,在此文件中修改<MaxRecordCount></MaxRecordCount>节点数值后,重新启动ArcGIS Server Object Manager服务后,即可。

    其他可修改节点属性参见:

    http://webhelp.esri.com/arcgisserver/9.3/dotNet/index.htm#cfg_file_service.htm

转载自 http://hi.baidu.com/techler/blog/item/1f92852e129b945c4fc22697.html

转载于:https://www.cnblogs.com/lcfluck/p/3147898.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值