---
title: "开发环境版本不同造成的困惑-ArcGIS"
author: "honley"
date: "2014-04-02T00:34:04Z"
tags: []
categories: ["行业应用"]
slug: "arcgis"
draft: false
lastmod: "2014-04-02T00:34:04Z"
id: 2039742
url: "https://honley.iteye.com/blog/2039742"
---

在使用ArcGIS API for Flex进行统计分析时，本机开发畅通无阻，但部署到服务器上，总是提示以下错误：

```
Error: "outStatistics" cannot be used in conjunction with the "objectIds", "geometry", 
or "gdbVersion" parameters
```

 

多次修改代码并进行调试依旧无效，最终只能求助于API Document，终于在以下网址：

http://resources.arcgis.com/en/help/rest/apiref/

 

中查到以下内容：

 

#### What's new in the ArcGIS REST API for 10.1 SP1（ArcGIS 10.11）

Map Service Changes:  
Map Server Query operations support geometry parameter to be used in conjunction with outStatistics parameter.

 

原来，使用geometry对统计范围进行限制，是在10.11版本以后才新增的功能。然后再查看本机和服务器，果然不同，我勒个去~！一个小版本的升级，造成了如此的时间浪费，沉痛的教训哟~