@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
|
@@ -680,6 +680,31 @@
|
|
|
680
680
|
"max": 2
|
|
681
681
|
}
|
|
682
682
|
},
|
|
683
|
+
{
|
|
684
|
+
"type": "function",
|
|
685
|
+
"name": "filterbysubtypecode",
|
|
686
|
+
"bundle": "data-access",
|
|
687
|
+
"sinceVersion": "1.25",
|
|
688
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode",
|
|
689
|
+
"description": "สร้างฟีเจอร์เซ็ตใหม่ โดยที่ฟีเจอร์ทั้งหมดตรงกับรหัสประเภทย่อย",
|
|
690
|
+
"examples": "\n##### ตัวอย่าง\n\nกรองฟีเจอร์ด้วยรหัสประเภทย่อย\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
|
|
691
|
+
"completion": {
|
|
692
|
+
"label": "FilterBySubtypeCode",
|
|
693
|
+
"detail": "FilterBySubtypeCode(features, subtypeCode) -> FeatureSet",
|
|
694
|
+
"insertText": "FilterBySubtypeCode(${1:features_}, ${2:subtypeCode_})$0",
|
|
695
|
+
"insertTextMode": 2,
|
|
696
|
+
"insertTextFormat": 2,
|
|
697
|
+
"kind": 3,
|
|
698
|
+
"documentation": {
|
|
699
|
+
"kind": "markdown",
|
|
700
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.25](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- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รหัสประเภทย่อยที่ใช้ในการกรองฟีเจอร์ในฟีเจอร์เซ็ตหรือชั้นข้อมูล\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"parametersInfo": {
|
|
704
|
+
"min": 2,
|
|
705
|
+
"max": 2
|
|
706
|
+
}
|
|
707
|
+
},
|
|
683
708
|
{
|
|
684
709
|
"type": "function",
|
|
685
710
|
"name": "first",
|
|
@@ -913,7 +938,7 @@
|
|
|
913
938
|
"sinceVersion": "1.14",
|
|
914
939
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
915
940
|
"description": "ส่งคืนความยาวเชิงระนาบ (เช่น Cartesian) ของฟีเจอร์เซ็ตอินพุท โดยพิจารณาความสูงหรือข้อมูล Z ร่วมด้วย เรขาคณิตที่ป้อนในฟังก์ชันนี้ จะต้องได้รับการกำหนดระบบพิกัดแนวระนาบ หากการอ้างอิงเชิงพื้นที่ไม่ได้ระบุค่าสำหรับหน่วย Z ผลลัพธ์จะถูกส่งกลับเป็นเมตร โปรดทราบว่าไม่ใช่ทุกไคลเอ็นต์ (เช่น ชุด 3.x ของ ArcGIS API สำหรับ JavaScript) ที่รองรับ การขอค่า Z แม้ว่าข้อมูลจะมีข้อมูล Z อยู่ก็ตาม\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
916
|
-
"examples": "\n##### ตัวอย่าง\n\nส่งกลับความยาว 3 มิติของคุณสมบัติของชั้นข้อมูลในหน่วยเมตร\n\n```arcade\
|
|
941
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งกลับความยาว 3 มิติของคุณสมบัติของชั้นข้อมูลในหน่วยเมตร\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
917
942
|
"completion": {
|
|
918
943
|
"label": "Length3D",
|
|
919
944
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -1386,6 +1411,62 @@
|
|
|
1386
1411
|
}
|
|
1387
1412
|
]
|
|
1388
1413
|
},
|
|
1414
|
+
{
|
|
1415
|
+
"id": "knowledge-graph_functions",
|
|
1416
|
+
"title": "ฟังก์ชันกราฟความรู้",
|
|
1417
|
+
"items": [
|
|
1418
|
+
{
|
|
1419
|
+
"type": "function",
|
|
1420
|
+
"name": "knowledgegraphbyportalitem",
|
|
1421
|
+
"bundle": "knowledge-graph",
|
|
1422
|
+
"sinceVersion": "1.26",
|
|
1423
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
|
|
1424
|
+
"description": "ส่งคืนกราฟความรู้จากรายการ Portal",
|
|
1425
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนกราฟความรู้จากรายการ Portal\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
|
|
1426
|
+
"completion": {
|
|
1427
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
1428
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
1429
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
1430
|
+
"insertTextMode": 2,
|
|
1431
|
+
"insertTextFormat": 2,
|
|
1432
|
+
"kind": 3,
|
|
1433
|
+
"documentation": {
|
|
1434
|
+
"kind": "markdown",
|
|
1435
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนกราฟความรู้จากรายการ Portal\n\n**พารามิเตอร์**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Portal ที่จะคิวรีฟีเจอร์จาก\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - GUID ของรายการ Portal ที่อ้างอิงบริการกราฟความรู้ _ค่านี้ต้องเป็นตัวอักษรข้อความ_\n\n**ส่งคืนค่า**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"parametersInfo": {
|
|
1439
|
+
"min": 2,
|
|
1440
|
+
"max": 2
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"type": "function",
|
|
1445
|
+
"name": "querygraph",
|
|
1446
|
+
"bundle": "knowledge-graph",
|
|
1447
|
+
"sinceVersion": "1.26",
|
|
1448
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph",
|
|
1449
|
+
"description": "คิวรีกราฟความรู้ด้วยคิวรี openCypher และส่งคืนชุดของเอนทิตีและความสัมพันธ์ในกราฟ พร้อมคุณสมบัติ",
|
|
1450
|
+
"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",
|
|
1451
|
+
"completion": {
|
|
1452
|
+
"label": "QueryGraph",
|
|
1453
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Array",
|
|
1454
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
1455
|
+
"insertTextMode": 2,
|
|
1456
|
+
"insertTextFormat": 2,
|
|
1457
|
+
"kind": 3,
|
|
1458
|
+
"documentation": {
|
|
1459
|
+
"kind": "markdown",
|
|
1460
|
+
"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"
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
"parametersInfo": {
|
|
1464
|
+
"min": 2,
|
|
1465
|
+
"max": 3
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
]
|
|
1469
|
+
},
|
|
1389
1470
|
{
|
|
1390
1471
|
"id": "debugging_functions",
|
|
1391
1472
|
"title": "ฟังก์ชันการดีบัก",
|
|
@@ -1602,7 +1683,7 @@
|
|
|
1602
1683
|
"sinceVersion": "1.12",
|
|
1603
1684
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
1604
1685
|
"description": "ผลรวมของระยะทางที่เดินทางระหว่างการสังเกตการณ์ จากการสังเกตการณ์ครั้งแรกจนถึงปัจจุบัน บวกด้วยค่าที่กำหนด",
|
|
1605
|
-
"examples": "\n##### ตัวอย่าง\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ เมื่อประเมินค่าที่ฟีเจอร์ 2 (p2) ด้วยค่าดัชนี 2 ผลการคำนวณคือ `30 + 80 + 60 = 170`\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์เมื่อประเมินค่าที่ฟีเจอร์ 4 (p4) ด้วยค่าดัชนี 4 ผลการคำนวณคือ `25 + 35 + 30 + 80 + 60 = 230`\n\n```arcade\nTrackDistanceAt(
|
|
1686
|
+
"examples": "\n##### ตัวอย่าง\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ เมื่อประเมินค่าที่ฟีเจอร์ 2 (p2) ด้วยค่าดัชนี 2 ผลการคำนวณคือ `30 + 80 + 60 = 170`\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์เมื่อประเมินค่าที่ฟีเจอร์ 4 (p4) ด้วยค่าดัชนี 4 ผลการคำนวณคือ `25 + 35 + 30 + 80 + 60 = 230`\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
1606
1687
|
"completion": {
|
|
1607
1688
|
"label": "TrackDistanceAt",
|
|
1608
1689
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -3185,6 +3266,57 @@
|
|
|
3185
3266
|
"id": "dictionary_functions",
|
|
3186
3267
|
"title": "ฟังก์ชันพจนานุกรม",
|
|
3187
3268
|
"items": [
|
|
3269
|
+
[
|
|
3270
|
+
{
|
|
3271
|
+
"type": "function",
|
|
3272
|
+
"name": "defaultvalue",
|
|
3273
|
+
"bundle": "core",
|
|
3274
|
+
"sinceVersion": "1.26",
|
|
3275
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
3276
|
+
"description": "ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่คีย์ในพจนานุกรมไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า",
|
|
3277
|
+
"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\nDefaultValue จะส่งคืนค่าเริ่มต้น ในกรณีที่ไม่มีค่า ณ คีย์ที่ระบุ\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\nDefaultValue จะส่งคืนค่าเริ่มต้น หากไม่มีคีย์\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",
|
|
3278
|
+
"completion": {
|
|
3279
|
+
"label": "DefaultValue",
|
|
3280
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3281
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3282
|
+
"insertTextMode": 2,
|
|
3283
|
+
"insertTextFormat": 2,
|
|
3284
|
+
"kind": 3,
|
|
3285
|
+
"documentation": {
|
|
3286
|
+
"kind": "markdown",
|
|
3287
|
+
"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`"
|
|
3288
|
+
}
|
|
3289
|
+
},
|
|
3290
|
+
"parametersInfo": {
|
|
3291
|
+
"min": 3,
|
|
3292
|
+
"max": 3
|
|
3293
|
+
}
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
"type": "function",
|
|
3297
|
+
"name": "defaultvalue",
|
|
3298
|
+
"bundle": "core",
|
|
3299
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
3300
|
+
"description": "ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในพจนานุกรมที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า",
|
|
3301
|
+
"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\nDefaultValue จะส่งคืนค่าเริ่มต้น ในกรณีที่ไม่มีค่า ณ คีย์ที่ระบุ\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\nDefaultValue จะส่งคืนค่าเริ่มต้น หากไม่มีคีย์\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ตรวจสอบค่าว่างในอาร์เรย์ภายในพจนานุกรมด้วยคีย์ที่มีอยู่\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",
|
|
3302
|
+
"completion": {
|
|
3303
|
+
"label": "DefaultValue",
|
|
3304
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3305
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3306
|
+
"insertTextMode": 2,
|
|
3307
|
+
"insertTextFormat": 2,
|
|
3308
|
+
"kind": 3,
|
|
3309
|
+
"documentation": {
|
|
3310
|
+
"kind": "markdown",
|
|
3311
|
+
"value": "ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในพจนานุกรมที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `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) - ค่านี้จะถูกส่งคืนหากอย่างน้อยหนึ่งในคีย์หรือดัชนีไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nส่งคืนค่า ณ คีย์หรือดัชนีที่ระบุ หากกำหนดค่าไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"
|
|
3312
|
+
}
|
|
3313
|
+
},
|
|
3314
|
+
"parametersInfo": {
|
|
3315
|
+
"min": 3,
|
|
3316
|
+
"max": 3
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
],
|
|
3188
3320
|
[
|
|
3189
3321
|
{
|
|
3190
3322
|
"type": "function",
|
|
@@ -3360,31 +3492,58 @@
|
|
|
3360
3492
|
"max": 2
|
|
3361
3493
|
}
|
|
3362
3494
|
},
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
"
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
"
|
|
3380
|
-
|
|
3495
|
+
[
|
|
3496
|
+
{
|
|
3497
|
+
"type": "function",
|
|
3498
|
+
"name": "hasvalue",
|
|
3499
|
+
"bundle": "core",
|
|
3500
|
+
"sinceVersion": "1.20",
|
|
3501
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
3502
|
+
"description": "ระบุว่าพจนานุกรมมีคีย์ที่กำหนดหรือไม่ และคีย์ดังกล่าวมีค่าหรือไม่",
|
|
3503
|
+
"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",
|
|
3504
|
+
"completion": {
|
|
3505
|
+
"label": "HasValue",
|
|
3506
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
3507
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
3508
|
+
"insertTextMode": 2,
|
|
3509
|
+
"insertTextFormat": 2,
|
|
3510
|
+
"kind": 3,
|
|
3511
|
+
"documentation": {
|
|
3512
|
+
"kind": "markdown",
|
|
3513
|
+
"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)"
|
|
3514
|
+
}
|
|
3515
|
+
},
|
|
3516
|
+
"parametersInfo": {
|
|
3517
|
+
"min": 2,
|
|
3518
|
+
"max": 2
|
|
3381
3519
|
}
|
|
3382
3520
|
},
|
|
3383
|
-
|
|
3384
|
-
"
|
|
3385
|
-
"
|
|
3521
|
+
{
|
|
3522
|
+
"type": "function",
|
|
3523
|
+
"name": "hasvalue",
|
|
3524
|
+
"bundle": "core",
|
|
3525
|
+
"sinceVersion": "1.26",
|
|
3526
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
3527
|
+
"description": "ตรวจสอบว่าคุณสมบัติที่เนสต์ลึกหลายระดับในพจนานุกรม มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `true` หากคีย์และดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง",
|
|
3528
|
+
"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",
|
|
3529
|
+
"completion": {
|
|
3530
|
+
"label": "HasValue",
|
|
3531
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
3532
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
3533
|
+
"insertTextMode": 2,
|
|
3534
|
+
"insertTextFormat": 2,
|
|
3535
|
+
"kind": 3,
|
|
3536
|
+
"documentation": {
|
|
3537
|
+
"kind": "markdown",
|
|
3538
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตรวจสอบว่าคุณสมบัติที่เนสต์ลึกหลายระดับในพจนานุกรม มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `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)"
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
"parametersInfo": {
|
|
3542
|
+
"min": 2,
|
|
3543
|
+
"max": 2
|
|
3544
|
+
}
|
|
3386
3545
|
}
|
|
3387
|
-
|
|
3546
|
+
]
|
|
3388
3547
|
]
|
|
3389
3548
|
},
|
|
3390
3549
|
{
|
|
@@ -3423,7 +3582,7 @@
|
|
|
3423
3582
|
"sinceVersion": "1.7",
|
|
3424
3583
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode",
|
|
3425
3584
|
"description": "ส่งคืนรหัสของคำอธิบายโดเมนที่เชื่อมโยงในฟีเจอร์",
|
|
3426
|
-
"examples": "\n##### ตัวอย่าง\n\n
|
|
3585
|
+
"examples": "\n##### ตัวอย่าง\n\nพิมพ์รหัสโดเมนของฟิลด์ที่อ้างอิง\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
|
|
3427
3586
|
"completion": {
|
|
3428
3587
|
"label": "DomainCode",
|
|
3429
3588
|
"detail": "DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text",
|
|
@@ -3640,6 +3799,31 @@
|
|
|
3640
3799
|
"max": 1
|
|
3641
3800
|
}
|
|
3642
3801
|
},
|
|
3802
|
+
{
|
|
3803
|
+
"type": "function",
|
|
3804
|
+
"name": "hasvalue",
|
|
3805
|
+
"bundle": "core",
|
|
3806
|
+
"sinceVersion": "1.20",
|
|
3807
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
3808
|
+
"description": "ระบุว่าฟีเจอร์มีฟิลด์ที่กำหนดหรือไม่ และฟิลด์ดังกล่าวมีค่าหรือไม่",
|
|
3809
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนค่าเท็จ หากไม่มีคุณลักษณะฟีเจอร์ หรือว่างเปล่า\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",
|
|
3810
|
+
"completion": {
|
|
3811
|
+
"label": "HasValue",
|
|
3812
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
3813
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
3814
|
+
"insertTextMode": 2,
|
|
3815
|
+
"insertTextFormat": 2,
|
|
3816
|
+
"kind": 3,
|
|
3817
|
+
"documentation": {
|
|
3818
|
+
"kind": "markdown",
|
|
3819
|
+
"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)"
|
|
3820
|
+
}
|
|
3821
|
+
},
|
|
3822
|
+
"parametersInfo": {
|
|
3823
|
+
"min": 2,
|
|
3824
|
+
"max": 2
|
|
3825
|
+
}
|
|
3826
|
+
},
|
|
3643
3827
|
{
|
|
3644
3828
|
"type": "function",
|
|
3645
3829
|
"name": "schema",
|
|
@@ -4152,6 +4336,57 @@
|
|
|
4152
4336
|
"max": 2
|
|
4153
4337
|
}
|
|
4154
4338
|
},
|
|
4339
|
+
[
|
|
4340
|
+
{
|
|
4341
|
+
"type": "function",
|
|
4342
|
+
"name": "defaultvalue",
|
|
4343
|
+
"bundle": "core",
|
|
4344
|
+
"sinceVersion": "1.26",
|
|
4345
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
4346
|
+
"description": "ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่คีย์ในเรขาคณิตไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า",
|
|
4347
|
+
"examples": "\n##### ตัวอย่าง\n\nจุดที่มีค่า z\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nจุดที่ไม่มีค่า z\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
|
|
4348
|
+
"completion": {
|
|
4349
|
+
"label": "DefaultValue",
|
|
4350
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
4351
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
4352
|
+
"insertTextMode": 2,
|
|
4353
|
+
"insertTextFormat": 2,
|
|
4354
|
+
"kind": 3,
|
|
4355
|
+
"documentation": {
|
|
4356
|
+
"kind": "markdown",
|
|
4357
|
+
"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`"
|
|
4358
|
+
}
|
|
4359
|
+
},
|
|
4360
|
+
"parametersInfo": {
|
|
4361
|
+
"min": 3,
|
|
4362
|
+
"max": 3
|
|
4363
|
+
}
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
"type": "function",
|
|
4367
|
+
"name": "defaultvalue",
|
|
4368
|
+
"bundle": "core",
|
|
4369
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
4370
|
+
"description": "ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในคุณสมบัติที่เนสต์ของเรขาคณิตไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า",
|
|
4371
|
+
"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",
|
|
4372
|
+
"completion": {
|
|
4373
|
+
"label": "DefaultValue",
|
|
4374
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
4375
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
4376
|
+
"insertTextMode": 2,
|
|
4377
|
+
"insertTextFormat": 2,
|
|
4378
|
+
"kind": 3,
|
|
4379
|
+
"documentation": {
|
|
4380
|
+
"kind": "markdown",
|
|
4381
|
+
"value": "ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในคุณสมบัติที่เนสต์ของเรขาคณิตไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `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) - ค่านี้จะถูกส่งคืนหากอย่างน้อยหนึ่งในคีย์หรือดัชนีไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nส่งคืนค่า ณ คีย์หรือดัชนีที่ระบุ หากกำหนดค่าไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"
|
|
4382
|
+
}
|
|
4383
|
+
},
|
|
4384
|
+
"parametersInfo": {
|
|
4385
|
+
"min": 3,
|
|
4386
|
+
"max": 3
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
],
|
|
4155
4390
|
{
|
|
4156
4391
|
"type": "function",
|
|
4157
4392
|
"name": "densify",
|
|
@@ -4302,6 +4537,31 @@
|
|
|
4302
4537
|
"max": 3
|
|
4303
4538
|
}
|
|
4304
4539
|
},
|
|
4540
|
+
{
|
|
4541
|
+
"type": "function",
|
|
4542
|
+
"name": "distancetocoordinate",
|
|
4543
|
+
"bundle": "geometry",
|
|
4544
|
+
"sinceVersion": "1.26",
|
|
4545
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
4546
|
+
"description": "ส่งคืนพิกัดตามเส้นอินพุท โดยอิงตามระยะทางที่กำหนด จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ ระยะทางที่กำหนด ระยะทางไม่รวมช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น หากไม่พบระยะทางตามเส้นอินพุท ผลลัพธ์จะเป็น `null`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
4547
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนพิกัดของโพลีไลน์อินพุท โดยอิงตามค่าระยะทางที่กำหนด\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n",
|
|
4548
|
+
"completion": {
|
|
4549
|
+
"label": "DistanceToCoordinate",
|
|
4550
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
4551
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
4552
|
+
"insertTextMode": 2,
|
|
4553
|
+
"insertTextFormat": 2,
|
|
4554
|
+
"kind": 3,
|
|
4555
|
+
"documentation": {
|
|
4556
|
+
"kind": "markdown",
|
|
4557
|
+
"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`"
|
|
4558
|
+
}
|
|
4559
|
+
},
|
|
4560
|
+
"parametersInfo": {
|
|
4561
|
+
"min": 2,
|
|
4562
|
+
"max": 2
|
|
4563
|
+
}
|
|
4564
|
+
},
|
|
4305
4565
|
{
|
|
4306
4566
|
"type": "function",
|
|
4307
4567
|
"name": "envelopeintersects",
|
|
@@ -4475,6 +4735,58 @@
|
|
|
4475
4735
|
"max": 1
|
|
4476
4736
|
}
|
|
4477
4737
|
},
|
|
4738
|
+
[
|
|
4739
|
+
{
|
|
4740
|
+
"type": "function",
|
|
4741
|
+
"name": "hasvalue",
|
|
4742
|
+
"bundle": "core",
|
|
4743
|
+
"sinceVersion": "1.26",
|
|
4744
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
4745
|
+
"description": "ระบุว่าเรขาคณิตมีค่า ณ คีย์หรือดัชนีที่กำหนดหรือไม่",
|
|
4746
|
+
"examples": "\n##### ตัวอย่าง\n\nจุดที่มีค่า z\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",
|
|
4747
|
+
"completion": {
|
|
4748
|
+
"label": "HasValue",
|
|
4749
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
4750
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
4751
|
+
"insertTextMode": 2,
|
|
4752
|
+
"insertTextFormat": 2,
|
|
4753
|
+
"kind": 3,
|
|
4754
|
+
"documentation": {
|
|
4755
|
+
"kind": "markdown",
|
|
4756
|
+
"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)"
|
|
4757
|
+
}
|
|
4758
|
+
},
|
|
4759
|
+
"parametersInfo": {
|
|
4760
|
+
"min": 2,
|
|
4761
|
+
"max": 2
|
|
4762
|
+
}
|
|
4763
|
+
},
|
|
4764
|
+
{
|
|
4765
|
+
"type": "function",
|
|
4766
|
+
"name": "hasvalue",
|
|
4767
|
+
"bundle": "core",
|
|
4768
|
+
"sinceVersion": "1.26",
|
|
4769
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
4770
|
+
"description": "ตรวจสอบว่าคุณสมบัติหรือดัชนีที่เนสต์ลึกหลายระดับในเรขาคณิต มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `true` หากคีย์และดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง",
|
|
4771
|
+
"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",
|
|
4772
|
+
"completion": {
|
|
4773
|
+
"label": "HasValue",
|
|
4774
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
4775
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
4776
|
+
"insertTextMode": 2,
|
|
4777
|
+
"insertTextFormat": 2,
|
|
4778
|
+
"kind": 3,
|
|
4779
|
+
"documentation": {
|
|
4780
|
+
"kind": "markdown",
|
|
4781
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตรวจสอบว่าคุณสมบัติหรือดัชนีที่เนสต์ลึกหลายระดับในเรขาคณิต มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `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)"
|
|
4782
|
+
}
|
|
4783
|
+
},
|
|
4784
|
+
"parametersInfo": {
|
|
4785
|
+
"min": 2,
|
|
4786
|
+
"max": 2
|
|
4787
|
+
}
|
|
4788
|
+
}
|
|
4789
|
+
],
|
|
4478
4790
|
{
|
|
4479
4791
|
"type": "function",
|
|
4480
4792
|
"name": "intersection",
|
|
@@ -4650,6 +4962,31 @@
|
|
|
4650
4962
|
"max": 2
|
|
4651
4963
|
}
|
|
4652
4964
|
},
|
|
4965
|
+
{
|
|
4966
|
+
"type": "function",
|
|
4967
|
+
"name": "measuretocoordinate",
|
|
4968
|
+
"bundle": "geometry",
|
|
4969
|
+
"sinceVersion": "1.26",
|
|
4970
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
4971
|
+
"description": "ส่งคืนพิกัดแรกตามเส้นอินพุท อิงตามการวัดที่กำหนด หรือค่า m หากไม่พบการวัดตามเส้นอินพุท ผลลัพธ์จะเป็น `null` จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ การวัดที่กำหนด การวัดไม่มีช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
4972
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนพิกัดของโพลีไลน์อินพุท โดยอิงตามค่าการวัดที่กำหนด\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
|
|
4973
|
+
"completion": {
|
|
4974
|
+
"label": "MeasureToCoordinate",
|
|
4975
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
4976
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
4977
|
+
"insertTextMode": 2,
|
|
4978
|
+
"insertTextFormat": 2,
|
|
4979
|
+
"kind": 3,
|
|
4980
|
+
"documentation": {
|
|
4981
|
+
"kind": "markdown",
|
|
4982
|
+
"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) - การวัด หรือค่า m ที่จะค้นหาพิกัดตาม `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`"
|
|
4983
|
+
}
|
|
4984
|
+
},
|
|
4985
|
+
"parametersInfo": {
|
|
4986
|
+
"min": 2,
|
|
4987
|
+
"max": 2
|
|
4988
|
+
}
|
|
4989
|
+
},
|
|
4653
4990
|
{
|
|
4654
4991
|
"type": "function",
|
|
4655
4992
|
"name": "multiparttosinglepart",
|
|
@@ -4766,7 +5103,7 @@
|
|
|
4766
5103
|
"kind": 3,
|
|
4767
5104
|
"documentation": {
|
|
4768
5105
|
"kind": "markdown",
|
|
4769
|
-
"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` ค่านี้จะแสดงระยะทางที่ใกล้ที่สุดระหว่าง `inputGeometry` และ `searchPoint`"
|
|
5106
|
+
"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` ค่านี้จะแสดงระยะทางที่ใกล้ที่สุดระหว่าง `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`"
|
|
4770
5107
|
}
|
|
4771
5108
|
},
|
|
4772
5109
|
"parametersInfo": {
|
|
@@ -4791,7 +5128,7 @@
|
|
|
4791
5128
|
"kind": 3,
|
|
4792
5129
|
"documentation": {
|
|
4793
5130
|
"kind": "markdown",
|
|
4794
|
-
"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`"
|
|
5131
|
+
"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`"
|
|
4795
5132
|
}
|
|
4796
5133
|
},
|
|
4797
5134
|
"parametersInfo": {
|
|
@@ -4899,6 +5236,31 @@
|
|
|
4899
5236
|
}
|
|
4900
5237
|
}
|
|
4901
5238
|
],
|
|
5239
|
+
{
|
|
5240
|
+
"type": "function",
|
|
5241
|
+
"name": "pointtocoordinate",
|
|
5242
|
+
"bundle": "geometry",
|
|
5243
|
+
"sinceVersion": "1.26",
|
|
5244
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
5245
|
+
"description": "ส่งคืนพิกัดที่ใกล้ที่สุด และระยะทางไปยังพิกัดดังกล่าวของจุดค้นหาถึงเส้นอินพุท\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
5246
|
+
"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",
|
|
5247
|
+
"completion": {
|
|
5248
|
+
"label": "PointToCoordinate",
|
|
5249
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
5250
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
5251
|
+
"insertTextMode": 2,
|
|
5252
|
+
"insertTextFormat": 2,
|
|
5253
|
+
"kind": 3,
|
|
5254
|
+
"documentation": {
|
|
5255
|
+
"kind": "markdown",
|
|
5256
|
+
"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` หาก `hasZ` เป็น `false` ใน `searchPoint`, จะดำเนินการค้นหาในพิกัด 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`"
|
|
5257
|
+
}
|
|
5258
|
+
},
|
|
5259
|
+
"parametersInfo": {
|
|
5260
|
+
"min": 2,
|
|
5261
|
+
"max": 2
|
|
5262
|
+
}
|
|
5263
|
+
},
|
|
4902
5264
|
[
|
|
4903
5265
|
{
|
|
4904
5266
|
"type": "function",
|
|
@@ -5761,7 +6123,7 @@
|
|
|
5761
6123
|
"bundle": "core",
|
|
5762
6124
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
5763
6125
|
"description": "ลบวันที่สองวัน แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด",
|
|
5764
|
-
"examples": "\n##### ตัวอย่าง\n\nลบวันที่สองวันและส่งคืนอายุ\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\n
|
|
6126
|
+
"examples": "\n##### ตัวอย่าง\n\nลบวันที่สองวันและส่งคืนอายุ\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nลบวันที่สองวันและส่งคืนส่วนต่าง\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",
|
|
5765
6127
|
"completion": {
|
|
5766
6128
|
"label": "DateDiff",
|
|
5767
6129
|
"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อาร์เรย์ที่มีค่าว่าง ณ ดัชนีที่กำหนด\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": "ตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ และส่งคืนค่าดังกล่าวหากพบ หากไม่ ฟังก์ชันนี้จะส่งคืนค่าเริ่มต้นที่ระบุไว้ ในกรณีที่อย่างน้อยหนึ่งในคีย์หรือดัชนีที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่าภายในแต่ละอาร์เรย์",
|
|
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": "ตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ และส่งคืนค่าดังกล่าวหากพบ หากไม่ ฟังก์ชันนี้จะส่งคืนค่าเริ่มต้นที่ระบุไว้ ในกรณีที่อย่างน้อยหนึ่งในคีย์หรือดัชนีที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `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- **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) - ค่านี้จะถูกส่งคืนหากอย่างน้อยหนึ่งในคีย์หรือดัชนีไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `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อาร์เรย์ที่มีค่าว่าง ณ ดัชนีที่กำหนด\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": "ตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่าภายในแต่ละอาร์เรย์ ส่งคืน `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ตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่าภายในแต่ละอาร์เรย์ ส่งคืน `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",
|