@arcgis/arcade-languageservice 4.29.0-test.0 → 4.29.0
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/LICENSE.md +1 -1
- package/README.md +4 -4
- package/{assets → dist/assets}/api/arcade-api.t9n.ar.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.bg.json +495 -30
- package/{assets → dist/assets}/api/arcade-api.t9n.bs.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.ca.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.cs.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.da.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.de.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.el.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.en.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.es.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.et.json +481 -16
- package/{assets → dist/assets}/api/arcade-api.t9n.fi.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.fr.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.he.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.hr.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.hu.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.id.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.it.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.ja.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.ko.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.lt.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.lv.json +481 -16
- package/{assets → dist/assets}/api/arcade-api.t9n.nb.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.nl.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.pl.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.pt-BR.json +481 -16
- package/{assets → dist/assets}/api/arcade-api.t9n.pt-PT.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.ro.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.ru.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.sk.json +481 -16
- package/{assets → dist/assets}/api/arcade-api.t9n.sl.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.sr.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.sv.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.th.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.tr.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.uk.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.vi.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.zh-CN.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.zh-HK.json +493 -28
- package/{assets → dist/assets}/api/arcade-api.t9n.zh-TW.json +493 -28
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ar.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.bg.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.bs.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ca.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.cs.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.da.json +15 -3
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.de.json +15 -3
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.el.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.en.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.es.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.et.json +15 -3
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.fi.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.fr.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.he.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.hr.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.hu.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.id.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.it.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ja.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ko.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.lt.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.lv.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.nb.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.nl.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.pl.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.pt-BR.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.pt-PT.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ro.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.ru.json +15 -3
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sk.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sl.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sr.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.sv.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.th.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.tr.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.uk.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.vi.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.zh-CN.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.zh-HK.json +16 -4
- package/{assets → dist/assets}/profiles/arcade-profiles.t9n.zh-TW.json +16 -4
- package/{esm → dist/esm}/index.d.ts +124 -83
- package/dist/esm/index.js +32 -0
- package/package.json +38 -6
- package/esm/index.js +0 -32
- /package/{assets → dist/assets}/t9n/profile.t9n.ar.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.bg.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.bs.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.ca.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.cs.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.da.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.de.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.el.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.en.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.es.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.et.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.fi.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.fr.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.he.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.hr.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.hu.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.id.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.it.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.ja.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.ko.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.lt.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.lv.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.nb.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.nl.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.pl.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.pt-BR.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.pt-PT.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.ro.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.ru.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.sk.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.sl.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.sr.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.sv.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.th.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.tr.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.uk.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.vi.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.zh-CN.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.zh-HK.json +0 -0
- /package/{assets → dist/assets}/t9n/profile.t9n.zh-TW.json +0 -0
|
@@ -649,6 +649,31 @@
|
|
|
649
649
|
"max": 2
|
|
650
650
|
}
|
|
651
651
|
},
|
|
652
|
+
{
|
|
653
|
+
"type": "function",
|
|
654
|
+
"name": "filterbysubtypecode",
|
|
655
|
+
"bundle": "data-access",
|
|
656
|
+
"sinceVersion": "1.25",
|
|
657
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode",
|
|
658
|
+
"description": "指定のサブタイプ コードと一致するすべてのフィーチャを持つ新しい FeatureSet を作成します。",
|
|
659
|
+
"examples": "\n##### 例\n\nサブタイプ コードを持つフィーチャをフィルター\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
|
|
660
|
+
"completion": {
|
|
661
|
+
"label": "FilterBySubtypeCode",
|
|
662
|
+
"detail": "FilterBySubtypeCode(features, subtypeCode) -> FeatureSet",
|
|
663
|
+
"insertText": "FilterBySubtypeCode(${1:features_}, ${2:subtypeCode_})$0",
|
|
664
|
+
"insertTextMode": 2,
|
|
665
|
+
"insertTextFormat": 2,
|
|
666
|
+
"kind": 3,
|
|
667
|
+
"documentation": {
|
|
668
|
+
"kind": "markdown",
|
|
669
|
+
"value": "**[バージョン以降 1.25](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) - フィルタリング対象の FeatureSet またはレイヤーです。\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - FeatureSet またはレイヤーのフィーチャをフィルターするために使用されるサブタイプ コードです。\n\n**戻り値**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
"parametersInfo": {
|
|
673
|
+
"min": 2,
|
|
674
|
+
"max": 2
|
|
675
|
+
}
|
|
676
|
+
},
|
|
652
677
|
{
|
|
653
678
|
"type": "function",
|
|
654
679
|
"name": "first",
|
|
@@ -882,7 +907,7 @@
|
|
|
882
907
|
"sinceVersion": "1.14",
|
|
883
908
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
884
909
|
"description": "高さ、つまり Z 情報を考慮に入れて、入力 FeatureSet の平面 (直交座標系) 線長を返します。 この関数に指定されたジオメトリには、投影座標系を割り当てる必要があります。 空間参照で Z 単位の値が指定されない場合、結果はメートル単位で返されます。 データに Z 情報が含まれている場合でも、すべてのクライアント (ArcGIS API for JavaScript の 3.x シリーズなど) が Z 値のリクエストをサポートしているわけではないことに注意してください。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$feature`) をジオメトリ関数の入力値として使用すると、 縮尺レベルごとに異なる結果が返されます。 その他のプロファイル (ポップアップなど) では、最大解像度のジオメトリが提供されます。_",
|
|
885
|
-
"examples": "\n##### 例\n\nレイヤーのフィーチャの 3D 長さをメートルで返します\n\n```arcade\
|
|
910
|
+
"examples": "\n##### 例\n\nレイヤーのフィーチャの 3D 長さをメートルで返します\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
886
911
|
"completion": {
|
|
887
912
|
"label": "Length3D",
|
|
888
913
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -1688,6 +1713,57 @@
|
|
|
1688
1713
|
"max": 2
|
|
1689
1714
|
}
|
|
1690
1715
|
},
|
|
1716
|
+
[
|
|
1717
|
+
{
|
|
1718
|
+
"type": "function",
|
|
1719
|
+
"name": "defaultvalue",
|
|
1720
|
+
"bundle": "core",
|
|
1721
|
+
"sinceVersion": "1.26",
|
|
1722
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
1723
|
+
"description": "ジオメトリにキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。",
|
|
1724
|
+
"examples": "\n##### 例\n\nZ 値が存在するポイント\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nZ 値が存在しないポイント\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
|
|
1725
|
+
"completion": {
|
|
1726
|
+
"label": "DefaultValue",
|
|
1727
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
1728
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
1729
|
+
"insertTextMode": 2,
|
|
1730
|
+
"insertTextFormat": 2,
|
|
1731
|
+
"kind": 3,
|
|
1732
|
+
"documentation": {
|
|
1733
|
+
"kind": "markdown",
|
|
1734
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nジオメトリにキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。\n\n**パラメーター**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - チェックする入力ジオメトリです。\n- **key**: [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` で指定した値を返します。"
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
"parametersInfo": {
|
|
1738
|
+
"min": 3,
|
|
1739
|
+
"max": 3
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"type": "function",
|
|
1744
|
+
"name": "defaultvalue",
|
|
1745
|
+
"bundle": "core",
|
|
1746
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
1747
|
+
"description": "ジオメトリのネストされたプロパティに 1 つ以上のキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。",
|
|
1748
|
+
"examples": "\n##### 例\n\nリング、座標、および X 値がすべて存在し、値が含まれている\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"z\"], 1000)\n// returns 100\n```\n\nリングが存在しない\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",2,0,\"z\"], 1000)\n// returns 1000\n```\n\nリングと座標は存在するが、M 値は存在しない\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"m\"], 100)\n// returns 100\n```\n\n",
|
|
1749
|
+
"completion": {
|
|
1750
|
+
"label": "DefaultValue",
|
|
1751
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
1752
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
1753
|
+
"insertTextMode": 2,
|
|
1754
|
+
"insertTextFormat": 2,
|
|
1755
|
+
"kind": 3,
|
|
1756
|
+
"documentation": {
|
|
1757
|
+
"kind": "markdown",
|
|
1758
|
+
"value": "ジオメトリのネストされたプロパティに 1 つ以上のキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。\n\n**パラメーター**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - チェックする入力ジオメトリです。\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - コンテナー構造の各レベルでチェックするキーまたはインデックスの配列です。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - キーまたはインデックスの 1 つ以上が存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、この値が返されます。\n\n**戻り値**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n指定したキーまたはインデックスの値を返します (定義されている場合)。 定義されていない場合は、`defaultValue` で指定した値を返します。"
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
"parametersInfo": {
|
|
1762
|
+
"min": 3,
|
|
1763
|
+
"max": 3
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
],
|
|
1691
1767
|
{
|
|
1692
1768
|
"type": "function",
|
|
1693
1769
|
"name": "densify",
|
|
@@ -1838,6 +1914,31 @@
|
|
|
1838
1914
|
"max": 3
|
|
1839
1915
|
}
|
|
1840
1916
|
},
|
|
1917
|
+
{
|
|
1918
|
+
"type": "function",
|
|
1919
|
+
"name": "distancetocoordinate",
|
|
1920
|
+
"bundle": "geometry",
|
|
1921
|
+
"sinceVersion": "1.26",
|
|
1922
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
1923
|
+
"description": "所定の距離に基づいて、入力ラインに沿った座標を返します。 所定の距離にある座標を求めようとする場合、ラインのすべてのパートが考慮されます。 距離には、ラインのパス (またはパート) 間のギャップは含まれません。 入力ラインに沿った距離が見つからない場合、結果は `null` になります。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$feature`) をジオメトリ関数の入力値として使用すると、 縮尺レベルごとに異なる結果が返されます。 その他のプロファイル (ポップアップなど) では、最大解像度のジオメトリが提供されます。_",
|
|
1924
|
+
"examples": "\n##### 例\n\n所定の距離値に基づいて、入力ポリラインの座標を返します。\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n",
|
|
1925
|
+
"completion": {
|
|
1926
|
+
"label": "DistanceToCoordinate",
|
|
1927
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
1928
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
1929
|
+
"insertTextMode": 2,
|
|
1930
|
+
"insertTextFormat": 2,
|
|
1931
|
+
"kind": 3,
|
|
1932
|
+
"documentation": {
|
|
1933
|
+
"kind": "markdown",
|
|
1934
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n所定の距離に基づいて、入力ラインに沿った座標を返します。 所定の距離にある座標を求めようとする場合、ラインのすべてのパートが考慮されます。 距離には、ラインのパス (またはパート) 間のギャップは含まれません。 入力ラインに沿った距離が見つからない場合、結果は `null` になります。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$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- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `inputLine` の始点からラインに沿って `coordinate` まで計測した平面距離です。 パスが接続されていないポリラインでは、`distanceAlong` 値にパスの始点の頂点と終点の頂点の間のギャップの距離は含まれません。\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
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
"parametersInfo": {
|
|
1938
|
+
"min": 2,
|
|
1939
|
+
"max": 2
|
|
1940
|
+
}
|
|
1941
|
+
},
|
|
1841
1942
|
{
|
|
1842
1943
|
"type": "function",
|
|
1843
1944
|
"name": "envelopeintersects",
|
|
@@ -2011,6 +2112,58 @@
|
|
|
2011
2112
|
"max": 1
|
|
2012
2113
|
}
|
|
2013
2114
|
},
|
|
2115
|
+
[
|
|
2116
|
+
{
|
|
2117
|
+
"type": "function",
|
|
2118
|
+
"name": "hasvalue",
|
|
2119
|
+
"bundle": "core",
|
|
2120
|
+
"sinceVersion": "1.26",
|
|
2121
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
2122
|
+
"description": "ジオメトリの所定のキーまたはインデックスに値が存在するかどうかを示します。",
|
|
2123
|
+
"examples": "\n##### 例\n\nZ 値が存在するポイント\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\n存在しないキーを保持するポリゴン\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
|
|
2124
|
+
"completion": {
|
|
2125
|
+
"label": "HasValue",
|
|
2126
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
2127
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
2128
|
+
"insertTextMode": 2,
|
|
2129
|
+
"insertTextFormat": 2,
|
|
2130
|
+
"kind": 3,
|
|
2131
|
+
"documentation": {
|
|
2132
|
+
"kind": "markdown",
|
|
2133
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nジオメトリの所定のキーまたはインデックスに値が存在するかどうかを示します。\n\n**パラメーター**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - チェックするジオメトリです。\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - チェックするキーまたはプロパティ名です。\n\n**戻り値**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
"parametersInfo": {
|
|
2137
|
+
"min": 2,
|
|
2138
|
+
"max": 2
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"type": "function",
|
|
2143
|
+
"name": "hasvalue",
|
|
2144
|
+
"bundle": "core",
|
|
2145
|
+
"sinceVersion": "1.26",
|
|
2146
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
2147
|
+
"description": "ジオメトリ内の複数レベルでネストされているプロパティまたはインデックスに値が存在するかどうかをチェックします。 これにより、各レベルの値をチェックすることなく、1 つのステップでネスト構造を調べることができます。 構造体の各レベルのキーおよびインデックスが存在し、NULL 以外の値が含まれている場合に、`true` を返します。",
|
|
2148
|
+
"examples": "\n##### 例\n\nリング、座標、および X 値がすべて存在し、値が含まれている\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,0,\"x\"])){\n // if() evaluates to true, thus executing the return\n return shape.rings[0][0].x;\n // returns -97.06138\n}\n```\n\nリングが存在しない\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",2,0,\"x\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[2][0].x;\n // polygon only has one ring; there is not a third ring\n}\n```\n\nリングと座標は存在するが、M 値は存在しない\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,3,\"m\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[0][3].m;\n // there is a coordinate at this location, but it does not have an m value\n}\n```\n\n",
|
|
2149
|
+
"completion": {
|
|
2150
|
+
"label": "HasValue",
|
|
2151
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
2152
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
2153
|
+
"insertTextMode": 2,
|
|
2154
|
+
"insertTextFormat": 2,
|
|
2155
|
+
"kind": 3,
|
|
2156
|
+
"documentation": {
|
|
2157
|
+
"kind": "markdown",
|
|
2158
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nジオメトリ内の複数レベルでネストされているプロパティまたはインデックスに値が存在するかどうかをチェックします。 これにより、各レベルの値をチェックすることなく、1 つのステップでネスト構造を調べることができます。 構造体の各レベルのキーおよびインデックスが存在し、NULL 以外の値が含まれている場合に、`true` を返します。\n\n**パラメーター**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - チェックするディクショナリまたはフィーチャです。\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - 構造体の各レベルでチェックするキーまたはインデックスの配列です。\n\n**戻り値**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
"parametersInfo": {
|
|
2162
|
+
"min": 2,
|
|
2163
|
+
"max": 2
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
],
|
|
2014
2167
|
{
|
|
2015
2168
|
"type": "function",
|
|
2016
2169
|
"name": "intersection",
|
|
@@ -2186,6 +2339,31 @@
|
|
|
2186
2339
|
"max": 2
|
|
2187
2340
|
}
|
|
2188
2341
|
},
|
|
2342
|
+
{
|
|
2343
|
+
"type": "function",
|
|
2344
|
+
"name": "measuretocoordinate",
|
|
2345
|
+
"bundle": "geometry",
|
|
2346
|
+
"sinceVersion": "1.26",
|
|
2347
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
2348
|
+
"description": "所定のメジャー (M 値) に基づいて、入力ラインに沿った最初の座標を返します。 入力ラインに沿ったメジャーが見つからない場合、結果は `null` になります。 所定のメジャーにある座標を求めようとする場合、ラインのすべてのパートが考慮されます。 メジャーには、ラインのパス (またはパート) 間のギャップは含まれません。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$feature`) をジオメトリ関数の入力値として使用すると、 縮尺レベルごとに異なる結果が返されます。 その他のプロファイル (ポップアップなど) では、最大解像度のジオメトリが提供されます。_",
|
|
2349
|
+
"examples": "\n##### 例\n\n所定のメジャー値に基づいて、入力ポリラインの座標を返します。\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
|
|
2350
|
+
"completion": {
|
|
2351
|
+
"label": "MeasureToCoordinate",
|
|
2352
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
2353
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
2354
|
+
"insertTextMode": 2,
|
|
2355
|
+
"insertTextFormat": 2,
|
|
2356
|
+
"kind": 3,
|
|
2357
|
+
"documentation": {
|
|
2358
|
+
"kind": "markdown",
|
|
2359
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n所定のメジャー (M 値) に基づいて、入力ラインに沿った最初の座標を返します。 入力ラインに沿ったメジャーが見つからない場合、結果は `null` になります。 所定のメジャーにある座標を求めようとする場合、ラインのすべてのパートが考慮されます。 メジャーには、ラインのパス (またはパート) 間のギャップは含まれません。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$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) - 座標を求めるラインまたはパスです。 入力ラインの `hasM` が `true` に等しい必要があります。 `hasM` が `false` の場合、`null` が返されます。 入力としてフィーチャを使用する場合、フィーチャのジオメトリはポリラインである必要があります。\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ラインの始点から `inputLine` に沿った座標を求めるためのメジャー (M 値) です。 所定のメジャーにある座標を求めようとする場合、ラインのすべてのパートが考慮されます。 メジャーには、ラインのパス (またはパート) 間のギャップは含まれません。\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- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `inputLine` の始点からラインに沿って `coordinate` まで計測した平面距離です。 パスが接続されていないポリラインでは、`distanceAlong` 値にパスの始点の頂点と終点の頂点の間のギャップの距離は含まれません。\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` になります。"
|
|
2360
|
+
}
|
|
2361
|
+
},
|
|
2362
|
+
"parametersInfo": {
|
|
2363
|
+
"min": 2,
|
|
2364
|
+
"max": 2
|
|
2365
|
+
}
|
|
2366
|
+
},
|
|
2189
2367
|
{
|
|
2190
2368
|
"type": "function",
|
|
2191
2369
|
"name": "multiparttosinglepart",
|
|
@@ -2302,7 +2480,7 @@
|
|
|
2302
2480
|
"kind": 3,
|
|
2303
2481
|
"documentation": {
|
|
2304
2482
|
"kind": "markdown",
|
|
2305
|
-
"value": "**[バージョン以降 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n検索ポイントに最も近い、入力ジオメトリの座標 (頂点ではない) を返します。 返されるディクショナリには、検索ポイントから最も近い座標までの最短平面距離も含まれます。 検索ポイントが入力ジオメトリと交差している場合は、結果として検索ポイントが距離 0 と一緒に返されます。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$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- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - `inputGeometry` の最も近い座標を見つける対象のポイントです。\n\n**戻り値**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n次のプロパティを含むディクショナリを返します。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - `inputGeometry` から `searchPoint` に最も近い座標です。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 最も近い座標から `searchPoint` までの平面距離です。 これは `inputGeometry` と `searchPoint`
|
|
2483
|
+
"value": "**[バージョン以降 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n検索ポイントに最も近い、入力ジオメトリの座標 (頂点ではない) を返します。 返されるディクショナリには、検索ポイントから最も近い座標までの最短平面距離も含まれます。 検索ポイントが入力ジオメトリと交差している場合は、結果として検索ポイントが距離 0 と一緒に返されます。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$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- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - `inputGeometry` の最も近い座標を見つける対象のポイントです。\n\n**戻り値**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n次のプロパティを含むディクショナリを返します。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - `inputGeometry` から `searchPoint` に最も近い座標です。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 最も近い座標から `searchPoint` までの平面距離です。 これは `inputGeometry` と `searchPoint` の間の最短距離を表します。\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 最も近い座標までの `searchPoint` と `inputGeometry` のセグメントとの空間リレーションシップです。 設定可能な値: \n\n`left` - `searchPoint` は `inputGeometry` の左側にあります。\n\n`right` - `searchPoint` は `inputGeometry` の右側にあります。\n\n`straddle` - `searchPoint` は `inputGeometry` にまたがっているか、その上にあります。"
|
|
2306
2484
|
}
|
|
2307
2485
|
},
|
|
2308
2486
|
"parametersInfo": {
|
|
@@ -2327,7 +2505,7 @@
|
|
|
2327
2505
|
"kind": 3,
|
|
2328
2506
|
"documentation": {
|
|
2329
2507
|
"kind": "markdown",
|
|
2330
|
-
"value": "**[バージョン以降 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n検索ポイントに最も近い入力ジオメトリの頂点を返します。 返されるディクショナリには、検索ポイントから最も近い頂点までの平面距離が含まれます。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$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- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - `inputGeometry` の最も近い頂点を見つける対象のポイントです。\n\n**戻り値**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n次のプロパティを含むディクショナリを返します。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - `inputGeometry` から `searchPoint` に最も近い頂点を表すポイント位置です。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 入力ジオメトリの最も近い頂点から `searchPoint`
|
|
2508
|
+
"value": "**[バージョン以降 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n検索ポイントに最も近い入力ジオメトリの頂点を返します。 返されるディクショナリには、検索ポイントから最も近い頂点までの平面距離が含まれます。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$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- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - `inputGeometry` の最も近い頂点を見つける対象のポイントです。\n\n**戻り値**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n次のプロパティを含むディクショナリを返します。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - `inputGeometry` から `searchPoint` に最も近い頂点を表すポイント位置です。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 入力ジオメトリの最も近い頂点から `searchPoint` までの平面距離です。\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 最も近い頂点までの `searchPoint` と `inputGeometry` のセグメントとの空間リレーションシップです。 設定可能な値: \n\n`left` - `searchPoint` は `inputGeometry` の左側にあります。\n\n`right` - `searchPoint` は `inputGeometry` の右側にあります。\n\n`straddle` - `searchPoint` は `inputGeometry` にまたがっているか、その上にあります。"
|
|
2331
2509
|
}
|
|
2332
2510
|
},
|
|
2333
2511
|
"parametersInfo": {
|
|
@@ -2435,6 +2613,31 @@
|
|
|
2435
2613
|
}
|
|
2436
2614
|
}
|
|
2437
2615
|
],
|
|
2616
|
+
{
|
|
2617
|
+
"type": "function",
|
|
2618
|
+
"name": "pointtocoordinate",
|
|
2619
|
+
"bundle": "geometry",
|
|
2620
|
+
"sinceVersion": "1.26",
|
|
2621
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
2622
|
+
"description": "検索ポイントの入力ラインに最も近い座標とその座標までの距離を返します。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$feature`) をジオメトリ関数の入力値として使用すると、 縮尺レベルごとに異なる結果が返されます。 その他のプロファイル (ポップアップなど) では、最大解像度のジオメトリが提供されます。_",
|
|
2623
|
+
"examples": "\n##### 例\n\nポップアップを開くためにクリックされた位置に基づいて、入力ポリラインに沿った最も近い座標までの距離を返します\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
|
|
2624
|
+
"completion": {
|
|
2625
|
+
"label": "PointToCoordinate",
|
|
2626
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
2627
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
2628
|
+
"insertTextMode": 2,
|
|
2629
|
+
"insertTextFormat": 2,
|
|
2630
|
+
"kind": 3,
|
|
2631
|
+
"documentation": {
|
|
2632
|
+
"kind": "markdown",
|
|
2633
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n検索ポイントの入力ラインに最も近い座標とその座標までの距離を返します。\n\n_視覚化とラベリングのプロファイルにある Feature ジオメトリは、 描画パフォーマンスを向上するために、表示の縮尺解像度に応じて単純化されます。 このため、これらのコンテキストで、フィーチャのジオメトリ (即ち `$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- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - `inputLine` の最も近い座標を見つける対象のポイントです。\n\n**戻り値**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n次のプロパティを含むディクショナリを返します。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - `inputLine` に沿って `searchPoint` に最も近い座標を表すポイント座標です。 `searchPoint` の `hasZ` が `false` の場合、検索は X/Y 座標で実行され、Z 値は内挿されます。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `searchPoint` から `coordinate` までの平面距離です。\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `inputLine` の始点からラインに沿って `coordinate` まで計測した平面距離です。 パスが接続されていないポリラインでは、`distanceAlong` 値にパスの始点の頂点と終点の頂点の間のギャップの距離は含まれません。\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` になります。"
|
|
2634
|
+
}
|
|
2635
|
+
},
|
|
2636
|
+
"parametersInfo": {
|
|
2637
|
+
"min": 2,
|
|
2638
|
+
"max": 2
|
|
2639
|
+
}
|
|
2640
|
+
},
|
|
2438
2641
|
[
|
|
2439
2642
|
{
|
|
2440
2643
|
"type": "function",
|
|
@@ -2841,6 +3044,57 @@
|
|
|
2841
3044
|
"id": "dictionary_functions",
|
|
2842
3045
|
"title": "ディクショナリ関数",
|
|
2843
3046
|
"items": [
|
|
3047
|
+
[
|
|
3048
|
+
{
|
|
3049
|
+
"type": "function",
|
|
3050
|
+
"name": "defaultvalue",
|
|
3051
|
+
"bundle": "core",
|
|
3052
|
+
"sinceVersion": "1.26",
|
|
3053
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
3054
|
+
"description": "ディクショナリにキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。",
|
|
3055
|
+
"examples": "\n##### 例\n\nDefaultValue は定義された値を返します\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is defined, so it is returned\n// returns Jan 24, 2024, 12:00:00 PM system time\n```\n\n指定したキーに値が存在しない場合、DefaultValue はデフォルト値を返します。\n\n```arcade\nvar data = {\n time: '',\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is empty, so the default is returned\n// returns \"No time logged\"\n```\n\nキーが存在しない場合、DefaultValue はデフォルト値を返します。\n\n```arcade\nvar data = {\n time: ''\n}\n\nDefaultValue(data, \"conditions\", \"n/a\")\n// the conditions key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\n",
|
|
3056
|
+
"completion": {
|
|
3057
|
+
"label": "DefaultValue",
|
|
3058
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3059
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3060
|
+
"insertTextMode": 2,
|
|
3061
|
+
"insertTextFormat": 2,
|
|
3062
|
+
"kind": 3,
|
|
3063
|
+
"documentation": {
|
|
3064
|
+
"kind": "markdown",
|
|
3065
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nディクショナリにキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。\n\n**パラメーター**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - チェックするディクショナリまたは添付ファイルです。\n- **key**: [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` で指定した値を返します。"
|
|
3066
|
+
}
|
|
3067
|
+
},
|
|
3068
|
+
"parametersInfo": {
|
|
3069
|
+
"min": 3,
|
|
3070
|
+
"max": 3
|
|
3071
|
+
}
|
|
3072
|
+
},
|
|
3073
|
+
{
|
|
3074
|
+
"type": "function",
|
|
3075
|
+
"name": "defaultvalue",
|
|
3076
|
+
"bundle": "core",
|
|
3077
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
3078
|
+
"description": "ネストされたディクショナリに 1 つ以上のキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。",
|
|
3079
|
+
"examples": "\n##### 例\n\nDefaultValue は定義された値を返します\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], \"No time logged\")\n// value of data.weather.precipitation.value is defined, so it is returned\n// returns 0.4\n```\n\n指定したキーに値が存在しない場合、DefaultValue はデフォルト値を返します。\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], 0)\n// value of data.weather.precipitation.value is null, so the default is returned\n// returns 0\n```\n\nキーが存在しない場合、DefaultValue はデフォルト値を返します。\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"wind\", \"value\"], \"n/a\")\n// the data.weather.wind key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\nキーが存在するディクショナリ内の配列で NULL 値をチェックします\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"values\", 3], 0)\n// the value data.weather.precipitation.values[3] is null, so the default is returned\n// returns 0\n```\n\n",
|
|
3080
|
+
"completion": {
|
|
3081
|
+
"label": "DefaultValue",
|
|
3082
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3083
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3084
|
+
"insertTextMode": 2,
|
|
3085
|
+
"insertTextFormat": 2,
|
|
3086
|
+
"kind": 3,
|
|
3087
|
+
"documentation": {
|
|
3088
|
+
"kind": "markdown",
|
|
3089
|
+
"value": "ネストされたディクショナリに 1 つ以上のキーが存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。\n\n**パラメーター**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - チェックするディクショナリまたは添付ファイルです。\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - コンテナー構造の各レベルでチェックするキーまたはインデックスの配列です。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - キーまたはインデックスの 1 つ以上が存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、この値が返されます。\n\n**戻り値**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n指定したキーまたはインデックスの値を返します (定義されている場合)。 定義されていない場合は、`defaultValue` で指定した値を返します。"
|
|
3090
|
+
}
|
|
3091
|
+
},
|
|
3092
|
+
"parametersInfo": {
|
|
3093
|
+
"min": 3,
|
|
3094
|
+
"max": 3
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
],
|
|
2844
3098
|
[
|
|
2845
3099
|
{
|
|
2846
3100
|
"type": "function",
|
|
@@ -3016,31 +3270,58 @@
|
|
|
3016
3270
|
"max": 2
|
|
3017
3271
|
}
|
|
3018
3272
|
},
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
"
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
"
|
|
3036
|
-
|
|
3273
|
+
[
|
|
3274
|
+
{
|
|
3275
|
+
"type": "function",
|
|
3276
|
+
"name": "hasvalue",
|
|
3277
|
+
"bundle": "core",
|
|
3278
|
+
"sinceVersion": "1.20",
|
|
3279
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
3280
|
+
"description": "キーが値を持つ場合に、ディクショナリがその所定のキーを保持するかどうかを示します。",
|
|
3281
|
+
"examples": "\n##### 例\n\n値を持つキーを保持するディクショナリ\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\n値を持たないキーを保持するディクショナリ\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\n指定されたキーのないディクショナリ\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\n指定されたキーのないディクショナリ\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
|
|
3282
|
+
"completion": {
|
|
3283
|
+
"label": "HasValue",
|
|
3284
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
3285
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
3286
|
+
"insertTextMode": 2,
|
|
3287
|
+
"insertTextFormat": 2,
|
|
3288
|
+
"kind": 3,
|
|
3289
|
+
"documentation": {
|
|
3290
|
+
"kind": "markdown",
|
|
3291
|
+
"value": "**[バージョン以降 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nキーが値を持つ場合に、ディクショナリがその所定のキーを保持するかどうかを示します。\n\n**パラメーター**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - チェックするディクショナリまたは添付ファイルです。\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - チェックするキーまたはフィールド名です。\n\n**戻り値**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3292
|
+
}
|
|
3293
|
+
},
|
|
3294
|
+
"parametersInfo": {
|
|
3295
|
+
"min": 2,
|
|
3296
|
+
"max": 2
|
|
3037
3297
|
}
|
|
3038
3298
|
},
|
|
3039
|
-
|
|
3040
|
-
"
|
|
3041
|
-
"
|
|
3299
|
+
{
|
|
3300
|
+
"type": "function",
|
|
3301
|
+
"name": "hasvalue",
|
|
3302
|
+
"bundle": "core",
|
|
3303
|
+
"sinceVersion": "1.26",
|
|
3304
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
3305
|
+
"description": "ディクショナリ内の複数レベルでネストされているプロパティに値が存在するかどうかをチェックします。 これにより、各レベルの値をチェックすることなく、1 つのステップでネスト構造を調べることができます。 構造体の各レベルのキーおよびインデックスが存在し、NULL 以外の値が含まれている場合に、`true` を返します。",
|
|
3306
|
+
"examples": "\n##### 例\n\nネストされた値を含むキーを保持するディクショナリをチェックします\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"value\"])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.value;\n}\n```\n\n存在しないキーを保持するディクショナリの値をチェックします\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 0])){\n // if() evaluates to false (\"values\" does not exist), thus avoiding the block\n return data.weather.precipitation.values;\n}\n```\n\n存在するキーを保持するディクショナリ内の配列で値をチェックします\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 6])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.values[6];\n}\n```\n\n",
|
|
3307
|
+
"completion": {
|
|
3308
|
+
"label": "HasValue",
|
|
3309
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
3310
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
3311
|
+
"insertTextMode": 2,
|
|
3312
|
+
"insertTextFormat": 2,
|
|
3313
|
+
"kind": 3,
|
|
3314
|
+
"documentation": {
|
|
3315
|
+
"kind": "markdown",
|
|
3316
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nディクショナリ内の複数レベルでネストされているプロパティに値が存在するかどうかをチェックします。 これにより、各レベルの値をチェックすることなく、1 つのステップでネスト構造を調べることができます。 構造体の各レベルのキーおよびインデックスが存在し、NULL 以外の値が含まれている場合に、`true` を返します。\n\n**パラメーター**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - チェックするディクショナリまたは添付ファイルです。\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - 構造体の各レベルでチェックするキーまたはインデックスの配列です。\n\n**戻り値**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3317
|
+
}
|
|
3318
|
+
},
|
|
3319
|
+
"parametersInfo": {
|
|
3320
|
+
"min": 2,
|
|
3321
|
+
"max": 2
|
|
3322
|
+
}
|
|
3042
3323
|
}
|
|
3043
|
-
|
|
3324
|
+
]
|
|
3044
3325
|
]
|
|
3045
3326
|
},
|
|
3046
3327
|
{
|
|
@@ -3777,7 +4058,7 @@
|
|
|
3777
4058
|
"sinceVersion": "1.12",
|
|
3778
4059
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
3779
4060
|
"description": "先頭から現在までの観測対象間の移動距離に、指定した値を足した合計です。",
|
|
3780
|
-
"examples": "\n##### 例\n\n上記のとおり、トラックには 6 つのフィーチャがあります。 式はトラックの各フィーチャの値を返します。 最初の例では、インデックス値が 2 のフィーチャ 2 (p2) で評価したときの結果を調べます。 計算は `30 + 80 + 60 = 170` となります。\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\n上記のとおり、トラックには 6 つのフィーチャがあります。 式はトラックの各フィーチャの値を返します。 以下の例では、インデックス値が 4 のフィーチャ 4 (p4) で評価したときの結果を調べます。 計算は `25 + 35 + 30 + 80 + 60 = 230` となります。\n\n```arcade\nTrackDistanceAt(
|
|
4061
|
+
"examples": "\n##### 例\n\n上記のとおり、トラックには 6 つのフィーチャがあります。 式はトラックの各フィーチャの値を返します。 最初の例では、インデックス値が 2 のフィーチャ 2 (p2) で評価したときの結果を調べます。 計算は `30 + 80 + 60 = 170` となります。\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\n上記のとおり、トラックには 6 つのフィーチャがあります。 式はトラックの各フィーチャの値を返します。 以下の例では、インデックス値が 4 のフィーチャ 4 (p4) で評価したときの結果を調べます。 計算は `25 + 35 + 30 + 80 + 60 = 230` となります。\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
3781
4062
|
"completion": {
|
|
3782
4063
|
"label": "TrackDistanceAt",
|
|
3783
4064
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -4022,6 +4303,62 @@
|
|
|
4022
4303
|
}
|
|
4023
4304
|
]
|
|
4024
4305
|
},
|
|
4306
|
+
{
|
|
4307
|
+
"id": "knowledge-graph_functions",
|
|
4308
|
+
"title": "ナレッジ グラフ関数",
|
|
4309
|
+
"items": [
|
|
4310
|
+
{
|
|
4311
|
+
"type": "function",
|
|
4312
|
+
"name": "knowledgegraphbyportalitem",
|
|
4313
|
+
"bundle": "knowledge-graph",
|
|
4314
|
+
"sinceVersion": "1.26",
|
|
4315
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
|
|
4316
|
+
"description": "ポータル アイテムからナレッジ グラフを返します。",
|
|
4317
|
+
"examples": "\n##### 例\n\nポータル アイテムからナレッジ グラフを返します。\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
|
|
4318
|
+
"completion": {
|
|
4319
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
4320
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
4321
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
4322
|
+
"insertTextMode": 2,
|
|
4323
|
+
"insertTextFormat": 2,
|
|
4324
|
+
"kind": 3,
|
|
4325
|
+
"documentation": {
|
|
4326
|
+
"kind": "markdown",
|
|
4327
|
+
"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)"
|
|
4328
|
+
}
|
|
4329
|
+
},
|
|
4330
|
+
"parametersInfo": {
|
|
4331
|
+
"min": 2,
|
|
4332
|
+
"max": 2
|
|
4333
|
+
}
|
|
4334
|
+
},
|
|
4335
|
+
{
|
|
4336
|
+
"type": "function",
|
|
4337
|
+
"name": "querygraph",
|
|
4338
|
+
"bundle": "knowledge-graph",
|
|
4339
|
+
"sinceVersion": "1.26",
|
|
4340
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph",
|
|
4341
|
+
"description": "openCypher クエリでナレッジ グラフをクエリし、グラフ内のエンティティおよびリレーションシップのセットと、それらのプロパティを返します。",
|
|
4342
|
+
"examples": "\n##### 例\n\nナレッジ グラフに含まれる `Student` エンティティに関する情報をクエリします。\n\n```arcade\nvar results = QueryGraph(\n knowledgeGraph,\n 'MATCH (p:Student)-[e:EnrolledAt]->(s:School)\n WHERE s.name = \"Eastside Elementary\"\n RETURN p,e,s.principal,s.numStaff\n LIMIT 1');\n\nreturn Text(results);\n```\n\nバインド パラメーターを使用してナレッジ グラフをクエリします。\n\n```arcade\n// searches for entities with a `name` property that matches the given string in the query parameters\n// OR falls within the given geom bounding box\n// query returns both the supplier and the part that it buys\nvar query = `MATCH (s:Supplier)-[:buys_part]-(p:Part)\n WHERE s.name=$name OR esri.graph.ST_Intersects($geom, s.geometry)\n RETURN s,p`;\n \n var results = QueryGraph(\n $graph,\n query,\n {\n \"name\": \"Supplier 1\",\n \"geom\": Polygon({\n rings: [[\n [38,-78],\n [39,-79],\n [39,-76],\n [-38,-76],\n [-38,-78]\n ]]\n })\n }\n );\n```\n\n",
|
|
4343
|
+
"completion": {
|
|
4344
|
+
"label": "QueryGraph",
|
|
4345
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Array",
|
|
4346
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
4347
|
+
"insertTextMode": 2,
|
|
4348
|
+
"insertTextFormat": 2,
|
|
4349
|
+
"kind": 3,
|
|
4350
|
+
"documentation": {
|
|
4351
|
+
"kind": "markdown",
|
|
4352
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nopenCypher クエリでナレッジ グラフをクエリし、グラフ内のエンティティおよびリレーションシップのセットと、それらのプロパティを返します。\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"
|
|
4353
|
+
}
|
|
4354
|
+
},
|
|
4355
|
+
"parametersInfo": {
|
|
4356
|
+
"min": 2,
|
|
4357
|
+
"max": 3
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4360
|
+
]
|
|
4361
|
+
},
|
|
4025
4362
|
{
|
|
4026
4363
|
"id": "feature_functions",
|
|
4027
4364
|
"title": "フィーチャ関数",
|
|
@@ -4058,7 +4395,7 @@
|
|
|
4058
4395
|
"sinceVersion": "1.7",
|
|
4059
4396
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode",
|
|
4060
4397
|
"description": "フィーチャ内の関連付けられたドメインの説明のコードを返します。",
|
|
4061
|
-
"examples": "\n##### 例\n\n
|
|
4398
|
+
"examples": "\n##### 例\n\n参照されているフィールドのドメイン コードを出力します。\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
|
|
4062
4399
|
"completion": {
|
|
4063
4400
|
"label": "DomainCode",
|
|
4064
4401
|
"detail": "DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text",
|
|
@@ -4275,6 +4612,31 @@
|
|
|
4275
4612
|
"max": 1
|
|
4276
4613
|
}
|
|
4277
4614
|
},
|
|
4615
|
+
{
|
|
4616
|
+
"type": "function",
|
|
4617
|
+
"name": "hasvalue",
|
|
4618
|
+
"bundle": "core",
|
|
4619
|
+
"sinceVersion": "1.20",
|
|
4620
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
4621
|
+
"description": "フィールドに値が存在する場合に、フィーチャがその所定のフィールドを保持するかどうかを示します。",
|
|
4622
|
+
"examples": "\n##### 例\n\nフィーチャ属性が存在しないか空の場合は、false を返します。\n\n```arcade\nif(HasValue($feature, \"population\")){\n return $feature.population / AreaGeodetic($feature)\n}\n// Returns the population density if population is available\n```\n\n",
|
|
4623
|
+
"completion": {
|
|
4624
|
+
"label": "HasValue",
|
|
4625
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
4626
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
4627
|
+
"insertTextMode": 2,
|
|
4628
|
+
"insertTextFormat": 2,
|
|
4629
|
+
"kind": 3,
|
|
4630
|
+
"documentation": {
|
|
4631
|
+
"kind": "markdown",
|
|
4632
|
+
"value": "**[バージョン以降 1.20](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- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - チェックするフィールド名です。\n\n**戻り値**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4633
|
+
}
|
|
4634
|
+
},
|
|
4635
|
+
"parametersInfo": {
|
|
4636
|
+
"min": 2,
|
|
4637
|
+
"max": 2
|
|
4638
|
+
}
|
|
4639
|
+
},
|
|
4278
4640
|
{
|
|
4279
4641
|
"type": "function",
|
|
4280
4642
|
"name": "schema",
|
|
@@ -5537,7 +5899,7 @@
|
|
|
5537
5899
|
"bundle": "core",
|
|
5538
5900
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
5539
5901
|
"description": "ある Date から別の Date を減算して、その差を指定の単位で返します。",
|
|
5540
|
-
"examples": "\n##### 例\n\nある Date から別の Date を減算して期間を返す\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nある Date から別の Date
|
|
5902
|
+
"examples": "\n##### 例\n\nある Date から別の Date を減算して期間を返す\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nある Date から別の Date を減算して、その差を返します。\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
|
|
5541
5903
|
"completion": {
|
|
5542
5904
|
"label": "DateDiff",
|
|
5543
5905
|
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
@@ -6789,6 +7151,57 @@
|
|
|
6789
7151
|
"max": 1
|
|
6790
7152
|
}
|
|
6791
7153
|
},
|
|
7154
|
+
[
|
|
7155
|
+
{
|
|
7156
|
+
"type": "function",
|
|
7157
|
+
"name": "defaultvalue",
|
|
7158
|
+
"bundle": "core",
|
|
7159
|
+
"sinceVersion": "1.26",
|
|
7160
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
7161
|
+
"description": "配列にインデックスが存在しないか、指定したインデックスの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。",
|
|
7162
|
+
"examples": "\n##### 例\n\n所定のインデックスの値が存在する配列\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\n所定のインデックスに値が存在しない配列\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\n所定のインデックスが NULL 値の配列\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
|
|
7163
|
+
"completion": {
|
|
7164
|
+
"label": "DefaultValue",
|
|
7165
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
7166
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
7167
|
+
"insertTextMode": 2,
|
|
7168
|
+
"insertTextFormat": 2,
|
|
7169
|
+
"kind": 3,
|
|
7170
|
+
"documentation": {
|
|
7171
|
+
"kind": "markdown",
|
|
7172
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n配列にインデックスが存在しないか、指定したインデックスの値が `null` または空のテキスト値である場合に、指定したデフォルト値を返します。\n\n**パラメーター**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - チェックする入力配列です。\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - チェックするインデックスです。\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` で指定した値を返します。"
|
|
7173
|
+
}
|
|
7174
|
+
},
|
|
7175
|
+
"parametersInfo": {
|
|
7176
|
+
"min": 3,
|
|
7177
|
+
"max": 3
|
|
7178
|
+
}
|
|
7179
|
+
},
|
|
7180
|
+
{
|
|
7181
|
+
"type": "function",
|
|
7182
|
+
"name": "defaultvalue",
|
|
7183
|
+
"bundle": "core",
|
|
7184
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
7185
|
+
"description": "多次元配列内の複数レベルでネストされているインデックスに値が存在するかどうかをチェックし、値が存在する場合はその値を返します。 値が存在しない場合、この関数は、ネストされたキーまたはインデックスの 1 つ以上が存在しないか、指定したキーまたはインデックスの値が `null` または空のテキスト値であるときに、指定したデフォルト値を返します。 これにより、各配列内の値をチェックすることなく、1 つのステップでネスト構造を調べることができます。",
|
|
7186
|
+
"examples": "\n##### 例\n\nネストされたインデックスの値が存在する配列\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 3], \"No data\");\n// returns 1\n```\n\nネストされたインデックスに値が存在しない配列\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 10], \"No data\");\n// returns \"No data\"\n```\n\n親インデックスに値が存在しない配列\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [10, 3], \"No data\");\n// returns \"No data\"\n```\n\nネストされた値を含むディクショナリの配列\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nDefaultValue(a, [0, \"weather\",\"precipitation\",\"values\", 6], \"No data\");\n// returns 1\n```\n\n",
|
|
7187
|
+
"completion": {
|
|
7188
|
+
"label": "DefaultValue",
|
|
7189
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
7190
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
7191
|
+
"insertTextMode": 2,
|
|
7192
|
+
"insertTextFormat": 2,
|
|
7193
|
+
"kind": 3,
|
|
7194
|
+
"documentation": {
|
|
7195
|
+
"kind": "markdown",
|
|
7196
|
+
"value": "多次元配列内の複数レベルでネストされているインデックスに値が存在するかどうかをチェックし、値が存在する場合はその値を返します。 値が存在しない場合、この関数は、ネストされたキーまたはインデックスの 1 つ以上が存在しないか、指定したキーまたはインデックスの値が `null` または空のテキスト値であるときに、指定したデフォルト値を返します。 これにより、各配列内の値をチェックすることなく、1 つのステップでネスト構造を調べることができます。\n\n**パラメーター**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - チェックする入力配列です。\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - コンテナー構造の各レベルでチェックするキーまたはインデックスの配列です。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - キーまたはインデックスの 1 つ以上が存在しないか、指定したキーの値が `null` または空のテキスト値である場合に、この値が返されます。\n\n**戻り値**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n指定したキーまたはインデックスの値を返します (定義されている場合)。 定義されていない場合は、`defaultValue` で指定した値を返します。"
|
|
7197
|
+
}
|
|
7198
|
+
},
|
|
7199
|
+
"parametersInfo": {
|
|
7200
|
+
"min": 3,
|
|
7201
|
+
"max": 3
|
|
7202
|
+
}
|
|
7203
|
+
}
|
|
7204
|
+
],
|
|
6792
7205
|
[
|
|
6793
7206
|
{
|
|
6794
7207
|
"type": "function",
|
|
@@ -6940,6 +7353,58 @@
|
|
|
6940
7353
|
"max": 1
|
|
6941
7354
|
}
|
|
6942
7355
|
},
|
|
7356
|
+
[
|
|
7357
|
+
{
|
|
7358
|
+
"type": "function",
|
|
7359
|
+
"name": "hasvalue",
|
|
7360
|
+
"bundle": "core",
|
|
7361
|
+
"sinceVersion": "1.26",
|
|
7362
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
7363
|
+
"description": "配列内の所定のインデックスに値が存在するかどうかを示します。",
|
|
7364
|
+
"examples": "\n##### 例\n\n所定のインデックスの値が存在する配列\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\n所定のインデックスに値が存在しない配列\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\n所定のインデックスが NULL 値の配列\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
|
|
7365
|
+
"completion": {
|
|
7366
|
+
"label": "HasValue",
|
|
7367
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
7368
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
7369
|
+
"insertTextMode": 2,
|
|
7370
|
+
"insertTextFormat": 2,
|
|
7371
|
+
"kind": 3,
|
|
7372
|
+
"documentation": {
|
|
7373
|
+
"kind": "markdown",
|
|
7374
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n配列内の所定のインデックスに値が存在するかどうかを示します。\n\n**パラメーター**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - チェックする配列です。\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - チェックするインデックスです。\n\n**戻り値**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7375
|
+
}
|
|
7376
|
+
},
|
|
7377
|
+
"parametersInfo": {
|
|
7378
|
+
"min": 2,
|
|
7379
|
+
"max": 2
|
|
7380
|
+
}
|
|
7381
|
+
},
|
|
7382
|
+
{
|
|
7383
|
+
"type": "function",
|
|
7384
|
+
"name": "hasvalue",
|
|
7385
|
+
"bundle": "core",
|
|
7386
|
+
"sinceVersion": "1.26",
|
|
7387
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
7388
|
+
"description": "多次元配列内の複数レベルでネストされているインデックスに値が存在するかどうかをチェックします。 これにより、各配列内の値をチェックすることなく、1 つのステップでネスト構造を調べることができます。 構造体の各レベルのインデックスが存在し、NULL 以外の値が含まれている場合に、`true` を返します。",
|
|
7389
|
+
"examples": "\n##### 例\n\nネストされたインデックスの値が存在する配列\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nネストされたインデックスに値が存在しない配列\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\n親インデックスに値が存在しない配列\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nネストされた値を含むディクショナリの配列\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nif(HasValue(a, [0, \"weather\",\"precipitation\",\"values\", 6])){\n // This check succeeds so the value will be returned\n return a[0].weather.precipitation.values[6];\n // returns 1\n}\n```\n\n",
|
|
7390
|
+
"completion": {
|
|
7391
|
+
"label": "HasValue",
|
|
7392
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
7393
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
7394
|
+
"insertTextMode": 2,
|
|
7395
|
+
"insertTextFormat": 2,
|
|
7396
|
+
"kind": 3,
|
|
7397
|
+
"documentation": {
|
|
7398
|
+
"kind": "markdown",
|
|
7399
|
+
"value": "**[バージョン以降 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n多次元配列内の複数レベルでネストされているインデックスに値が存在するかどうかをチェックします。 これにより、各配列内の値をチェックすることなく、1 つのステップでネスト構造を調べることができます。 構造体の各レベルのインデックスが存在し、NULL 以外の値が含まれている場合に、`true` を返します。\n\n**パラメーター**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - チェックする配列です。\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - 構造体の各レベルでチェックするキーまたはインデックスの配列です。\n\n**戻り値**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
"parametersInfo": {
|
|
7403
|
+
"min": 2,
|
|
7404
|
+
"max": 2
|
|
7405
|
+
}
|
|
7406
|
+
}
|
|
7407
|
+
],
|
|
6943
7408
|
{
|
|
6944
7409
|
"type": "function",
|
|
6945
7410
|
"name": "includes",
|