# @esri/arcgis-to-geojson-utils 中文文档

规范地址：https://npmcn.com/package/%40esri/arcgis-to-geojson-utils/

版本：1\.3\.0
npm 元数据更新时间：2022-04-05T08:15:37.864Z
中文译文更新时间：2026-11-13T22:45:49.901Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40esri/arcgis-to-geojson-utils
原文对照：https://npmcn.com/package/%40esri/arcgis-to-geojson-utils/?lang=original
项目主页：https://github.com/Esri/arcgis-to-geojson-utils
源码仓库：https://github.com/Esri/arcgis-to-geojson-utils

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：66.8 kB，7 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：未声明
- 运行依赖：0 个
- 首次发布：2017-09-28T19:52:13.345Z
- 最新版本发布：2018-07-06T20:01:24.351Z
- 近 30 天下载量：29698（2026-10-14 至 2026-11-12，npm 官方下载统计）
- 已发布版本数：6（近 12 个月 0 个）

## 中文简介

将ArcGIS JSON几何转换为GeoJSON几何和vica-versa的工具.

## 安装

```sh
npm install @esri/arcgis-to-geojson-utils
```

也可以使用：`pnpm add @esri/arcgis-to-geojson-utils`、`yarn add @esri/arcgis-to-geojson-utils`、`bun add @esri/arcgis-to-geojson-utils`

## README

# 阿尔克吉斯-对地亚森-提法

[![npm](https://img.shields.io/npm/v/@esri/arcgis-to-geojson-utils.svg?style=flat-square)](https://www.npmjs.com/package/@esri/arcgis-to-geojson-utils) [![travis](https://img.shields.io/travis/Esri/arcgis-to-geojson-utils/master.svg?style=flat-square)](https://travis-ci.org/Esri/arcgis-to-geojson-utils) [![standard](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](http://npm.im/semistandard)

将ArcGIS JSON几何转换为GeoJSON几何的工具,反之亦然.

## 安装

```
npm install @esri/arcgis-to-geojson-utils
```

## 使用量

### 浏览器( 来自 CDN)

此软件包作为 [UMD 图像](https://github.com/umdjs/umd) 模块,也可以在基于AMD的系统中使用,或者作为全球范围使用 `ArcgisToGeojsonUtils` 名称空间.

```html
<script src="https://unpkg.com/@esri/arcgis-to-geojson-utils"></script>
```

```js
ArcgisToGeojsonUtils.arcgisToGeoJSON({
    "x":-122.6764,
    "y":45.5165,
    "spatialReference": {
      "wkid": 4326
    }
});
```

### ES6 标准

```js
import { arcgisToGeoJSON } from '@esri/arcgis-to-geojson-utils';
import { geojsonToArcGIS } from '@esri/arcgis-to-geojson-utils';

// parse ArcGIS JSON, convert it to GeoJSON
const geojson = arcgisToGeoJSON({
    "x":-122.6764,
    "y":45.5165,
    "spatialReference": {
      "wkid": 4326
    }
  });

// take GeoJSON and convert it to ArcGIS JSON
const arcgis = geojsonToArcGIS({
  "type": "Point",
  "coordinates": [45.5165, -122.6764]
});
```

### 节点.js

```js
const esriUtils = require('@esri/arcgis-to-geojson-utils');

esriUtils.geojsonToArcGIS(/* ... */);
esriUtils.arcgisToGeoJSON(/* ... */);
```

感谢 [@Jeff-Jacobson(英语:](https://github.com/JeffJacobson),可以找到脚本打字和测试 [无](https://www.npmjs.com/package/@types/arcgis-to-geojson-utils)。 。 。 .

我们建议使用 `--moduleResolution Node` 确保编译器识别类型.

## 问题

找到错误还是想要请求新特性 ? 请让我们知道一个问题.

## 捐款

Esri欢迎所有人的贡献。 请看我们的 [提交文件的准则](https://github.com/esri/contributing)。 。 。 .

## 港口

| 项目 | 语言 | 状态 | 维护者 |
| --- | --- | --- | --- |
| [`arcgis2geojson`](https://github.com/chris48s/arcgis2geojson/) | 蟒 | 不完整 | [@chris48s (英语)](https://github.com/chris48s) |

## 许可证发放

版权: 2015-2018 Esri

根据Apache许可证第2.0版("License"); 您不得使用此文件,除非符合许可证. 您可在下列地点获得许可证副本:

[http://www.apache.org/licenses/LICENSE-2.0 (中文(简体) )](http://www.apache.org/licenses/LICENSE-2.0)

除非适用的法律要求或书面同意,否则软件 根据许可证发放的是在“AS IS”BASIS上发放的, 没有任何明示或暗示的警告或条件. 有关许可的特定语言的许可证 许可证的限制.

许可证副本可到存放处索取 [自由主义](https://npmcn.com/package/%40esri/arcgis-to-geojson-utils/LICENSE) 文档.

## 常见问题

### @esri/arcgis-to-geojson-utils 是什么？

将ArcGIS JSON几何转换为GeoJSON几何和vica-versa的工具\.

### 如何安装 @esri/arcgis-to-geojson-utils？

在项目目录运行 npm install @esri/arcgis-to-geojson-utils，或使用 pnpm add / yarn add / bun add。

### @esri/arcgis-to-geojson-utils 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/esri\_\_arcgis-to-geojson-utils 是否存在。

### @esri/arcgis-to-geojson-utils 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @esri/arcgis-to-geojson-utils 可以商用吗？

@esri/arcgis-to-geojson-utils 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @esri/arcgis-to-geojson-utils 的下载量有多少？

根据 npm 官方下载统计，@esri/arcgis-to-geojson-utils 在 2026/10/14 – 2026/11/12 这 30 天内被下载 29,698 次，日均约 990 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @esri/arcgis-to-geojson-utils 还在维护吗？

最新版本 1\.3\.0 发布于 2018/07/07（8 年前）；至今共发布 6 个版本，其中过去 12 个月发布了 0 个；首次发布于 2017/09/29。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

