@arcgis/coding-components 4.31.0-next.110 → 4.31.0-next.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +123 -125
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +121 -123
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +122 -124
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +122 -124
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +34 -20
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +34 -21
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +34 -21
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-97eceea4.js → p-02b9ae03.js} +2 -2
- package/dist/arcgis-coding-components/{p-80568468.js → p-0c4ea552.js} +2 -2
- package/dist/arcgis-coding-components/{p-c263ce7c.js → p-225dc9ae.js} +2 -2
- package/dist/arcgis-coding-components/{p-9b5af650.entry.js → p-26682de8.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-21c71fac.js → p-29e25578.js} +2 -2
- package/dist/arcgis-coding-components/{p-254d38d0.js → p-2b431998.js} +2 -2
- package/dist/arcgis-coding-components/{p-1839398f.js → p-345c5513.js} +2 -2
- package/dist/arcgis-coding-components/{p-ec21dc07.js → p-5395066a.js} +2 -2
- package/dist/arcgis-coding-components/{p-bed09f15.entry.js → p-69a9ee69.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-2ff9fa4c.js → p-8e247d60.js} +2 -2
- package/dist/arcgis-coding-components/{p-cba3c318.js → p-a0f13225.js} +1 -1
- package/dist/arcgis-coding-components/{p-fb6efe72.js → p-a6c1d699.js} +1 -1
- package/dist/arcgis-coding-components/{p-0a0a3e58.js → p-b774cb77.js} +2 -2
- package/dist/arcgis-coding-components/{p-85e412fd.js → p-b8a9f7d3.js} +2 -2
- package/dist/arcgis-coding-components/{p-0f518f61.js → p-c444c49c.js} +1 -1
- package/dist/arcgis-coding-components/{p-4aa0db7b.entry.js → p-daac23d2.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-67868308.js → p-eb3b8e79.js} +10 -10
- package/dist/arcgis-coding-components/{p-9b0e2668.js → p-fe1c1faa.js} +2 -2
- package/dist/cjs/{app-globals-50ea6117.js → app-globals-099c496c.js} +1 -1
- package/dist/cjs/{arcade-defaults-9e106ebd.js → arcade-defaults-1f601501.js} +3 -3
- package/dist/cjs/{arcade-mode-19591ce4.js → arcade-mode-97be004c.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-6efdd270.js → css-d67fe8a3.js} +1 -1
- package/dist/cjs/{cssMode-d79c6838.js → cssMode-4ec98698.js} +3 -3
- package/dist/cjs/{html-3da98d0f.js → html-db33989d.js} +3 -3
- package/dist/cjs/{htmlMode-d09e8564.js → htmlMode-95395b75.js} +3 -3
- package/dist/cjs/{index-877437c2.js → index-9eeb0a15.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-8a7004a0.js → javascript-c4f7e826.js} +4 -4
- package/dist/cjs/{jsonMode-e05570fb.js → jsonMode-fbf362ac.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-b6a84377.js → sql-expr-defaults-884d92ee.js} +10 -10
- package/dist/cjs/{sql-expr-mode-92b7d304.js → sql-expr-mode-5bb5880c.js} +3 -3
- package/dist/cjs/{tsMode-b9759b08.js → tsMode-c39b0bf3.js} +3 -3
- package/dist/cjs/{typescript-9c22397c.js → typescript-adcc935b.js} +3 -3
- package/dist/cjs/{useT9n-410a6ee9.js → useT9n-8be92ed5.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-UFIZBDFE.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/editor-variables.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-b1b8f2e9.js → app-globals-b7a0f7f0.js} +1 -1
- package/dist/esm/{arcade-defaults-ae775f08.js → arcade-defaults-c10be5e6.js} +3 -3
- package/dist/esm/{arcade-mode-1d487e66.js → arcade-mode-c644e712.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-3ae29598.js → css-737572b6.js} +1 -1
- package/dist/esm/{cssMode-af36693a.js → cssMode-bd923631.js} +3 -3
- package/dist/esm/{html-5019c0b1.js → html-91df8b03.js} +3 -3
- package/dist/esm/{htmlMode-8e82010e.js → htmlMode-2651d901.js} +3 -3
- package/dist/esm/{index-00a44bf2.js → index-b94d7207.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-0f22790b.js → javascript-93079feb.js} +4 -4
- package/dist/esm/{jsonMode-569c99c1.js → jsonMode-59a995aa.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-bec6ba9d.js → sql-expr-defaults-22297eaa.js} +10 -10
- package/dist/esm/{sql-expr-mode-80440d00.js → sql-expr-mode-29ebe01c.js} +3 -3
- package/dist/esm/{tsMode-1aba25d3.js → tsMode-b8027e9a.js} +3 -3
- package/dist/esm/{typescript-a86ff584.js → typescript-e1a7109e.js} +3 -3
- package/dist/esm/{useT9n-c57ac031.js → useT9n-fec4f521.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/package.json +16 -11
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"name": "textformatting.newline",
|
|
109
109
|
"bundle": "core",
|
|
110
110
|
"link": "https://developers.arcgis.com/arcade/function-reference/constants/#textformatting.newline",
|
|
111
|
-
"description": "在文本中插入新行或换行符。 ArcGIS API 3.x for JavaScript
|
|
112
|
-
"examples": "\n##### 示例\n\n
|
|
111
|
+
"description": "在文本中插入新行或换行符。 试_Multi-line labels are **NOT** supported in the ArcGIS API 3.x for JavaScript nor in the ArcGIS Online Map Viewer Classic______________________________________________________________验.",
|
|
112
|
+
"examples": "\n##### 示例\n\n试_Returns \"T2N_______________验 \n试_R1W\"_________验\n\n```arcade\n\"T\" + $feature.TOWNSHIP + TextFormatting.NewLine + \"R\" + $feature.RANGE\n```\n\n",
|
|
113
113
|
"completion": {
|
|
114
114
|
"label": "TextFormatting.NewLine",
|
|
115
115
|
"detail": "TextFormatting.NewLine",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"kind": 21,
|
|
120
120
|
"documentation": {
|
|
121
121
|
"kind": "markdown",
|
|
122
|
-
"value": "在文本中插入新行或换行符。 ArcGIS API 3.x for JavaScript
|
|
122
|
+
"value": "在文本中插入新行或换行符。 试_Multi-line labels are **NOT** supported in the ArcGIS API 3.x for JavaScript nor in the ArcGIS Online Map Viewer Classic______________________________________________________________验."
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
},
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"kind": 3,
|
|
167
167
|
"documentation": {
|
|
168
168
|
"kind": "markdown",
|
|
169
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的面积。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算平面面积的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
169
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的面积。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算平面面积的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `acres` | `square-feet` | `hectares` | `square-kilometers` | `square-miles` | `square-nautical-miles` | `square-meters` | `square-yards`______________________________________________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [AreaGeodetic()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#areageodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
"parametersInfo": {
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"kind": 3,
|
|
192
192
|
"documentation": {
|
|
193
193
|
"kind": "markdown",
|
|
194
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的测量面积。 这是比 `Area()` 更可靠的面积测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算测量面积的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
194
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的测量面积。 这是比 `Area()` 更可靠的面积测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算测量面积的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `acres` | `square-feet` | `hectares` | `square-kilometers` | `square-miles` | `square-nautical-miles` | `square-meters` | `square-yards`______________________________________________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [Area()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#area)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
"parametersInfo": {
|
|
@@ -248,6 +248,31 @@
|
|
|
248
248
|
"max": 2
|
|
249
249
|
}
|
|
250
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"type": "function",
|
|
253
|
+
"name": "contains",
|
|
254
|
+
"bundle": "data-access",
|
|
255
|
+
"sinceVersion": "1.7",
|
|
256
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#contains",
|
|
257
|
+
"description": "试_Returns features from a FeatureSet that are contained within the input geometry_________________________________________验. 试_In the graphic below, the red highlight illustrates the spatial relationships where the function will return features____________________________________________________________验.\n\n试_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________验. 试_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________验",
|
|
258
|
+
"examples": "\n##### 示例\n\n试_Returns the number of features that are within the given polygon_________________________________验\n\n```arcade\nvar parcels = FeatureSetByName($map, 'parcels')\nvar projectArea = $feature;\nCount(Contains(projectArea, parcels));\n```\n\n",
|
|
259
|
+
"completion": {
|
|
260
|
+
"label": "Contains",
|
|
261
|
+
"detail": "Contains(containerGeometry, insideFeatures) -> FeatureSet",
|
|
262
|
+
"insertText": "Contains(${1:containerGeometry_}, ${2:insideFeatures_})$0",
|
|
263
|
+
"insertTextMode": 2,
|
|
264
|
+
"insertTextFormat": 2,
|
|
265
|
+
"kind": 3,
|
|
266
|
+
"documentation": {
|
|
267
|
+
"kind": "markdown",
|
|
268
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n试_Returns features from a FeatureSet that are contained within the input geometry_________________________________________验. 试_In the graphic below, the red highlight illustrates the spatial relationships where the function will return features____________________________________________________________验.\n\n试_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________验. 试_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________验\n\n**参数**\n\n- **containerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 试_The geometry that is tested for the 'contains' relationship to `insideFeatures`_________________________________________验. 试_Think of this geometry as the potential 'container' of the `insideFeatures`_______________________________________验.\n- **insideFeatures**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 试_The FeatureSet that is tested for the 'within' relationship to the `containerGeometry`_____________________________________________验.\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"parametersInfo": {
|
|
272
|
+
"min": 2,
|
|
273
|
+
"max": 2
|
|
274
|
+
}
|
|
275
|
+
},
|
|
251
276
|
{
|
|
252
277
|
"type": "function",
|
|
253
278
|
"name": "count",
|
|
@@ -439,7 +464,7 @@
|
|
|
439
464
|
"kind": 3,
|
|
440
465
|
"documentation": {
|
|
441
466
|
"kind": "markdown",
|
|
442
|
-
"value": "**[起始版本 1.15](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n请求给定 FeatureSet 的其他属性。\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 将请求字段附加到的要素集。\n- **field1**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 请求给定要素的字段名称。 仅列出在表达式中使用所需的字段。 如有必要,您可以使用通配符 `*` 来请求所有字段。
|
|
467
|
+
"value": "**[起始版本 1.15](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n请求给定 FeatureSet 的其他属性。\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 将请求字段附加到的要素集。\n- **field1**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 请求给定要素的字段名称。 仅列出在表达式中使用所需的字段。 如有必要,您可以使用通配符 `*` 来请求所有字段。 但应该避免这种情况,以防止加载可能对应用程序性能产生负面影响的不必要的数据量。 试_This value must be a text literal and cannot be a variable_______________________________验.\n- **[field2, ..., fieldN]** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 为给定要素请求的字段名称的正在使用的列表。 仅列出在表达式中使用所需的字段。 试_These values must be text literals and cannot be variables_______________________________验.\n\n**返回值**: Null"
|
|
443
468
|
}
|
|
444
469
|
},
|
|
445
470
|
"parametersInfo": {
|
|
@@ -591,7 +616,7 @@
|
|
|
591
616
|
"kind": 3,
|
|
592
617
|
"documentation": {
|
|
593
618
|
"kind": "markdown",
|
|
594
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于给定关系类的名称返回给定要素的相关记录。\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 从中获取相关记录的要素。\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 数据源中定义的关系类的名称。\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - 要在 FeatureSet 中返回的字段。 此列表包括关系表和输入要素中的字段。\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示是否返回结果要素的几何。\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
619
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于给定关系类的名称返回给定要素的相关记录。\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 从中获取相关记录的要素。\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 数据源中定义的关系类的名称。\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - 要在 FeatureSet 中返回的字段。 此列表包括关系表和输入要素中的字段。\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示是否返回结果要素的几何。\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n##### 其他资源\n\n* [Attribute rules and relationship classes](https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rules-and-relationship-classes.htm)\n"
|
|
595
620
|
}
|
|
596
621
|
},
|
|
597
622
|
"parametersInfo": {
|
|
@@ -715,7 +740,7 @@
|
|
|
715
740
|
"kind": 3,
|
|
716
741
|
"documentation": {
|
|
717
742
|
"kind": "markdown",
|
|
718
|
-
"value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回分支或版本化数据的当前地理数据库版本的名称。 当数据不在多用户地理数据库中时,将返回一个空文本值。\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 从中返回当前地理数据库版本的 FeatureSet。\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
743
|
+
"value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回分支或版本化数据的当前地理数据库版本的名称。 当数据不在多用户地理数据库中时,将返回一个空文本值。\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 从中返回当前地理数据库版本的 FeatureSet。\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)\n\n##### 其他资源\n\n* [Overview of Versioning](https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/overview-of-versioning-in-arcgis-pro.htm)\n"
|
|
719
744
|
}
|
|
720
745
|
},
|
|
721
746
|
"parametersInfo": {
|
|
@@ -730,7 +755,7 @@
|
|
|
730
755
|
"sinceVersion": "1.14",
|
|
731
756
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#getfeatureset",
|
|
732
757
|
"description": "获取输入要素所属的 FeatureSet。 返回的 FeatureSet 表示输入要素的父/根图层或表中的所有要素。",
|
|
733
|
-
"examples": "\n##### 示例\n\n返回表示数据源中所有要素的 FeatureSet。\n\n```arcade\n//
|
|
758
|
+
"examples": "\n##### 示例\n\n返回表示数据源中所有要素的 FeatureSet。\n\n```arcade\n// Assume the data source for the 'Bike routes' layer has 2,000 features \n// and the user creating the map has set a definition expression on the 'Bike routes' layer that filters the layer to 100 features. \nvar fs1 = FeatureSetByName($map, 'Bike routes', ['*'], true);\nvar fs2 = top(fs1, 10) \nvar f = First(fs2)\nGetFeatureSet(f)\n// returns a FeatureSet representing the data source, which does not include the map filter (2,000 features)\n```\n\n返回要素的根 FeatureSet。\n\n```arcade\n// Assume the data source for the 'Bike routes' layer has 2,000 features \n// and the user creating the map has set a definition expression on the 'Bike routes' layer that filters the layer to 100 features. \nvar fs1 = FeatureSetByName($map, 'Bike routes', ['*'], true);\nvar fs2 = top(fs1, 10) \nvar f = First(fs2)\nGetFeatureSet(f, 'root')\n// returns the root FeatureSet, which honors the user's filter from the map (a total of 100 features)\n```\n\n返回要素的父 FeatureSet。\n\n```arcade\n// Assume the data source for the 'Bike routes' layer has 2,000 features \n// and the user creating the map has set a definition expression on the 'Bike routes' layer that filters the layer to 100 features. \nvar fs1 = FeatureSetByName($map, 'Bike routes', ['*'], true);\nvar fs2 = top(fs1, 10) \nvar f = First(fs2)\nGetFeatureSet(f, 'parent')\n// returns the parent FeatureSet, which is the result of the top function \n// (a total of 10 features)\n```\n\n返回数据源表中要素 1 英里范围内的要素数。\n\n```arcade\nvar fullFeatureSet = GetFeatureSet($feature);\nvar featuresOneMile = Intersects(fullFeatureSet, BufferGeodetic($feature, 1, 'miles'))\nCount(featuresOneMile)\n```\n\n",
|
|
734
759
|
"completion": {
|
|
735
760
|
"label": "GetFeatureSet",
|
|
736
761
|
"detail": "GetFeatureSet(inputFeature, source?) -> FeatureSet",
|
|
@@ -892,7 +917,7 @@
|
|
|
892
917
|
"kind": 3,
|
|
893
918
|
"documentation": {
|
|
894
919
|
"kind": "markdown",
|
|
895
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的长度。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算平面长度的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
920
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的长度。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算平面长度的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#lengthgeodetic)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
896
921
|
}
|
|
897
922
|
},
|
|
898
923
|
"parametersInfo": {
|
|
@@ -917,7 +942,7 @@
|
|
|
917
942
|
"kind": 3,
|
|
918
943
|
"documentation": {
|
|
919
944
|
"kind": "markdown",
|
|
920
|
-
"value": "**[起始版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据高度或 Z 信息,返回输入 FeatureSet 的平面(即笛卡尔)长度。 必须为提供给该函数的几何分配一个投影坐标系。 如果空间参考不提供 Z 单位的值,则返回结果将以米为单位。 请记住,并非所有客户端(例如 ArcGIS API for JavaScript 的 3.x 系列)都支持 即使数据包含 Z 信息,也请求 Z 值。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 用于计算 3D 空间中平面长度的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
945
|
+
"value": "**[起始版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据高度或 Z 信息,返回输入 FeatureSet 的平面(即笛卡尔)长度。 必须为提供给该函数的几何分配一个投影坐标系。 如果空间参考不提供 Z 单位的值,则返回结果将以米为单位。 请记住,并非所有客户端(例如 ArcGIS API for JavaScript 的 3.x 系列)都支持 即使数据包含 Z 信息,也请求 Z 值。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 用于计算 3D 空间中平面长度的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#lengthgeodetic)\n* [Length()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
921
946
|
}
|
|
922
947
|
},
|
|
923
948
|
"parametersInfo": {
|
|
@@ -942,7 +967,7 @@
|
|
|
942
967
|
"kind": 3,
|
|
943
968
|
"documentation": {
|
|
944
969
|
"kind": "markdown",
|
|
945
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的测量长度。 这是比“Length()”更可靠的长度测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算测量长度的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
970
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入 FeatureSet 的测量长度。 这是比“Length()”更可靠的长度测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 待计算测量长度的 FeatureSet。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [Length()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
946
971
|
}
|
|
947
972
|
},
|
|
948
973
|
"parametersInfo": {
|
|
@@ -1376,7 +1401,7 @@
|
|
|
1376
1401
|
"kind": 3,
|
|
1377
1402
|
"documentation": {
|
|
1378
1403
|
"kind": "markdown",
|
|
1379
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的面积。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **polygon**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 待计算平面面积的面或 Feature。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) -
|
|
1404
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的面积。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **polygon**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 待计算平面面积的面或 Feature。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 试_Measurement unit of the return value____________________验. 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below________________________________________________________________验. \n试_Possible values: `acres` | `square-feet` | `hectares` | `square-kilometers` | `square-miles` | `square-nautical-miles` | `square-meters` | `square-yards`______________________________________________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [AreaGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#areageodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1380
1405
|
}
|
|
1381
1406
|
},
|
|
1382
1407
|
"parametersInfo": {
|
|
@@ -1401,7 +1426,7 @@
|
|
|
1401
1426
|
"kind": 3,
|
|
1402
1427
|
"documentation": {
|
|
1403
1428
|
"kind": "markdown",
|
|
1404
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的大地测量面积。 这是比 `Area()` 更可靠的面积测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **polygon**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 待计算测量面积的面或 Feature。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) -
|
|
1429
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的大地测量面积。 这是比 `Area()` 更可靠的面积测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **polygon**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 待计算测量面积的面或 Feature。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 试_Measurement unit of the return value____________________验. 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below________________________________________________________________验. \n试_Possible values: `acres` | `square-feet` | `hectares` | `square-kilometers` | `square-miles` | `square-nautical-miles` | `square-meters` | `square-yards`______________________________________________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [Area()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#area)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1405
1430
|
}
|
|
1406
1431
|
},
|
|
1407
1432
|
"parametersInfo": {
|
|
@@ -1478,7 +1503,7 @@
|
|
|
1478
1503
|
"kind": 3,
|
|
1479
1504
|
"documentation": {
|
|
1480
1505
|
"kind": "markdown",
|
|
1481
|
-
"value": "**[起始版本 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回输入几何周围指定距离的平面(或欧氏)缓冲。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 要缓冲的几何。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 对几何进行缓冲的距离。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 缓冲区“距离”计算单位。
|
|
1506
|
+
"value": "**[起始版本 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回输入几何周围指定距离的平面(或欧氏)缓冲。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 要缓冲的几何。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 对几何进行缓冲的距离。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 缓冲区“距离”计算单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n##### 其他资源\n\n* [BufferGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#buffergeodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1482
1507
|
}
|
|
1483
1508
|
},
|
|
1484
1509
|
"parametersInfo": {
|
|
@@ -1503,7 +1528,7 @@
|
|
|
1503
1528
|
"kind": 3,
|
|
1504
1529
|
"documentation": {
|
|
1505
1530
|
"kind": "markdown",
|
|
1506
|
-
"value": "**[起始版本 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回输入几何周围指定距离的大地缓冲。 这是在椭圆体上计算距离的测地线测量。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 要缓冲的几何。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 对几何进行缓冲的距离。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 缓冲区“距离”计算单位。
|
|
1531
|
+
"value": "**[起始版本 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回输入几何周围指定距离的大地缓冲。 这是在椭圆体上计算距离的测地线测量。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 要缓冲的几何。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 对几何进行缓冲的距离。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 缓冲区“距离”计算单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n##### 其他资源\n\n* [Buffer()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#buffer)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1507
1532
|
}
|
|
1508
1533
|
},
|
|
1509
1534
|
"parametersInfo": {
|
|
@@ -1561,58 +1586,31 @@
|
|
|
1561
1586
|
"max": 2
|
|
1562
1587
|
}
|
|
1563
1588
|
},
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
"
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
"
|
|
1581
|
-
|
|
1582
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n指示一个几何是否包含另一个几何。 在下图中,红色高亮部分表示函数将返回 `true` 的场景。\n\n**请注意,如果使用 `$feature` 作为此函数的输入,将只产生与视图的比例分辨率具有同等精度的结果。 因此,使用此函数返回的表达式值可能会在比例缩放后发生更改。**\n\n**参数**\n\n- **containerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于测试与 `insideGeometry` 的“包含”关系的几何。 把这种几何看作是 `insideGeometry` 的潜在“容器”。\n- **insideGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于测试与 `containerGeometry` 的‘位于’关系的几何。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1583
|
-
}
|
|
1584
|
-
},
|
|
1585
|
-
"parametersInfo": {
|
|
1586
|
-
"min": 2,
|
|
1587
|
-
"max": 2
|
|
1589
|
+
{
|
|
1590
|
+
"type": "function",
|
|
1591
|
+
"name": "contains",
|
|
1592
|
+
"bundle": "geometry",
|
|
1593
|
+
"sinceVersion": "1.7",
|
|
1594
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#contains",
|
|
1595
|
+
"description": "试_Indicates if one geometry contains another geometry___________________________验. 试_In the graphic below, the red highlight indicates the scenarios where the function will return `true`____________________________________________________验.\n\n试_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________验. 试_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________验",
|
|
1596
|
+
"examples": "\n##### 示例\n\n试_Returns true if the feature is contained within the given polygon__________________________________验\n\n```arcade\nvar container = Polygon({ ... });\nContains(containerGeometry, $feature);\n```\n\n",
|
|
1597
|
+
"completion": {
|
|
1598
|
+
"label": "Contains",
|
|
1599
|
+
"detail": "Contains(containerGeometry, insideGeometry) -> Boolean",
|
|
1600
|
+
"insertText": "Contains(${1:containerGeometry_}, ${2:insideGeometry_})$0",
|
|
1601
|
+
"insertTextMode": 2,
|
|
1602
|
+
"insertTextFormat": 2,
|
|
1603
|
+
"kind": 3,
|
|
1604
|
+
"documentation": {
|
|
1605
|
+
"kind": "markdown",
|
|
1606
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n试_Indicates if one geometry contains another geometry___________________________验. 试_In the graphic below, the red highlight indicates the scenarios where the function will return `true`____________________________________________________验.\n\n试_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________验. 试_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________验\n\n**参数**\n\n- **containerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 试_The geometry that is tested for the 'contains' relationship to `insideGeometry`_________________________________________验. 试_Think of this geometry as the potential 'container' of the `insideGeometry`_______________________________________验.\n- **insideGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 试_The geometry that is tested for the 'within' relationship to the `containerGeometry`____________________________________________验.\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1588
1607
|
}
|
|
1589
1608
|
},
|
|
1590
|
-
{
|
|
1591
|
-
"
|
|
1592
|
-
"
|
|
1593
|
-
"bundle": "geometry",
|
|
1594
|
-
"sinceVersion": "1.7",
|
|
1595
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#contains2",
|
|
1596
|
-
"description": "从输入几何中包含的 FeatureSet 返回要素。 在下图中,红色突出显示了函数将返回要素的空间关系。\n\n**请注意,如果使用 `$feature` 作为此函数的输入,将只产生与视图的比例分辨率具有同等精度的结果。 因此,使用此函数返回的表达式值可能会在比例缩放后发生更改。**",
|
|
1597
|
-
"examples": "\n##### 示例\n\n返回给定面中包含的要素数\n\n```arcade\nvar parcels = FeatureSetByName($map, 'parcels')\nvar projectArea = $feature;\nCount(Contains(projectArea, parcels));\n```\n\n",
|
|
1598
|
-
"completion": {
|
|
1599
|
-
"label": "Contains",
|
|
1600
|
-
"detail": "Contains(containerGeometry, insideFeatures) -> FeatureSet",
|
|
1601
|
-
"insertText": "Contains(${1:containerGeometry_}, ${2:insideFeatures_})$0",
|
|
1602
|
-
"insertTextMode": 2,
|
|
1603
|
-
"insertTextFormat": 2,
|
|
1604
|
-
"kind": 3,
|
|
1605
|
-
"documentation": {
|
|
1606
|
-
"kind": "markdown",
|
|
1607
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n从输入几何中包含的 FeatureSet 返回要素。 在下图中,红色突出显示了函数将返回要素的空间关系。\n\n**请注意,如果使用 `$feature` 作为此函数的输入,将只产生与视图的比例分辨率具有同等精度的结果。 因此,使用此函数返回的表达式值可能会在比例缩放后发生更改。**\n\n**参数**\n\n- **containerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于测试与 `insideFeatures` 的“包含”关系的几何。 把这种几何看作是 `insideFeatures` 的潜在“容器”。\n- **insideFeatures**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 用于测试与 `containerGeometry` 的‘位于’关系的 FeatureSet。\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
1608
|
-
}
|
|
1609
|
-
},
|
|
1610
|
-
"parametersInfo": {
|
|
1611
|
-
"min": 2,
|
|
1612
|
-
"max": 2
|
|
1613
|
-
}
|
|
1609
|
+
"parametersInfo": {
|
|
1610
|
+
"min": 2,
|
|
1611
|
+
"max": 2
|
|
1614
1612
|
}
|
|
1615
|
-
|
|
1613
|
+
},
|
|
1616
1614
|
{
|
|
1617
1615
|
"type": "function",
|
|
1618
1616
|
"name": "convertdirection",
|
|
@@ -1781,7 +1779,7 @@
|
|
|
1781
1779
|
"kind": 3,
|
|
1782
1780
|
"documentation": {
|
|
1783
1781
|
"kind": "markdown",
|
|
1784
|
-
"value": "**[起始版本 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n通过输入折点以创建不长于指定间隔的线段,来增密几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 将增密输入几何。\n- **maxSegmentLength**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 允许的最长线段长度。 必须为正值。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - maxSegmentLength 测量单位。 默认为输入几何的单位。
|
|
1782
|
+
"value": "**[起始版本 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n通过输入折点以创建不长于指定间隔的线段,来增密几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 将增密输入几何。\n- **maxSegmentLength**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 允许的最长线段长度。 必须为正值。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - maxSegmentLength 测量单位。 默认为输入几何的单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)\n\n##### 其他资源\n\n* [DensifyGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#densifygeodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1785
1783
|
}
|
|
1786
1784
|
},
|
|
1787
1785
|
"parametersInfo": {
|
|
@@ -1806,7 +1804,7 @@
|
|
|
1806
1804
|
"kind": 3,
|
|
1807
1805
|
"documentation": {
|
|
1808
1806
|
"kind": "markdown",
|
|
1809
|
-
"value": "**[起始版本 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n在每个输入几何的折点之间创建测地线,并使用附加折点来增密输出几何,以创建不长于指定间隔的线段。\n\n**请注意,如果使用 `$feature` 作为此函数的输入,将只产生与视图的比例分辨率具有同等精度的结果。 因此,使用此函数返回的表达式值可能会在比例缩放后发生更改。**\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 将增密输入几何。\n- **maxSegmentLength**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 允许的最长线段长度。 必须为正值。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - maxSegmentLength 测量单位。 默认为输入几何的单位。
|
|
1807
|
+
"value": "**[起始版本 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n在每个输入几何的折点之间创建测地线,并使用附加折点来增密输出几何,以创建不长于指定间隔的线段。\n\n**请注意,如果使用 `$feature` 作为此函数的输入,将只产生与视图的比例分辨率具有同等精度的结果。 因此,使用此函数返回的表达式值可能会在比例缩放后发生更改。**\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 将增密输入几何。\n- **maxSegmentLength**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 允许的最长线段长度。 必须为正值。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - maxSegmentLength 测量单位。 默认为输入几何的单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)\n\n##### 其他资源\n\n* [Densify()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#densify)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1810
1808
|
}
|
|
1811
1809
|
},
|
|
1812
1810
|
"parametersInfo": {
|
|
@@ -1881,7 +1879,7 @@
|
|
|
1881
1879
|
"kind": 3,
|
|
1882
1880
|
"documentation": {
|
|
1883
1881
|
"kind": "markdown",
|
|
1884
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回两个几何间的平面距离。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于测量距离 `geometry2` 的距离的几何。\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于测量距离 `geometry1` 的距离的几何。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
1882
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回两个几何间的平面距离。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于测量距离 `geometry2` 的距离的几何。\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于测量距离 `geometry1` 的距离的几何。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [DistanceGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancegeodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1885
1883
|
}
|
|
1886
1884
|
},
|
|
1887
1885
|
"parametersInfo": {
|
|
@@ -1899,14 +1897,14 @@
|
|
|
1899
1897
|
"examples": "\n##### 示例\n\n返回从流图层中的公共汽车到中心站的距离(以千米为单位)\n\n```arcade\nvar unionStation = Point({\"x\": -118.15, \"y\": 33.80, \"spatialReference\": { \"wkid\": 3857 }});\ndistanceGeodetic($feature, unionStation, 'kilometers');\n```\n\n",
|
|
1900
1898
|
"completion": {
|
|
1901
1899
|
"label": "DistanceGeodetic",
|
|
1902
|
-
"detail": "DistanceGeodetic(point1, point2,
|
|
1900
|
+
"detail": "DistanceGeodetic(point1, point2, unit?) -> Number",
|
|
1903
1901
|
"insertText": "DistanceGeodetic(${1:point1_}, ${2:point2_})$0",
|
|
1904
1902
|
"insertTextMode": 2,
|
|
1905
1903
|
"insertTextFormat": 2,
|
|
1906
1904
|
"kind": 3,
|
|
1907
1905
|
"documentation": {
|
|
1908
1906
|
"kind": "markdown",
|
|
1909
|
-
"value": "**[起始版本 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n计算沿大圆的两点之间的最短距离。 仅适用于具有地理坐标系 (GCS) 或 Web 墨卡托空间参考的点。 如果输入点具有投影坐标系(Web 墨卡托除外),则应使用 “Distance()”函数。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **point1**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于测量距离 `point2` 的距离的点。 此点必须具有 GCS 或 Web 墨卡托空间参考。\n- **point2**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于测量距离 `point1` 的距离的点。 此点必须具有 GCS 或 Web 墨卡托空间参考。\n- **
|
|
1907
|
+
"value": "**[起始版本 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n计算沿大圆的两点之间的最短距离。 仅适用于具有地理坐标系 (GCS) 或 Web 墨卡托空间参考的点。 如果输入点具有投影坐标系(Web 墨卡托除外),则应使用 “Distance()”函数。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **point1**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于测量距离 `point2` 的距离的点。 此点必须具有 GCS 或 Web 墨卡托空间参考。\n- **point2**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于测量距离 `point1` 的距离的点。 此点必须具有 GCS 或 Web 墨卡托空间参考。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 试_Measurement unit of the return value____________________验. 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [Distance()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distance)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
1910
1908
|
}
|
|
1911
1909
|
},
|
|
1912
1910
|
"parametersInfo": {
|
|
@@ -1931,7 +1929,7 @@
|
|
|
1931
1929
|
"kind": 3,
|
|
1932
1930
|
"documentation": {
|
|
1933
1931
|
"kind": "markdown",
|
|
1934
|
-
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据给定距离沿输入线返回一个坐标。 尝试在给定距离内找到坐标时,考虑线的所有部分。 距离不包括线的路径(或部分)之间的间隙。 如果沿输入线未找到距离,则结果将为 `null`。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于找到坐标的线或路径。 使用要素作为输入时,要素的几何必须是折线。\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 用于沿 `inputLine` 从线起点找到坐标的距离。 尝试在给定距离内找到坐标时,考虑线的所有部分。 距离不包括线的路径(或部分)之间的间隙。 \n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回具有以下属性的字典。 如果沿输入线未找到距离,则结果将为 `null`。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 根据给定距离值沿 `inputLine` 的点的坐标。\n- **
|
|
1932
|
+
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据给定距离沿输入线返回一个坐标。 尝试在给定距离内找到坐标时,考虑线的所有部分。 距离不包括线的路径(或部分)之间的间隙。 如果沿输入线未找到距离,则结果将为 `null`。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 用于找到坐标的线或路径。 使用要素作为输入时,要素的几何必须是折线。\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 用于沿 `inputLine` 从线起点找到坐标的距离。 尝试在给定距离内找到坐标时,考虑线的所有部分。 距离不包括线的路径(或部分)之间的间隙。 \n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回具有以下属性的字典。 如果沿输入线未找到距离,则结果将为 `null`。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 根据给定距离值沿 `inputLine` 的点的坐标。\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 在折线输入的情况下,`coordinate` 所属路径的索引。\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `coordinate` 所属线段的索引(相对于路径)。 如果 `coordinate` 代表输入线的一个折点,则 `segmentId` 将返回前一个折点的索引。 如果 `coordinate` 是 `inputLine` 的第一个折点,则 `segmentId` 的值将为 0。"
|
|
1935
1933
|
}
|
|
1936
1934
|
},
|
|
1937
1935
|
"parametersInfo": {
|
|
@@ -1971,7 +1969,7 @@
|
|
|
1971
1969
|
"sinceVersion": "1.3",
|
|
1972
1970
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#equals",
|
|
1973
1971
|
"description": "指示两个几何在给定空间参考和数据容差的情况下是否相等或在地理上相等。 视作相等的两个输入几何不一定要互为克隆。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_",
|
|
1974
|
-
"examples": "\n##### 示例\n\n如果几何相等,则返回 true\n\n```arcade\nvar geom2 = Point({ ... });\nEquals($feature, geom2);\n```\n\n",
|
|
1972
|
+
"examples": "\n##### 示例\n\n如果几何相等,则返回 true\n\n```arcade\nvar geom2 = Point({ ... });\nEquals(Geometry($feature), geom2);\n```\n\n",
|
|
1975
1973
|
"completion": {
|
|
1976
1974
|
"label": "Equals",
|
|
1977
1975
|
"detail": "Equals(geometry1, geometry2) -> Boolean",
|
|
@@ -1981,7 +1979,7 @@
|
|
|
1981
1979
|
"kind": 3,
|
|
1982
1980
|
"documentation": {
|
|
1983
1981
|
"kind": "markdown",
|
|
1984
|
-
"value": "**[起始版本 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n指示两个几何在给定空间参考和数据容差的情况下是否相等或在地理上相等。 视作相等的两个输入几何不一定要互为克隆。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)
|
|
1982
|
+
"value": "**[起始版本 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n指示两个几何在给定空间参考和数据容差的情况下是否相等或在地理上相等。 视作相等的两个输入几何不一定要互为克隆。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 第一个输入几何。\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 第二个输入几何。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1985
1983
|
}
|
|
1986
1984
|
},
|
|
1987
1985
|
"parametersInfo": {
|
|
@@ -2054,7 +2052,7 @@
|
|
|
2054
2052
|
"kind": 3,
|
|
2055
2053
|
"documentation": {
|
|
2056
2054
|
"kind": "markdown",
|
|
2057
|
-
"value": "从序列化的 JSON 文本构建一个 Extent 对象。 JSON 方案必须遵循 Envelope 对象的 ArcGIS REST API JSON 规范。\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 从中构造 Extent 对象的 JSON 文本。\n\n**返回值**: [Extent](https://developers.arcgis.com/arcade/guide/types/#extent)"
|
|
2055
|
+
"value": "从序列化的 JSON 文本构建一个 Extent 对象。 JSON 方案必须遵循 Envelope 对象的 ArcGIS REST API JSON 规范。\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 从中构造 Extent 对象的 JSON 文本。\n\n**返回值**: [Extent](https://developers.arcgis.com/arcade/guide/types/#extent)\n\n##### 其他资源\n\n* [ArcGIS REST API JSON specification for Envelope objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#ENVELOPE)\n"
|
|
2058
2056
|
}
|
|
2059
2057
|
},
|
|
2060
2058
|
"parametersInfo": {
|
|
@@ -2104,7 +2102,7 @@
|
|
|
2104
2102
|
"kind": 3,
|
|
2105
2103
|
"documentation": {
|
|
2106
2104
|
"kind": "markdown",
|
|
2107
|
-
"value": "从序列化的 JSON 文本或字典构建一个几何对象。 JSON 方案必须遵循 Geometry 对象的 ArcGIS REST API JSON 规范。 该函数还可以返回输入要素的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建几何对象的要素或 JSON
|
|
2105
|
+
"value": "从序列化的 JSON 文本或字典构建一个几何对象。 JSON 方案必须遵循 Geometry 对象的 ArcGIS REST API JSON 规范。 该函数还可以返回输入要素的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建几何对象的要素或 JSON。 试_Starting at version 1.25, the input JSON text or dictionary definitions for Polygons or Polylines may contain curve objects when executed in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps________________________________________________________________________________________________验.\n\n**返回值**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)\n\n##### 其他资源\n\n* [ArcGIS REST API JSON specification for Geometry objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm)\n"
|
|
2108
2106
|
}
|
|
2109
2107
|
},
|
|
2110
2108
|
"parametersInfo": {
|
|
@@ -2281,7 +2279,7 @@
|
|
|
2281
2279
|
"kind": 3,
|
|
2282
2280
|
"documentation": {
|
|
2283
2281
|
"kind": "markdown",
|
|
2284
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的长度。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于计算平面长度的一个或多个几何。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
2282
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的长度。 这是使用笛卡尔算法的平面测量。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于计算平面长度的一个或多个几何。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
2285
2283
|
}
|
|
2286
2284
|
},
|
|
2287
2285
|
"parametersInfo": {
|
|
@@ -2306,7 +2304,7 @@
|
|
|
2306
2304
|
"kind": 3,
|
|
2307
2305
|
"documentation": {
|
|
2308
2306
|
"kind": "markdown",
|
|
2309
|
-
"value": "**[起始版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据高度或 Z 信息,返回输入几何或要素的平面(即笛卡尔)长度。 必须为提供给该函数的几何分配一个投影坐标系。 如果空间参考不提供 Z 单位的值,则返回结果将以米为单位。 请记住,并非所有客户端(例如 ArcGIS API for JavaScript 的 3.x 系列)都支持 即使数据包含 Z 信息,也请求 Z 值。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于计算 3D 空间中平面长度的几何或 Feature。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
2307
|
+
"value": "**[起始版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据高度或 Z 信息,返回输入几何或要素的平面(即笛卡尔)长度。 必须为提供给该函数的几何分配一个投影坐标系。 如果空间参考不提供 Z 单位的值,则返回结果将以米为单位。 请记住,并非所有客户端(例如 ArcGIS API for JavaScript 的 3.x 系列)都支持 即使数据包含 Z 信息,也请求 Z 值。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 用于计算 3D 空间中平面长度的几何或 Feature。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic)\n* [Length()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
2310
2308
|
}
|
|
2311
2309
|
},
|
|
2312
2310
|
"parametersInfo": {
|
|
@@ -2331,7 +2329,7 @@
|
|
|
2331
2329
|
"kind": 3,
|
|
2332
2330
|
"documentation": {
|
|
2333
2331
|
"kind": "markdown",
|
|
2334
|
-
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的大地测量长度。 这是比“Length()”更可靠的长度测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 要计算大地测量长度的几何。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。
|
|
2332
|
+
"value": "**[起始版本 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以给定单位返回输入几何或要素的大地测量长度。 这是比“Length()”更可靠的长度测量 因为它考虑到了地球的曲率。 支持仅限于具有 Web 墨卡托 (wkid 3857) 或 WGS 84 (wkid 4326) 空间参考的几何。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何(即 `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 要计算大地测量长度的几何。\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 返回值的测量单位。 试_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________验. 试_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________验. 试_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________验. \n试_Possible values: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`_____________________________________________验\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [Length()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"
|
|
2335
2333
|
}
|
|
2336
2334
|
},
|
|
2337
2335
|
"parametersInfo": {
|
|
@@ -2454,7 +2452,7 @@
|
|
|
2454
2452
|
"kind": 3,
|
|
2455
2453
|
"documentation": {
|
|
2456
2454
|
"kind": "markdown",
|
|
2457
|
-
"value": "从序列化的 JSON 文本构建一个多点对象。 JSON 方案必须遵循 Multipoint 对象的 ArcGIS REST API JSON 规范。\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建多点几何对象的 JSON。\n\n**返回值**: [Multipoint](https://developers.arcgis.com/arcade/guide/types/#multipoint)"
|
|
2455
|
+
"value": "从序列化的 JSON 文本构建一个多点对象。 JSON 方案必须遵循 Multipoint 对象的 ArcGIS REST API JSON 规范。\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建多点几何对象的 JSON。\n\n**返回值**: [Multipoint](https://developers.arcgis.com/arcade/guide/types/#multipoint)\n\n##### 其他资源\n\n* [ArcGIS REST API JSON specification for Multipoint objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#MULTIPOINT)\n"
|
|
2458
2456
|
}
|
|
2459
2457
|
},
|
|
2460
2458
|
"parametersInfo": {
|
|
@@ -2604,7 +2602,7 @@
|
|
|
2604
2602
|
"kind": 3,
|
|
2605
2603
|
"documentation": {
|
|
2606
2604
|
"kind": "markdown",
|
|
2607
|
-
"value": "从序列化的 JSON 文本构建 Point 对象。 JSON 方案必须遵循 Point 对象的 ArcGIS REST API JSON 规范。\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建点几何对象的 JSON。\n\n**返回值**: [Point](https://developers.arcgis.com/arcade/guide/types/#point)"
|
|
2605
|
+
"value": "从序列化的 JSON 文本构建 Point 对象。 JSON 方案必须遵循 Point 对象的 ArcGIS REST API JSON 规范。\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建点几何对象的 JSON。\n\n**返回值**: [Point](https://developers.arcgis.com/arcade/guide/types/#point)\n\n##### 其他资源\n\n* [ArcGIS REST API JSON specification for Point objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#POINT)\n"
|
|
2608
2606
|
}
|
|
2609
2607
|
},
|
|
2610
2608
|
"parametersInfo": {
|
|
@@ -2655,7 +2653,7 @@
|
|
|
2655
2653
|
"kind": 3,
|
|
2656
2654
|
"documentation": {
|
|
2657
2655
|
"kind": "markdown",
|
|
2658
|
-
"value": "仅使用一个值数组作为坐标从字典构造 Polygon 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polygon 几何对象的属性。\n\n - **rings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组环(或形状),其中每个环都是一组折点。\n\n - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 环中的折点数组。 所有环都应该是闭合的,这意味着每个环的第一个折点应该始终与最后一个折点相同。 折点应按顺时针顺序定义。 以逆时针顺序定义折点的环将导致面孔洞。\n\n - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number)> - 表示环中单个折点或坐标的数字数组。 数组中的第一项表示 x 坐标。 第二个元素表示 y 坐标。 如果 `hasM` 为真且 `hasZ` 为假,则第三个元素表示 m 坐标。 否则,第三个元素表示 z 坐标。 如果 `hasZ` 和 `hasM` 都为真,则第三个元素表示 z 坐标,第四个元素表示 m 坐标。\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)"
|
|
2656
|
+
"value": "仅使用一个值数组作为坐标从字典构造 Polygon 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polygon 几何对象的属性。\n\n - **rings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组环(或形状),其中每个环都是一组折点。\n\n - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 环中的折点数组。 所有环都应该是闭合的,这意味着每个环的第一个折点应该始终与最后一个折点相同。 折点应按顺时针顺序定义。 以逆时针顺序定义折点的环将导致面孔洞。\n\n - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number)> - 表示环中单个折点或坐标的数字数组。 数组中的第一项表示 x 坐标。 第二个元素表示 y 坐标。 如果 `hasM` 为真且 `hasZ` 为假,则第三个元素表示 m 坐标。 否则,第三个元素表示 z 坐标。 如果 `hasZ` 和 `hasM` 都为真,则第三个元素表示 z 坐标,第四个元素表示 m 坐标。\n - **curveRings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试__Since version 1.25 in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps._ An array of rings (or shapes) that may contain curves_________________________________________________________________验.\n\n - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_An array of vertices or curve objects in a ring. All rings should be closed, meaning the first vertex of each ring should always be the same as the last vertex. Vertices should be defined in clockwise order. Rings with vertices defined in counter-clockwise order will result in polygon holes. Each item in the array can be either a vertex or a curve object____________________________________________________________________________________________________________________________________________________________________________________验.\n\n - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number)> - 试_An array of numbers representing a single vertex or coordinate in a ring. The first item in the array represents the x-coordinate. The second element represents the y-coordinate. The third element represents the m-coordinate if `hasM` is true and `hasZ` is false. Otherwise, the third element represents the z-coordinate. If `hasZ` and `hasM` are both true, then the third element represents the z-coordinate, and the fourth element represents the m-coordinate________________________________________________________________________________________________________________________________________________________________________________________________________________________________________验.\n - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 试_A curve object that represents a segment of a ring. The curve object has the following properties__________________________________________________验:\n\n - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Defines an elliptic or circular arc. Circular arcs have four elements in the array; elliptic arcs must have 7 elements_____________________________________________________________验.\n - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Represents a cubic Bézier curve. This is defined by an array of three arrays representing an end point and two control points________________________________________________________________验.\n - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_The c property represents an open circular arc. This is defined as an array of two double-precision values representing the x and y coordinates of the center of the circle_______________________________________________________________________________________验.\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n##### 其他资源\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"
|
|
2659
2657
|
}
|
|
2660
2658
|
},
|
|
2661
2659
|
"parametersInfo": {
|
|
@@ -2679,7 +2677,7 @@
|
|
|
2679
2677
|
"kind": 3,
|
|
2680
2678
|
"documentation": {
|
|
2681
2679
|
"kind": "markdown",
|
|
2682
|
-
"value": "使用一个点数组作为坐标从字典构造 Polygon 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polygon 几何对象的属性。\n\n - **rings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组环(或形状),其中每个环都是一个点数组。\n\n - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 表示环的点数组。 所有环都应该是闭合的,这意味着每个环的第一个点应该始终与最后一个点相同。 点应按顺时针顺序定义。 以逆时针顺序定义折点的环将导致面孔洞。\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)"
|
|
2680
|
+
"value": "使用一个点数组作为坐标从字典构造 Polygon 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polygon 几何对象的属性。\n\n - **rings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组环(或形状),其中每个环都是一个点数组。\n\n - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 表示环的点数组。 所有环都应该是闭合的,这意味着每个环的第一个点应该始终与最后一个点相同。 点应按顺时针顺序定义。 以逆时针顺序定义折点的环将导致面孔洞。\n - **curveRings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试__Since version 1.25 in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps._ An array of rings (or shapes) that may contain curves_________________________________________________________________验.\n\n - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_An array of vertices or curve objects in a ring. All rings should be closed, meaning the first vertex of each ring should always be the same as the last vertex. Vertices should be defined in clockwise order. Rings with vertices defined in counter-clockwise order will result in polygon holes. Each item in the array can be either a vertex or a curve object____________________________________________________________________________________________________________________________________________________________________________________验.\n\n - **vertex**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 试_An point representing a single vertex or coordinate in a ring________________________________验.\n - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 试_A curve object that represents a segment of a ring. The curve object has the following properties__________________________________________________验:\n\n - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Defines an elliptic or circular arc. Circular arcs have four elements in the array; elliptic arcs must have 7 elements_____________________________________________________________验.\n - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Represents a cubic Bézier curve. This is defined by an array of three arrays representing an end point and two control points________________________________________________________________验.\n - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_The c property represents an open circular arc. This is defined as an array of two double-precision values representing the x and y coordinates of the center of the circle_______________________________________________________________________________________验.\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n##### 其他资源\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"
|
|
2683
2681
|
}
|
|
2684
2682
|
},
|
|
2685
2683
|
"parametersInfo": {
|
|
@@ -2692,7 +2690,7 @@
|
|
|
2692
2690
|
"name": "polygon",
|
|
2693
2691
|
"bundle": "geometry",
|
|
2694
2692
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polygon3",
|
|
2695
|
-
"description": "从序列化的 JSON 文本构建 Polygon 对象。 JSON 方案必须遵循 Polygon 对象的 ArcGIS REST API JSON 规范。",
|
|
2693
|
+
"description": "从序列化的 JSON 文本构建 Polygon 对象。 JSON 方案必须遵循 Polygon 对象的 ArcGIS REST API JSON 规范。 试_JSON text may contain curve objects in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps starting at version 1.25_________________________________________________________验.",
|
|
2696
2694
|
"examples": "\n##### 示例\n\n\n\n```arcade\n// Creates a Polygon object\nvar polygonJSON = '{\"rings\": [[[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832], [-97.06138,32.837]],[[-97.06326,32.759],[-97.06298,32.755],[-97.06153,32.749], [-97.06326,32.759]]],\"spatialReference\": { \"wkid\": 3857 }}';\nPolygon(polygonJSON);\n```\n\n",
|
|
2697
2695
|
"completion": {
|
|
2698
2696
|
"label": "Polygon",
|
|
@@ -2703,7 +2701,7 @@
|
|
|
2703
2701
|
"kind": 3,
|
|
2704
2702
|
"documentation": {
|
|
2705
2703
|
"kind": "markdown",
|
|
2706
|
-
"value": "从序列化的 JSON 文本构建 Polygon 对象。 JSON 方案必须遵循 Polygon 对象的 ArcGIS REST API JSON
|
|
2704
|
+
"value": "从序列化的 JSON 文本构建 Polygon 对象。 JSON 方案必须遵循 Polygon 对象的 ArcGIS REST API JSON 规范。 试_JSON text may contain curve objects in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps starting at version 1.25_________________________________________________________验.\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建面几何对象的 JSON。\n\n**返回值**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n##### 其他资源\n\n* [ArcGIS REST API JSON specification for Polygon objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#POLYGON)\n"
|
|
2707
2705
|
}
|
|
2708
2706
|
},
|
|
2709
2707
|
"parametersInfo": {
|
|
@@ -2729,7 +2727,7 @@
|
|
|
2729
2727
|
"kind": 3,
|
|
2730
2728
|
"documentation": {
|
|
2731
2729
|
"kind": "markdown",
|
|
2732
|
-
"value": "仅使用一个值数组作为坐标从字典构造 Polyline 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polyline 几何对象的属性。\n\n - **paths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组路径(或线段),其中每条路径都是一组折点。\n\n - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 线段或路径中的折点数组。\n\n - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number)> - 表示线段中单个折点或坐标的数字数组。 数组中的第一项表示 x 坐标。 第二个元素表示 y 坐标。 如果 `hasM` 为真且 `hasZ` 为假,则第三个元素表示 m 坐标。 否则,第三个元素表示 z 坐标。 如果 `hasZ` 和 `hasM` 都为真,则第三个元素表示 z 坐标,第四个元素表示 m 坐标。\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)"
|
|
2730
|
+
"value": "仅使用一个值数组作为坐标从字典构造 Polyline 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polyline 几何对象的属性。\n\n - **paths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组路径(或线段),其中每条路径都是一组折点。\n\n - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 线段或路径中的折点数组。\n\n - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number)> - 表示线段中单个折点或坐标的数字数组。 数组中的第一项表示 x 坐标。 第二个元素表示 y 坐标。 如果 `hasM` 为真且 `hasZ` 为假,则第三个元素表示 m 坐标。 否则,第三个元素表示 z 坐标。 如果 `hasZ` 和 `hasM` 都为真,则第三个元素表示 z 坐标,第四个元素表示 m 坐标。\n - **curvePaths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试__Since version 1.25 in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps._ An array of paths (or line segments) that may contain curves____________________________________________________________________验.\n\n - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_An array of vertices or curve objects in a path_________________________验.\n\n - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number)> - 试_An array of numbers representing a single vertex or coordinate in a line segment. The first item in the array represents the x-coordinate. The second element represents the y-coordinate. The third element represents the m-coordinate if `hasM` is true and `hasZ` is false. Otherwise, the third element represents the z-coordinate. If `hasZ` and `hasM` are both true, then the third element represents the z-coordinate, and the fourth element represents the m-coordinate____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________验.\n - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 试_A curve object that represents a segment of a path. The curve object has the following properties__________________________________________________验:\n\n - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Defines an elliptic or circular arc. Circular arcs have four elements in the array; elliptic arcs must have 7 elements_____________________________________________________________验.\n - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Represents a cubic Bézier curve. This is defined by an array of three arrays representing an end point and two control points________________________________________________________________验.\n - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_The c property represents an open circular arc. This is defined as an array of two double-precision values representing the x and y coordinates of the center of the circle_______________________________________________________________________________________验.\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)\n\n##### 其他资源\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"
|
|
2733
2731
|
}
|
|
2734
2732
|
},
|
|
2735
2733
|
"parametersInfo": {
|
|
@@ -2753,7 +2751,7 @@
|
|
|
2753
2751
|
"kind": 3,
|
|
2754
2752
|
"documentation": {
|
|
2755
2753
|
"kind": "markdown",
|
|
2756
|
-
"value": "仅使用一个点数组作为坐标从字典构造 Polyline 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polyline 几何对象的属性。\n\n - **paths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组路径(或线段),其中每条路径都是一组点对象。\n\n - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 表示线段或路径的点数组。\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)"
|
|
2754
|
+
"value": "仅使用一个点数组作为坐标从字典构造 Polyline 对象。\n\n**参数**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 用于构建 Polyline 几何对象的属性。\n\n - **paths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 一组路径(或线段),其中每条路径都是一组点对象。\n\n - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - 表示线段或路径的点数组。\n - **curvePaths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试__Since version 1.25 in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps._ An array of paths (or line segments) that may contain curves____________________________________________________________________验.\n\n - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_An array of vertices or curve objects in a path_________________________验.\n\n - **vertex**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 试_A point representing a vertex in a path_____________________验.\n - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 试_A curve object that represents a segment of a path. The curve object has the following properties__________________________________________________验:\n\n - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Defines an elliptic or circular arc. Circular arcs have four elements in the array; elliptic arcs must have 7 elements_____________________________________________________________验.\n - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_Represents a cubic Bézier curve. This is defined by an array of three arrays representing an end point and two control points________________________________________________________________验.\n - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - 试_The c property represents an open circular arc. This is defined as an array of two double-precision values representing the x and y coordinates of the center of the circle_______________________________________________________________________________________验.\n - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 m 值。\n - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - 指示几何是否具有 z 值。\n - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - 几何的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 地理或投影坐标系的 Well-known ID,用于定义绘制几何的参考。\n\n**返回值**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)\n\n##### 其他资源\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"
|
|
2757
2755
|
}
|
|
2758
2756
|
},
|
|
2759
2757
|
"parametersInfo": {
|
|
@@ -2766,7 +2764,7 @@
|
|
|
2766
2764
|
"name": "polyline",
|
|
2767
2765
|
"bundle": "geometry",
|
|
2768
2766
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polyline3",
|
|
2769
|
-
"description": "从序列化的 JSON 文本构建 Polyline 对象。 JSON 方案必须遵循 Polyline 对象的 ArcGIS REST API JSON 规范。",
|
|
2767
|
+
"description": "从序列化的 JSON 文本构建 Polyline 对象。 JSON 方案必须遵循 Polyline 对象的 ArcGIS REST API JSON 规范。 试_JSON text may contain curve objects in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps starting at version 1.25_________________________________________________________验.",
|
|
2770
2768
|
"examples": "\n##### 示例\n\n\n\n```arcade\n// Creates a Polyline object\nvar polylineJSON = '{\"paths\": [[[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832]], [[-97.06326,32.759],[-97.06298,32.755]]], \"spatialReference\": { \"wkid\": 3857 } }'\nPolyline(polylineJSON);\n```\n\n",
|
|
2771
2769
|
"completion": {
|
|
2772
2770
|
"label": "Polyline",
|
|
@@ -2777,7 +2775,7 @@
|
|
|
2777
2775
|
"kind": 3,
|
|
2778
2776
|
"documentation": {
|
|
2779
2777
|
"kind": "markdown",
|
|
2780
|
-
"value": "从序列化的 JSON 文本构建 Polyline 对象。 JSON 方案必须遵循 Polyline 对象的 ArcGIS REST API JSON
|
|
2778
|
+
"value": "从序列化的 JSON 文本构建 Polyline 对象。 JSON 方案必须遵循 Polyline 对象的 ArcGIS REST API JSON 规范。 试_JSON text may contain curve objects in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps starting at version 1.25_________________________________________________________验.\n\n**参数**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于构建折线几何对象的 JSON 文本。\n\n**返回值**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)\n\n##### 其他资源\n\n* [ArcGIS REST API JSON specification for Polyline objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#POLYLINE)\n"
|
|
2781
2779
|
}
|
|
2782
2780
|
},
|
|
2783
2781
|
"parametersInfo": {
|
|
@@ -3050,8 +3048,8 @@
|
|
|
3050
3048
|
"bundle": "core",
|
|
3051
3049
|
"sinceVersion": "1.26",
|
|
3052
3050
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#defaultvalue",
|
|
3053
|
-
"description": "
|
|
3054
|
-
"examples": "\n##### 示例\n\
|
|
3051
|
+
"description": "如果要素中的字段名称不存在或者指定字段的值为“null”或空文本值,则返回指定的默认值。",
|
|
3052
|
+
"examples": "\n##### 示例\n\n如果要素属性不存在或为空,则返回“n/a”\n\n```arcade\nDefaultValue($feature, \"population\", \"n/a\")\n// Returns the population value if available\n// or n/a if not available\n```\n\n",
|
|
3055
3053
|
"completion": {
|
|
3056
3054
|
"label": "DefaultValue",
|
|
3057
3055
|
"detail": "DefaultValue(container, fieldName, defaultValue) -> Any",
|
|
@@ -3061,7 +3059,7 @@
|
|
|
3061
3059
|
"kind": 3,
|
|
3062
3060
|
"documentation": {
|
|
3063
3061
|
"kind": "markdown",
|
|
3064
|
-
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3062
|
+
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n如果要素中的字段名称不存在或者指定字段的值为“null”或空文本值,则返回指定的默认值。\n\n**参数**\n\n- **container**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 要检查的输入要素。\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 要检查的字段名。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 如果字段名称不存在或者指定字段的值为“null”或空文本值,则返回此值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n如果已定义,则返回指定字段的值。 否则,返回 `defaultValue` 中指定的值。"
|
|
3065
3063
|
}
|
|
3066
3064
|
},
|
|
3067
3065
|
"parametersInfo": {
|
|
@@ -3150,7 +3148,7 @@
|
|
|
3150
3148
|
"bundle": "core",
|
|
3151
3149
|
"sinceVersion": "1.15",
|
|
3152
3150
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#expects",
|
|
3153
|
-
"description": "请求给定要素的附加属性。 在某些配置文件(例如可视化和标注)中,应用程序仅请求渲染每个要素或标注所需的数据属性。 某些表达式使用变量而不是文本动态引用字段名称。 这将导致渲染和标注引擎难以检测渲染所需的字段。 此功能允许您使用列表明确表示必填字段。 您还可以使用通配符请求全部或部分字段。 由于将基于每个要素执行表达式,因此需谨慎使用通配符,尤其是在包含许多要素的图层中。
|
|
3151
|
+
"description": "请求给定要素的附加属性。 在某些配置文件(例如可视化和标注)中,应用程序仅请求渲染每个要素或标注所需的数据属性。 某些表达式使用变量而不是文本动态引用字段名称。 这将导致渲染和标注引擎难以检测渲染所需的字段。 此功能允许您使用列表明确表示必填字段。 您还可以使用通配符请求全部或部分字段。 由于将基于每个要素执行表达式,因此需谨慎使用通配符,尤其是在包含许多要素的图层中。 试_Requesting too much data can result in poor app performance_______________________________验.",
|
|
3154
3152
|
"examples": "\n##### 示例\n\n渲染器不易检测到的请求字段\n\n```arcade\n// Request multiple years of population data if the\n// fields cannot be easily detected by the renderer or labels\nExpects($feature, 'POP_2020', 'POP_2010')\nvar thisYear = 2020;\nvar lastDecade = thisYear - 10;\nreturn $feature['POP_'+thisYear] - $feature['POP_'+lastDecade]\n```\n\n请求与字段名称中的模式匹配的所有数据\n\n```arcade\n// Request all the data beginning with 'POP'. This is\n// necessary because the renderer can't easily detect\n// the required fields based on this expression\nExpects($feature, 'POP*')\n\nvar startYear = 1880;\nvar endYear = 2020;\nvar changes = [];\n\nfor(var y=startYear; y<endYear; y+=10){\n var startPop = $feature['POP_' + y];\n var endPop = $feature['POP_' + (y+10)];\n var change = endPop - startPop;\n Push(changes, change);\n}\nMax(changes);\n```\n\n请求要素的所有数据\n\n```arcade\n// Request all fields because the required fields may\n// be based on unknown information like a relative date\nExpects($feature, '*')\n\nvar casesToday = $feature[ 'CASES_' + Text(d, 'MM_DD_Y') ];\nvar casesYesterday = $feature[ 'CASES_' + Text(DateAdd( Today(), -1, 'days', 'MM_DD_Y') ];\n// Change in cases from yesterday\nreturn casesToday - casesYesterday;\n```\n\n",
|
|
3155
3153
|
"completion": {
|
|
3156
3154
|
"label": "Expects",
|
|
@@ -3161,7 +3159,7 @@
|
|
|
3161
3159
|
"kind": 3,
|
|
3162
3160
|
"documentation": {
|
|
3163
3161
|
"kind": "markdown",
|
|
3164
|
-
"value": "**[起始版本 1.15](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n请求给定要素的附加属性。 在某些配置文件(例如可视化和标注)中,应用程序仅请求渲染每个要素或标注所需的数据属性。 某些表达式使用变量而不是文本动态引用字段名称。 这将导致渲染和标注引擎难以检测渲染所需的字段。 此功能允许您使用列表明确表示必填字段。 您还可以使用通配符请求全部或部分字段。 由于将基于每个要素执行表达式,因此需谨慎使用通配符,尤其是在包含许多要素的图层中。
|
|
3162
|
+
"value": "**[起始版本 1.15](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n请求给定要素的附加属性。 在某些配置文件(例如可视化和标注)中,应用程序仅请求渲染每个要素或标注所需的数据属性。 某些表达式使用变量而不是文本动态引用字段名称。 这将导致渲染和标注引擎难以检测渲染所需的字段。 此功能允许您使用列表明确表示必填字段。 您还可以使用通配符请求全部或部分字段。 由于将基于每个要素执行表达式,因此需谨慎使用通配符,尤其是在包含许多要素的图层中。 试_Requesting too much data can result in poor app performance_______________________________验.\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 将请求字段附加到的要素。\n- **field1**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 请求给定要素的字段名称。 仅列出在表达式中使用所需的字段。 如有必要,您可以使用通配符 `*` 来请求所有字段。 但应该避免这种情况,以防止加载可能对应用程序性能产生负面影响的不必要的数据量。 试_This value must be a text literal and cannot be a variable_______________________________验.\n- **[field2, ..., fieldN]** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 为给定要素请求的字段名称的正在使用的列表。 仅列出在表达式中使用所需的字段。 试_These values must be text literals and cannot be variables_______________________________验.\n\n**返回值**: Null"
|
|
3165
3163
|
}
|
|
3166
3164
|
},
|
|
3167
3165
|
"parametersInfo": {
|
|
@@ -3310,7 +3308,7 @@
|
|
|
3310
3308
|
"kind": 3,
|
|
3311
3309
|
"documentation": {
|
|
3312
3310
|
"kind": "markdown",
|
|
3313
|
-
"value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回分支或版本化数据的当前地理数据库版本的名称。 当数据不在多用户地理数据库中时,将返回一个空文本值。\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 从中返回关联图层的当前地理数据库版本的要素。\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
3311
|
+
"value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回分支或版本化数据的当前地理数据库版本的名称。 当数据不在多用户地理数据库中时,将返回一个空文本值。\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 从中返回关联图层的当前地理数据库版本的要素。\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)\n\n##### 其他资源\n\n* [Overview of Versioning](https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/overview-of-versioning-in-arcgis-pro.htm)\n"
|
|
3314
3312
|
}
|
|
3315
3313
|
},
|
|
3316
3314
|
"parametersInfo": {
|
|
@@ -3567,7 +3565,7 @@
|
|
|
3567
3565
|
"kind": 3,
|
|
3568
3566
|
"documentation": {
|
|
3569
3567
|
"kind": "markdown",
|
|
3570
|
-
"value": "**[起始版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n将几何值转换为字典。\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 要转换为 Arcade
|
|
3568
|
+
"value": "**[起始版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n将几何值转换为字典。\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 要转换为 Arcade 字典的几何。 试_Starting at version 1.25, Polygon or Polyline inputs may contain curve objects when executed in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps_________________________________________________________________________验.\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
3571
3569
|
}
|
|
3572
3570
|
},
|
|
3573
3571
|
"parametersInfo": {
|
|
@@ -4313,7 +4311,7 @@
|
|
|
4313
4311
|
"kind": 3,
|
|
4314
4312
|
"documentation": {
|
|
4315
4313
|
"kind": "markdown",
|
|
4316
|
-
"value": "返回输入值,四舍五入至给定的小数位数。 \n_注意:如果您要格式化标注或弹出窗口中显示的值,请使用“Text()”函数。_\n\n**参数**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 要四舍五入的数字。\n- **numPlaces** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 对数字四舍五入到的小数位数。 默认值为 `0`。 尾随零将被去掉。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4314
|
+
"value": "返回输入值,四舍五入至给定的小数位数。 \n_注意:如果您要格式化标注或弹出窗口中显示的值,请使用“Text()”函数。_\n\n**参数**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 要四舍五入的数字。\n- **numPlaces** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 对数字四舍五入到的小数位数。 默认值为 `0`。 尾随零将被去掉。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [Text()](https://developers.arcgis.com/arcade/function-reference/text_functions/#text)\n"
|
|
4317
4315
|
}
|
|
4318
4316
|
},
|
|
4319
4317
|
"parametersInfo": {
|
|
@@ -5323,7 +5321,7 @@
|
|
|
5323
5321
|
"kind": 3,
|
|
5324
5322
|
"documentation": {
|
|
5325
5323
|
"kind": "markdown",
|
|
5326
|
-
"value": "将值连接在一起,然后返回文本值。\n\n**参数**\n\n- **values** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - 要串连的文本值的数组。\n- **separator** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 如果 `values` 参数为数组,则为用于连接的分隔符。 如果为第一个参数提供单个值,则为要连接的文本。 如果未提供,则为空。\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 日期或数字的特殊格式字符。 此参数适用于 Arcade 1.3 或更高版本。 \n可能的值: \n - `0`:位数 \n - `#`:位数,省略前导/尾随零 \n - `D`:月中日期,不填充 (1 - 31) \n - `DD`:月中日期,填充 (01 - 31) \n - `DDD`:一年中的第几天 (1 - 365) \n - `d`:一周的天数 (1-7) \n - `ddd`:一周中的某天缩写(例如,Mon) \n - `dddd`:一周中的某天全称(例如,Monday) \n - `M`:月份 (1 - 12) \n - `MM`:月份,已填充 (01 - 12) \n - `MMM`:缩写的月份名称(例如,Jan) \n - `MMMM`:月份全称(例如,January) \n -“Y”:全年 \n -“YY”:两位数年份 \n
|
|
5324
|
+
"value": "将值连接在一起,然后返回文本值。\n\n**参数**\n\n- **values** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - 要串连的文本值的数组。\n- **separator** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 如果 `values` 参数为数组,则为用于连接的分隔符。 如果为第一个参数提供单个值,则为要连接的文本。 如果未提供,则为空。\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 日期或数字的特殊格式字符。 此参数适用于 Arcade 1.3 或更高版本。 \n可能的值: \n - `0`:位数 \n - `#`:位数,省略前导/尾随零 \n - `D`:月中日期,不填充 (1 - 31) \n - `DD`:月中日期,填充 (01 - 31) \n - `DDD`:一年中的第几天 (1 - 365) \n - `d`:一周的天数 (1-7) \n - `ddd`:一周中的某天缩写(例如,Mon) \n - `dddd`:一周中的某天全称(例如,Monday) \n - `M`:月份 (1 - 12) \n - `MM`:月份,已填充 (01 - 12) \n - `MMM`:缩写的月份名称(例如,Jan) \n - `MMMM`:月份全称(例如,January) \n -“Y”:全年 \n -“YY”:两位数年份 \n 试_- `h`: Civilian hours, not padded (1 - 12)________________________验 \n 试_- `hh`: Civilian hours, padded (01 - 12)_______________________验 \n 试_- `H`: Military hours, not padded (0 - 23)________________________验 \n 试_- `HH`: Military hours, padded (00 - 23)_______________________验 \n -“m”:分钟,未填充(0 - 59) \n -“mm”:分钟,已填充(00 - 59) \n - `s`: 秒,未填充 (0 - 59) \n -“ss”:秒,已填充(00 - 59) \n -“SSS”:毫秒,已填充(000 - 999) \n -“A”:AM/PM \n -“Z”:简写小时格式的时区偏移,+/- UTC (例如“-7”或“+11”) \n -“ZZ”:小时格式的时区偏移,+/- UTC (例如“-07:00”或“+11:00”) \n -“ZZZ”:紧凑小时格式的时区偏移,+/- UTC (例如“-0700”或“+1100”) \n -“ZZZZ”:缩写命名时区(例如“EST”) \n -“ZZZZZ”:命名时区(例如“Eastern Standard Time”) \n\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
5327
5325
|
}
|
|
5328
5326
|
},
|
|
5329
5327
|
"parametersInfo": {
|
|
@@ -5663,7 +5661,7 @@
|
|
|
5663
5661
|
"kind": 3,
|
|
5664
5662
|
"documentation": {
|
|
5665
5663
|
"kind": "markdown",
|
|
5666
|
-
"value": "将任何值转换为文本值。 将提供可选“format”参数,用于格式化日期和数值数据输入。 如果无法确定等效文本转换,则返回“null”。\n\n**参数**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 要转换为文本的值(即日期、数值或其他数据类型)
|
|
5664
|
+
"value": "将任何值转换为文本值。 将提供可选“format”参数,用于格式化日期和数值数据输入。 如果无法确定等效文本转换,则返回“null”。\n\n**参数**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 要转换为文本的值(即日期、数值或其他数据类型)。 试_Starting at version 1.25, Polygon or Polyline inputs may return JSON containing curve objects when executed in ArcGIS Pro and ArcGIS Maps SDKs for Native Apps_________________________________________________________________________________验.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 用于格式化日期或数值的特殊字符。 \n可能的值: \n - `0`:位数 \n - `#`:位数,省略前导/尾随零 \n - `D`:月中日期,不填充 (1 - 31) \n - `DD`:月中日期,填充 (01 - 31) \n - `DDD`:一年中的第几天 (1 - 365) \n - `d`:一周的天数 (1-7) \n - `ddd`:一周中的某天缩写(例如,Mon) \n - `dddd`:一周中的某天全称(例如,Monday) \n - `M`:月份 (1 - 12) \n - `MM`:月份,已填充 (01 - 12) \n - `MMM`:缩写的月份名称(例如,Jan) \n - `MMMM`:月份全称(例如,January) \n - `Y`:全年 \n - `YY`:两位数年份 \n 试_- `h`: Civilian hours, not padded (1 - 12)________________________验 \n 试_- `hh`: Civilian hours, padded (01 - 12)_______________________验 \n 试_- `H`: Military hours, not padded (0 - 23)________________________验 \n 试_- `HH`: Military hours, padded (00 - 23)_______________________验 \n - `m`:分,未填充 (0 - 59) \n - `mm`:分,已填充 (00 - 59) \n - `s`: 秒,未填充 (0 - 59) \n - `ss`: 秒,已填充 (00 - 59) \n -“SSS”:毫秒,已填充(000 - 999) \n -“A”:AM/PM \n -“Z”:简写小时格式的时区偏移,+/- UTC (例如“-7”或“+11”) \n -“ZZ”:小时格式的时区偏移,+/- UTC (例如“-07:00”或“+11:00”) \n -“ZZZ”:紧凑小时格式的时区偏移,+/- UTC (例如“-0700”或“+1100”) \n -“ZZZZ”:缩写命名时区(例如“EST”) \n -“ZZZZZ”:命名时区(例如“Eastern Standard Time”) \n\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
5667
5665
|
}
|
|
5668
5666
|
},
|
|
5669
5667
|
"parametersInfo": {
|
|
@@ -5842,7 +5840,7 @@
|
|
|
5842
5840
|
"kind": 3,
|
|
5843
5841
|
"documentation": {
|
|
5844
5842
|
"kind": "markdown",
|
|
5845
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n更改用于显示给定日期值的时区。 如果输入“dateValue”具有“未知”时区,则输出日期值将显示与输入“dateValue”相同的日期和时间,但将为其分配“newTimeZone”。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 包含日期和时间信息的日期值。\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 将用于显示给定日期值的新时区。 该时区必须为以下之一:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5843
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n更改用于显示给定日期值的时区。 如果输入“dateValue”具有“未知”时区,则输出日期值将显示与输入“dateValue”相同的日期和时间,但将为其分配“newTimeZone”。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 包含日期和时间信息的日期值。\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 将用于显示给定日期值的新时区。 该时区必须为以下之一:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [ToLocal()](https://developers.arcgis.com/arcade/function-reference/date_functions/#tolocal)\n* [ToUTC()](https://developers.arcgis.com/arcade/function-reference/date_functions/#toutc)\n"
|
|
5846
5844
|
}
|
|
5847
5845
|
},
|
|
5848
5846
|
"parametersInfo": {
|
|
@@ -5867,7 +5865,7 @@
|
|
|
5867
5865
|
"kind": 3,
|
|
5868
5866
|
"documentation": {
|
|
5869
5867
|
"kind": "markdown",
|
|
5870
|
-
"value": "从一组参数创建一个日期对象。 默认情况下,将在配置文件执行上下文的时区中创建日期。\n\n**参数**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 代表年的数字。\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 月份 (0-11),其中 `0` 是一月,`11` 是十二月。\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 日 (1-31)。\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 小时 (0-23)。\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 分钟 (0-59)。\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 秒 (0-59)。\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 毫秒 (0-999)。\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _自 1.24 起_ 日期的时区。 如果未指定,则将在配置文件执行上下文的默认时区中创建日期。 可能的值:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5868
|
+
"value": "从一组参数创建一个日期对象。 默认情况下,将在配置文件执行上下文的时区中创建日期。\n\n**参数**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 代表年的数字。\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 月份 (0-11),其中 `0` 是一月,`11` 是十二月。\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 日 (1-31)。\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 小时 (0-23)。\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 分钟 (0-59)。\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 秒 (0-59)。\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 毫秒 (0-999)。\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _自 1.24 起_ 日期的时区。 如果未指定,则将在配置文件执行上下文的默认时区中创建日期。 可能的值:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"
|
|
5871
5869
|
}
|
|
5872
5870
|
},
|
|
5873
5871
|
"parametersInfo": {
|
|
@@ -5880,7 +5878,7 @@
|
|
|
5880
5878
|
"name": "date",
|
|
5881
5879
|
"bundle": "core",
|
|
5882
5880
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
5883
|
-
"description": "
|
|
5881
|
+
"description": "试_Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile. If a `null` value is provided for the epoch, it will be implicitly cast to `0` and will return the date for January 1, 1970 UTC____________________________________________________________________________________________________________________________________________________________________________________________验.",
|
|
5884
5882
|
"examples": "\n##### 示例\n\n自 1970 年 1 月 1 日 以来的毫秒数\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\n创建一个日期,表示运行 Arcade 的配置文件执行上下文的时区中的当前时间\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
|
|
5885
5883
|
"completion": {
|
|
5886
5884
|
"label": "Date",
|
|
@@ -5891,7 +5889,7 @@
|
|
|
5891
5889
|
"kind": 3,
|
|
5892
5890
|
"documentation": {
|
|
5893
5891
|
"kind": "markdown",
|
|
5894
|
-
"value": "
|
|
5892
|
+
"value": "试_Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile. If a `null` value is provided for the epoch, it will be implicitly cast to `0` and will return the date for January 1, 1970 UTC____________________________________________________________________________________________________________________________________________________________________________________________验.\n\n**参数**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 自 1970 年 1 月 1 日 (UTC) 以来的毫秒数。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [Now()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Timestamp()](https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp)\n* [Today()](https://developers.arcgis.com/arcade/function-reference/date_functions/#today)\n"
|
|
5895
5893
|
}
|
|
5896
5894
|
},
|
|
5897
5895
|
"parametersInfo": {
|
|
@@ -5940,7 +5938,7 @@
|
|
|
5940
5938
|
"kind": 3,
|
|
5941
5939
|
"documentation": {
|
|
5942
5940
|
"kind": "markdown",
|
|
5943
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据 DateOnly 值以及可选的时间和时区值创建日期。\n\n**参数**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - 用于创建日期值的 DateOnly 值。\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - 日期的时间值。 如果未指定,则将使用时间“00:00:00”创建日期。\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 日期的时区。 如果未指定,则将在“未知”时区中创建日期。 可能的值:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5941
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据 DateOnly 值以及可选的时间和时区值创建日期。\n\n**参数**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - 用于创建日期值的 DateOnly 值。\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - 日期的时间值。 如果未指定,则将使用时间“00:00:00”创建日期。\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 日期的时区。 如果未指定,则将在“未知”时区中创建日期。 可能的值:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"
|
|
5944
5942
|
}
|
|
5945
5943
|
},
|
|
5946
5944
|
"parametersInfo": {
|
|
@@ -6067,7 +6065,7 @@
|
|
|
6067
6065
|
"kind": 3,
|
|
6068
6066
|
"documentation": {
|
|
6069
6067
|
"kind": "markdown",
|
|
6070
|
-
"value": "将两个日期相减,并以指定的单位返回差值。\n\n**参数**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要从中减去第二个日期的日期值。\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要从第一个给定日期中减去的日期值。\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 返回两个给定日期差值的单位。 受支持的单位类型为毫秒、秒、分钟、小时、天、月和年。 默认值为毫秒。\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _自 1.24 版本起_ 要分配给时区未知的输入日期的时区。 如果未指定,则会发生以下情况: (1) 如果一个输入具有已定义的时区,而另一个未知,则具有未知时区的值将采用与另一个输入相匹配的时区。 (2) 如果两个输入均为未知时区,则将基于两个日期计算 DateDiff,就好像它们是在同一时区中定义的一样。 可能的值:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6068
|
+
"value": "将两个日期相减,并以指定的单位返回差值。\n\n**参数**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要从中减去第二个日期的日期值。\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要从第一个给定日期中减去的日期值。\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 返回两个给定日期差值的单位。 受支持的单位类型为毫秒、秒、分钟、小时、天、月和年。 默认值为毫秒。\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _自 1.24 版本起_ 要分配给时区未知的输入日期的时区。 如果未指定,则会发生以下情况: (1) 如果一个输入具有已定义的时区,而另一个未知,则具有未知时区的值将采用与另一个输入相匹配的时区。 (2) 如果两个输入均为未知时区,则将基于两个日期计算 DateDiff,就好像它们是在同一时区中定义的一样。 可能的值:\n\n - 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n - 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n -“系统”- 时区将设置为设备或系统的本地时区\n\n -“默认值”- 配置文件执行上下文的时区\n\n -“UTC”- 协调世界时间\n\n -“未知”- 移除给定值的时区信息并显示表达式中定义的日期和时间。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"
|
|
6071
6069
|
}
|
|
6072
6070
|
},
|
|
6073
6071
|
"parametersInfo": {
|
|
@@ -6144,7 +6142,7 @@
|
|
|
6144
6142
|
"kind": 3,
|
|
6145
6143
|
"documentation": {
|
|
6146
6144
|
"kind": "markdown",
|
|
6147
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据配置文件执行上下文的时区中的当前日期创建 DateOnly 值。\n\n**返回值**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
6145
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据配置文件执行上下文的时区中的当前日期创建 DateOnly 值。\n\n**返回值**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)\n\n##### 其他资源\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"
|
|
6148
6146
|
}
|
|
6149
6147
|
},
|
|
6150
6148
|
"parametersInfo": {
|
|
@@ -6496,7 +6494,7 @@
|
|
|
6496
6494
|
"kind": 3,
|
|
6497
6495
|
"documentation": {
|
|
6498
6496
|
"kind": "markdown",
|
|
6499
|
-
"value": "返回给定日期的月份。 值的范围为 0-11,其中一月是 `0`,十二月是 `11`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - 从中获取月份的日期值。 自 1.24 版本起,支持 DateOnly 值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6497
|
+
"value": "返回给定日期的月份。 值的范围为 0-11,其中一月是 `0`,十二月是 `11`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - 从中获取月份的日期值。 自 1.24 版本起,支持 DateOnly 值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n##### 其他资源\n\n* [ISOMonth()](https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth)\n"
|
|
6500
6498
|
}
|
|
6501
6499
|
},
|
|
6502
6500
|
"parametersInfo": {
|
|
@@ -6520,7 +6518,7 @@
|
|
|
6520
6518
|
"kind": 3,
|
|
6521
6519
|
"documentation": {
|
|
6522
6520
|
"kind": "markdown",
|
|
6523
|
-
"value": "创建一个日期值,表示运行 Arcade 的配置文件执行上下文的时区中的当前日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6521
|
+
"value": "创建一个日期值,表示运行 Arcade 的配置文件执行上下文的时区中的当前日期和时间。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [Date()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Timestamp()](https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp)\n* [Today()](https://developers.arcgis.com/arcade/function-reference/date_functions/#today)\n"
|
|
6524
6522
|
}
|
|
6525
6523
|
},
|
|
6526
6524
|
"parametersInfo": {
|
|
@@ -6572,7 +6570,7 @@
|
|
|
6572
6570
|
"kind": 3,
|
|
6573
6571
|
"documentation": {
|
|
6574
6572
|
"kind": "markdown",
|
|
6575
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n创建一个时间值,表示运行 Arcade 的配置文件执行上下文的时区中的当前时间。\n\n**返回值**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6573
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n创建一个时间值,表示运行 Arcade 的配置文件执行上下文的时区中的当前时间。\n\n**返回值**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)\n\n##### 其他资源\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"
|
|
6576
6574
|
}
|
|
6577
6575
|
},
|
|
6578
6576
|
"parametersInfo": {
|
|
@@ -6647,7 +6645,7 @@
|
|
|
6647
6645
|
"kind": 3,
|
|
6648
6646
|
"documentation": {
|
|
6649
6647
|
"kind": "markdown",
|
|
6650
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据表示时间的文本输入以及指示文本格式的可选输入创建时间值。\n\n**参数**\n\n- **textValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 表示时间的文本值。\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 指示“timeValue”输入格式的文本值。 \n可能的值: \n
|
|
6648
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据表示时间的文本输入以及指示文本格式的可选输入创建时间值。\n\n**参数**\n\n- **textValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 表示时间的文本值。\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 指示“timeValue”输入格式的文本值。 \n可能的值: \n 试_- `h`: Civilian hours, not padded (1 - 12)________________________验 \n 试_- `hh`: Civilian hours, padded (01 - 12)_______________________验 \n 试_- `H`: Military hours, not padded (0 - 23)________________________验 \n 试_- `HH`: Military hours, padded (00 - 23)_______________________验 \n -“m”:分钟,未填充(0 - 59) \n -“mm”:分钟,已填充(00 - 59) \n -“s”:秒,未填充(0 - 59) \n -“ss”:秒,已填充(00 - 59) \n -“A”:AM/PM \n\n\n**返回值**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6651
6649
|
}
|
|
6652
6650
|
},
|
|
6653
6651
|
"parametersInfo": {
|
|
@@ -6723,7 +6721,7 @@
|
|
|
6723
6721
|
"kind": 3,
|
|
6724
6722
|
"documentation": {
|
|
6725
6723
|
"kind": "markdown",
|
|
6726
|
-
"value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以 UTC 时间创建表示当前日期和时间的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6724
|
+
"value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以 UTC 时间创建表示当前日期和时间的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [Date()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Now()](https://developers.arcgis.com/arcade/function-reference/date_functions/#now)\n* [Today()](https://developers.arcgis.com/arcade/function-reference/date_functions/#today)\n"
|
|
6727
6725
|
}
|
|
6728
6726
|
},
|
|
6729
6727
|
"parametersInfo": {
|
|
@@ -6748,7 +6746,7 @@
|
|
|
6748
6746
|
"kind": 3,
|
|
6749
6747
|
"documentation": {
|
|
6750
6748
|
"kind": "markdown",
|
|
6751
|
-
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回给定日期的时区。 该时区将为以下之一:\n\n- 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n- 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n-“系统”- 时区将基于客户端或系统的本地时区\n\n-“UTC”- 协调世界时间\n\n-“未知”- 时区信息未定义。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取时区的日期值。\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
6749
|
+
"value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回给定日期的时区。 该时区将为以下之一:\n\n- 表示 IANA 时区数据库中条目的文本(例如“America/New_York”)\n\n- 表示应添加至 UTC 的小时和分钟的文本(例如“+07:00”或“-03:00”)\n\n-“系统”- 时区将基于客户端或系统的本地时区\n\n-“UTC”- 协调世界时间\n\n-“未知”- 时区信息未定义。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取时区的日期值。\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)\n\n##### 其他资源\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n"
|
|
6752
6750
|
}
|
|
6753
6751
|
},
|
|
6754
6752
|
"parametersInfo": {
|
|
@@ -6797,7 +6795,7 @@
|
|
|
6797
6795
|
"kind": 3,
|
|
6798
6796
|
"documentation": {
|
|
6799
6797
|
"kind": "markdown",
|
|
6800
|
-
"value": "返回配置文件执行上下文时区中午夜的当前日期。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6798
|
+
"value": "返回配置文件执行上下文时区中午夜的当前日期。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [DateOnly()](https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly)\n* [Date()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Timestamp()](https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp)\n* [Now()](https://developers.arcgis.com/arcade/function-reference/date_functions/#now)\n"
|
|
6801
6799
|
}
|
|
6802
6800
|
},
|
|
6803
6801
|
"parametersInfo": {
|
|
@@ -6822,7 +6820,7 @@
|
|
|
6822
6820
|
"kind": 3,
|
|
6823
6821
|
"documentation": {
|
|
6824
6822
|
"kind": "markdown",
|
|
6825
|
-
"value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n创建与输入日期的纪元匹配的新日期值,并将时区设置为客户端的本地或系统时区。\n\n**参数**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要以客户端当地时间表示的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6823
|
+
"value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n创建与输入日期的纪元匹配的新日期值,并将时区设置为客户端的本地或系统时区。\n\n**参数**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要以客户端当地时间表示的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [ChangeTimeZone()](https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone)\n"
|
|
6826
6824
|
}
|
|
6827
6825
|
},
|
|
6828
6826
|
"parametersInfo": {
|
|
@@ -6847,7 +6845,7 @@
|
|
|
6847
6845
|
"kind": 3,
|
|
6848
6846
|
"documentation": {
|
|
6849
6847
|
"kind": "markdown",
|
|
6850
|
-
"value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n创建与输入日期的纪元匹配的新日期值,并将时区设置为 UTC (协调世界时间)。\n\n**参数**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要以 UTC 时间表示的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6848
|
+
"value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n创建与输入日期的纪元匹配的新日期值,并将时区设置为 UTC (协调世界时间)。\n\n**参数**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要以 UTC 时间表示的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n##### 其他资源\n\n* [ChangeTimeZone()](https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone)\n"
|
|
6851
6849
|
}
|
|
6852
6850
|
},
|
|
6853
6851
|
"parametersInfo": {
|
|
@@ -6941,7 +6939,7 @@
|
|
|
6941
6939
|
"sinceVersion": "1.26",
|
|
6942
6940
|
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
|
|
6943
6941
|
"description": "从门户项目返回一个知识图谱。",
|
|
6944
|
-
"examples": "\n##### 示例\n\n返回门户项目中的知识图谱。\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.
|
|
6942
|
+
"examples": "\n##### 示例\n\n返回门户项目中的知识图谱。\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.example.com/arcgis'), // enterprise portal\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
|
|
6945
6943
|
"completion": {
|
|
6946
6944
|
"label": "KnowledgeGraphByPortalItem",
|
|
6947
6945
|
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
@@ -6951,7 +6949,7 @@
|
|
|
6951
6949
|
"kind": 3,
|
|
6952
6950
|
"documentation": {
|
|
6953
6951
|
"kind": "markdown",
|
|
6954
|
-
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n从门户项目返回一个知识图谱。\n\n**参数**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - 从中查询要素的门户。\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 引用知识图谱服务的门户项目的 GUID。 _该值必须是文字文本。_\n\n**返回值**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
6952
|
+
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n从门户项目返回一个知识图谱。\n\n**参数**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - 从中查询要素的门户。\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 引用知识图谱服务的门户项目的 GUID。 _该值必须是文字文本。_\n\n**返回值**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)\n\n##### 其他资源\n\n* [Get started with ArcGIS Knowledge Server](https://enterprise.arcgis.com/en/knowledge/latest/introduction/get-started-with-arcgis-knowledge.htm)\n* [Get started with ArcGIS Knowledge (ArcGIS Pro)](https://pro.arcgis.com/en/pro-app/latest/help/data/knowledge/get-started-with-arcgis-knowledge.htm)\n* [Introduction to knowledge graph service in the ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/latest/knowledge-graph/knowledge-graph-intro/)\n"
|
|
6955
6953
|
}
|
|
6956
6954
|
},
|
|
6957
6955
|
"parametersInfo": {
|
|
@@ -6976,7 +6974,7 @@
|
|
|
6976
6974
|
"kind": 3,
|
|
6977
6975
|
"documentation": {
|
|
6978
6976
|
"kind": "markdown",
|
|
6979
|
-
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n使用 openCypher 查询知识图谱,并返回图谱中的实体和关系集合及其属性。\n\n**参数**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - 要查询的知识图谱。\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 针对知识图谱执行的 openCypher 查询。\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - openCypher 查询的命名查询参数字典。 字典中的参数名称或键区分大小写。 参数取决于外部图谱存储,可能类型如下:`Array`、`Date`、`Dictionary`、`Geometry`、`Number`、`Text`\n\n**返回值**: Array"
|
|
6977
|
+
"value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n使用 openCypher 查询知识图谱,并返回图谱中的实体和关系集合及其属性。\n\n**参数**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - 要查询的知识图谱。\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 针对知识图谱执行的 openCypher 查询。\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - openCypher 查询的命名查询参数字典。 字典中的参数名称或键区分大小写。 参数取决于外部图谱存储,可能类型如下:`Array`、`Date`、`Dictionary`、`Geometry`、`Number`、`Text`\n\n**返回值**: Array\n\n##### 其他资源\n\n* [Get started with ArcGIS Knowledge Server](https://enterprise.arcgis.com/en/knowledge/latest/introduction/get-started-with-arcgis-knowledge.htm)\n* [Get started with ArcGIS Knowledge (ArcGIS Pro)](https://pro.arcgis.com/en/pro-app/latest/help/data/knowledge/get-started-with-arcgis-knowledge.htm)\n* [Introduction to knowledge graph service in the ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/latest/knowledge-graph/knowledge-graph-intro/)\n"
|
|
6980
6978
|
}
|
|
6981
6979
|
},
|
|
6982
6980
|
"parametersInfo": {
|
|
@@ -7031,7 +7029,7 @@
|
|
|
7031
7029
|
"kind": 3,
|
|
7032
7030
|
"documentation": {
|
|
7033
7031
|
"kind": "markdown",
|
|
7034
|
-
"value": "**[起始版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有关执行 Arcade 表达式的上下文和环境的信息。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回包含以下属性的字典。 返回的属性可能因运行 Arcade 表达式的位置而异,因此建议使用“HasValue”函数以确保所需环境属性存在。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有关版本的详细信息,请参阅 Arcade 版本矩阵。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎。 可能的值为:`web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎的版本。 有关版本的详细信息,请参阅 Arcade 版本矩阵。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 在其中运行 Arcade 表达式的应用程序。 由应用程序开发人员设置此值。 因此,此属性可能为空,具体取决于在其中执行表达式的应用程序。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 客户端或系统的区域设置。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空间参考的熟知 ID。\n- **timeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _自 1.24 起_ 表达式执行上下文的默认时区。
|
|
7032
|
+
"value": "**[起始版本 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n提供有关执行 Arcade 表达式的上下文和环境的信息。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回包含以下属性的字典。 返回的属性可能因运行 Arcade 表达式的位置而异,因此建议使用“HasValue”函数以确保所需环境属性存在。\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Arcade 版本。 有关版本的详细信息,请参阅 Arcade 版本矩阵。\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎。 可能的值为:`web`、`native`、`jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 执行 Arcade 表达式的引擎的版本。 有关版本的详细信息,请参阅 Arcade 版本矩阵。\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 在其中运行 Arcade 表达式的应用程序。 由应用程序开发人员设置此值。 因此,此属性可能为空,具体取决于在其中执行表达式的应用程序。\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 客户端或系统的区域设置。\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Arcade 上下文的空间参考。\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 空间参考的熟知 ID。\n- **timeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _自 1.24 起_ 表达式执行上下文的默认时区。 如果未另外指定时区,则在构造和显示日期值时,将使用此值。\n\n##### 其他资源\n\n* [Arcade profiles and execution context](https://developers.arcgis.com/arcade/guide/profiles/)\n* [Arcade version matrix](https://developers.arcgis.com/arcade/guide/version-matrix/)\n* [HasValue()](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue)\n"
|
|
7035
7033
|
}
|
|
7036
7034
|
},
|
|
7037
7035
|
"parametersInfo": {
|
|
@@ -7480,22 +7478,22 @@
|
|
|
7480
7478
|
"name": "decode",
|
|
7481
7479
|
"bundle": "core",
|
|
7482
7480
|
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode",
|
|
7483
|
-
"description": "将表达式计算为一个值,并将结果值与后续参数的值进行比较。 如果表达式计算结果为匹配值,则返回后续参数值。
|
|
7481
|
+
"description": "将表达式计算为一个值,并将结果值与后续参数的值进行比较。 如果表达式计算结果为匹配值,则返回后续参数值。 试_If no matches are found, then the `default` value will be returned. This is similar to a switch/case statement_________________________________________________________验.",
|
|
7484
7482
|
"examples": "\n##### 示例\n\n\n\n```arcade\n// returns a meaningful value when a field contains coded values\nvar code = $feature.codedValue;\nvar decodedValue = Decode(code, 1, 'Residential', 2, 'Commercial', 3, 'Mixed', 'Other');\n```\n\n",
|
|
7485
7483
|
"completion": {
|
|
7486
7484
|
"label": "Decode",
|
|
7487
|
-
"detail": "Decode(expression, [compare1, return1, ..., compareN, returnN]
|
|
7488
|
-
"insertText": "Decode(${1:expression_})$0",
|
|
7485
|
+
"detail": "Decode(expression, [compare1, return1, ..., compareN, returnN], default) -> Any",
|
|
7486
|
+
"insertText": "Decode(${1:expression_}, ${2:[compare1, return1, ..., compareN, returnN]_}, ${3:default_})$0",
|
|
7489
7487
|
"insertTextMode": 2,
|
|
7490
7488
|
"insertTextFormat": 2,
|
|
7491
7489
|
"kind": 3,
|
|
7492
7490
|
"documentation": {
|
|
7493
7491
|
"kind": "markdown",
|
|
7494
|
-
"value": "将表达式计算为一个值,并将结果值与后续参数的值进行比较。 如果表达式计算结果为匹配值,则返回后续参数值。
|
|
7492
|
+
"value": "将表达式计算为一个值,并将结果值与后续参数的值进行比较。 如果表达式计算结果为匹配值,则返回后续参数值。 试_If no matches are found, then the `default` value will be returned. This is similar to a switch/case statement_________________________________________________________验.\n\n**参数**\n\n- **expression**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 必须评估得出可与提供的 case 值相比较的值的 Arcade 表达式。\n- **[compare1, return1, ..., compareN, returnN]**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 一组比较值和返回值对。\n- **default**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 比较值均不匹配的情况下要返回的默认值。 可能是任意类型的值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n返回匹配的返回值。 如果未找到匹配值,则返回 `default` 值。"
|
|
7495
7493
|
}
|
|
7496
7494
|
},
|
|
7497
7495
|
"parametersInfo": {
|
|
7498
|
-
"min":
|
|
7496
|
+
"min": 3,
|
|
7499
7497
|
"max": -1
|
|
7500
7498
|
}
|
|
7501
7499
|
},
|