@arcgis/coding-components 4.28.0-beta.35 → 4.28.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +188 -188
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +181 -181
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +182 -182
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +180 -180
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +188 -188
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +181 -181
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +180 -180
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +182 -182
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +186 -186
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +186 -186
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +185 -185
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +182 -182
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +185 -185
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +182 -182
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +181 -181
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +189 -189
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +185 -185
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +186 -186
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +181 -181
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +183 -183
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +183 -183
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +180 -180
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +188 -188
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +186 -186
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +183 -183
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +188 -188
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +182 -182
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +186 -186
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +186 -186
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +180 -180
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +180 -180
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +183 -183
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +181 -181
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +189 -189
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +182 -182
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +187 -187
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +185 -185
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +179 -179
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +179 -179
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +1 -1
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-1da81c46.entry.js → p-1afb1520.entry.js} +1 -1
- package/dist/arcgis-coding-components/{p-aaf23d11.js → p-3af6d9c9.js} +1 -1
- package/dist/arcgis-coding-components/{p-609f6ed0.js → p-4d3db1b0.js} +7 -7
- package/dist/arcgis-coding-components/{p-ae447c38.js → p-659edbd6.js} +1 -1
- package/dist/arcgis-coding-components/{p-184ec29e.js → p-6f11971b.js} +1 -1
- package/dist/arcgis-coding-components/{p-6b11611b.js → p-85a52c0c.js} +1 -1
- package/dist/arcgis-coding-components/{p-80df31b8.js → p-b4da9834.js} +1 -1
- package/dist/arcgis-coding-components/{p-65bc9fc4.js → p-d06922b9.js} +1 -1
- package/dist/arcgis-coding-components/{p-5d5e5d83.js → p-dd869b96.js} +1 -1
- package/dist/arcgis-coding-components/{p-608e0722.js → p-f3fdbeaf.js} +1 -1
- package/dist/cjs/{arcade-defaults-95715eda.js → arcade-defaults-970ec5c1.js} +7 -7
- package/dist/cjs/{arcade-mode-25f37dc7.js → arcade-mode-c6a3b170.js} +1 -1
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +2 -2
- package/dist/cjs/{cssMode-22983834.js → cssMode-c342f082.js} +1 -1
- package/dist/cjs/{html-e4fbc7fd.js → html-9077ef37.js} +1 -1
- package/dist/cjs/{htmlMode-1424a4cb.js → htmlMode-d8465240.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-3db1907e.js → javascript-7b74878f.js} +2 -2
- package/dist/cjs/{jsonMode-ee248f34.js → jsonMode-5d4d7d37.js} +1 -1
- package/dist/cjs/{tsMode-a87a551f.js → tsMode-f989c389.js} +1 -1
- package/dist/cjs/{typescript-e9500a0e.js → typescript-16065111.js} +1 -1
- package/dist/esm/{arcade-defaults-726be3ca.js → arcade-defaults-86bf04ed.js} +7 -7
- package/dist/esm/{arcade-mode-ca3279db.js → arcade-mode-a5fd2446.js} +1 -1
- package/dist/esm/arcgis-arcade-api_6.entry.js +2 -2
- package/dist/esm/{cssMode-1cdb4e06.js → cssMode-b190bc7f.js} +1 -1
- package/dist/esm/{html-aacbe5d8.js → html-0749d9b9.js} +1 -1
- package/dist/esm/{htmlMode-1263001c.js → htmlMode-d714b14b.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-ca616cc1.js → javascript-49d5a953.js} +2 -2
- package/dist/esm/{jsonMode-7c342af0.js → jsonMode-f36dbe4d.js} +1 -1
- package/dist/esm/{tsMode-c14db833.js → tsMode-fe00e707.js} +1 -1
- package/dist/esm/{typescript-1f9217c5.js → typescript-d133c2e9.js} +1 -1
- package/package.json +6 -6
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"name": "average",
|
|
261
261
|
"bundle": "data-access",
|
|
262
262
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#average",
|
|
263
|
-
"description": "
|
|
263
|
+
"description": "ส่งคืนค่าเฉลี่ยของฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต",
|
|
264
264
|
"examples": "\n##### ตัวอย่าง\n\nคำนวณส่วนต่างระหว่างจำนวนประชากรของฟีเจอร์ และจำนวนประชากรเฉลี่ยของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\n$feature.population - Average($layer, 'population')\n```\n\nคำนวณจำนวนประชากรเฉลี่ยต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nAverage($layer, 'population / area')\n```\n\n",
|
|
265
265
|
"completion": {
|
|
266
266
|
"label": "Average",
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"kind": 3,
|
|
272
272
|
"documentation": {
|
|
273
273
|
"kind": "markdown",
|
|
274
|
-
"value": "
|
|
274
|
+
"value": "ส่งคืนค่าเฉลี่ยของฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะใช้ในการดำเนินการ\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุชื่อของฟิลด์ตัวเลข หรือนิพจน์ SQL92 ซึ่งจะทำการคำนวณสถิติจากอินพุตฟีเจอร์เซ็ต\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
"parametersInfo": {
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"kind": 3,
|
|
371
371
|
"documentation": {
|
|
372
372
|
"kind": "markdown",
|
|
373
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแจ้งกลับโดเมนที่กำหนดให้สำหรับฟิลด์ที่ระบุของ 'featureSet' ที่แจ้ง หาก 'featureSet' เป็นของคลาสที่มีประเภทย่อย จะมีการแจ้งกลับโดเมนที่จัดสรรให้กับประเภทย่อยดังกล่าว\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่ฟีเจอร์มีฟิลด์ที่ประกอบไปด้วยโดเมน\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของฟิลด์ข้อมูล (ไม่ใช่ชื่อสำรองของฟิลด์) ที่มีโดเมน\n- **subtype** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าลงรหัสสำหรับประเภทย่อยหากฟีเจอร์นี้รองรับประเภทย่อย\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **type**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทโดเมน - 'codeValue' หรือ 'range'\n- **name**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อโดเมน\n- **dataType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ปรเเภทข้อมูลของฟิลด์โดเมน สามารถเป็นหนึ่งในค่าต่อไปนี้ได้: `esriFieldTypeSmallInteger`, `esriFieldTypeInteger`, `esriFieldTypeSingle`, `esriFieldTypeDouble`, `esriFieldTypeString`, `esriFieldTypeDate`, `esriFieldTypeOID`, `esriFieldTypeGeometry`, `esriFieldTypeBlob`, `esriFieldTypeRaster`, `esriFieldTypeGUID`, `esriFieldTypeGlobalID`, `esriFieldTypeXML`\n- **min**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าขั้นต่ำของโดเมน\n- **max**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าสูงสุดของโดเมน\n- **codedValues**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)> - ใช้เฉพาะกับโดเมน 'codedValue' อะเรพจนานุกรมระบุค่าที่ถูกต้องสำหรับฟิลด์ แต่ละพจนานุกรมจะมีคุณสมบัติ `code` ซึ่งมีค่าฟิลด์จริงอยู่ และคุณสมบัติ `name` ที่มีคำอธิบายค่าแบบเป็นมิตรกับผู้ใช้ (เช่น `{ code: 1, name: \\\"pavement\\\" }`)"
|
|
373
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแจ้งกลับโดเมนที่กำหนดให้สำหรับฟิลด์ที่ระบุของ 'featureSet' ที่แจ้ง หาก 'featureSet' เป็นของคลาสที่มีประเภทย่อย จะมีการแจ้งกลับโดเมนที่จัดสรรให้กับประเภทย่อยดังกล่าว\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่ฟีเจอร์มีฟิลด์ที่ประกอบไปด้วยโดเมน\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของฟิลด์ข้อมูล (ไม่ใช่ชื่อสำรองของฟิลด์) ที่มีโดเมน\n- **subtype** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าลงรหัสสำหรับประเภทย่อยหากฟีเจอร์นี้รองรับประเภทย่อย\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **type**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทโดเมน - 'codeValue' หรือ 'range'\n- **name**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อโดเมน\n- **dataType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ปรเเภทข้อมูลของฟิลด์โดเมน สามารถเป็นหนึ่งในค่าต่อไปนี้ได้: `esriFieldTypeSmallInteger`, `esriFieldTypeInteger`, `esriFieldTypeBigInteger`, `esriFieldTypeSingle`, `esriFieldTypeDouble`, `esriFieldTypeString`, `esriFieldTypeDate`, `esriFieldTypeOID`, `esriFieldTypeGeometry`, `esriFieldTypeBlob`, `esriFieldTypeRaster`, `esriFieldTypeGUID`, `esriFieldTypeGlobalID`, `esriFieldTypeXML`\n- **min**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าขั้นต่ำของโดเมน\n- **max**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าสูงสุดของโดเมน\n- **codedValues**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)> - ใช้เฉพาะกับโดเมน 'codedValue' อะเรพจนานุกรมระบุค่าที่ถูกต้องสำหรับฟิลด์ แต่ละพจนานุกรมจะมีคุณสมบัติ `code` ซึ่งมีค่าฟิลด์จริงอยู่ และคุณสมบัติ `name` ที่มีคำอธิบายค่าแบบเป็นมิตรกับผู้ใช้ (เช่น `{ code: 1, name: \\\"pavement\\\" }`)"
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
376
|
"parametersInfo": {
|
|
@@ -611,8 +611,8 @@
|
|
|
611
611
|
"bundle": "data-access",
|
|
612
612
|
"sinceVersion": "1.24",
|
|
613
613
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
614
|
-
"description": "
|
|
615
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
614
|
+
"description": "ส่งคืนบันทึกที่เกี่ยวข้องสำหรับฟีเจอร์ที่กำหนด โดยอิงตามชื่อของคลาสความสัมพันธ์ที่กำหนด",
|
|
615
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนจำนวนของบันทึกที่เกี่ยวข้องกับการตรวจสอบโพล\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
|
|
616
616
|
"completion": {
|
|
617
617
|
"label": "FeatureSetByRelationshipClass",
|
|
618
618
|
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
"kind": 3,
|
|
623
623
|
"documentation": {
|
|
624
624
|
"kind": "markdown",
|
|
625
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
625
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนบันทึกที่เกี่ยวข้องสำหรับฟีเจอร์ที่กำหนด โดยอิงตามชื่อของคลาสความสัมพันธ์ที่กำหนด\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่จะดึงบันทึกข้อมูลที่เกี่ยวข้อง\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของคลาสความสัมพันธ์ตามที่กำหนดไว้ในแหล่งข้อมูล\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - ฟิลด์ที่จะส่งคืนใน FeatureSet รายการนี้จะรวมฟิลด์จากทั้งตารางความสัมพันธ์และฟีเจอร์อินพุท\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะส่งคืนรูปทรงเรขาคณิตของฟีเจอร์ผลลัพธ์หรือไม่\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
626
626
|
}
|
|
627
627
|
},
|
|
628
628
|
"parametersInfo": {
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
"kind": 3,
|
|
648
648
|
"documentation": {
|
|
649
649
|
"kind": "markdown",
|
|
650
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนบันทึกข้อมูลที่เกี่ยวข้องของฟีเจอร์ที่กำหนด ในรูปแบบ FeatureSet\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) -
|
|
650
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนบันทึกข้อมูลที่เกี่ยวข้องของฟีเจอร์ที่กำหนด ในรูปแบบ FeatureSet\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่จะดึงบันทึกข้อมูลที่เกี่ยวข้องจาก\n- **relationshipName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของความสัมพันธ์ตามฟีเจอร์เซอร์วิสที่เชื่อมโยงกับฟีเจอร์ที่กำหนด\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - ฟิลด์ที่จะส่งคืนใน FeatureSet รายการนี้จะรวมฟิลด์จากทั้งตารางความสัมพันธ์และฟีเจอร์อินพุท\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะส่งคืนรูปทรงเรขาคณิตของฟีเจอร์ผลลัพธ์หรือไม่\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
651
651
|
}
|
|
652
652
|
},
|
|
653
653
|
"parametersInfo": {
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
"bundle": "data-access",
|
|
711
711
|
"sinceVersion": "1.12",
|
|
712
712
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#gdbversion",
|
|
713
|
-
"description": "ส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า
|
|
713
|
+
"description": "ส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า",
|
|
714
714
|
"examples": "\n##### ตัวอย่าง\n\nส่งคืนเวอร์ชันฐานข้อมูลภูมิศาสตร์ของ FeatureSet ที่กำหนด\n\n```arcade\nGdbVersion($layer)\n```\n\n",
|
|
715
715
|
"completion": {
|
|
716
716
|
"label": "GdbVersion",
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
"kind": 3,
|
|
722
722
|
"documentation": {
|
|
723
723
|
"kind": "markdown",
|
|
724
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้
|
|
724
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะส่งคืนเวอร์ชันฐานข้อมูลภูมิศาสตร์ปัจจุบัน\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
725
725
|
}
|
|
726
726
|
},
|
|
727
727
|
"parametersInfo": {
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
"bundle": "data-access",
|
|
938
938
|
"sinceVersion": "1.7",
|
|
939
939
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#lengthgeodetic",
|
|
940
|
-
"description": "ส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด
|
|
940
|
+
"description": "ส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย แต่จะรองรับเฉพาะรูปทรงเรขาคณิตที่มีระบบอ้างอิงเชิงพื้นที่ Web Mercator (wkid 3857) หรือ WGS 84 (wkid 4326) เท่านั้น\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
941
941
|
"examples": "\n##### ตัวอย่าง\n\nส่งคืนความยาวจีโอเดติกของชั้นข้อมูลในรูปแบบเมตร\n\n```arcade\nLengthGeodetic($layer, 'meters')\n```\n\n",
|
|
942
942
|
"completion": {
|
|
943
943
|
"label": "LengthGeodetic",
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
"kind": 3,
|
|
949
949
|
"documentation": {
|
|
950
950
|
"kind": "markdown",
|
|
951
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด
|
|
951
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย แต่จะรองรับเฉพาะรูปทรงเรขาคณิตที่มีระบบอ้างอิงเชิงพื้นที่ Web Mercator (wkid 3857) หรือ WGS 84 (wkid 4326) เท่านั้น\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะคำนวณความยาวจีโอเดสิค\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล \nค่าที่เป็นไปได้: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
954
|
"parametersInfo": {
|
|
@@ -961,7 +961,7 @@
|
|
|
961
961
|
"name": "max",
|
|
962
962
|
"bundle": "data-access",
|
|
963
963
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#max",
|
|
964
|
-
"description": "
|
|
964
|
+
"description": "ส่งคืนค่าสูงสุดของฟิลด์ตัวเลขที่กำหนดจากฟีเจอร์เซ็ต",
|
|
965
965
|
"examples": "\n##### ตัวอย่าง\n\nพิมพ์ค่าสูงสุดของฟิลด์จำนวนประชากร สำหรับฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMax($layer, 'population')\n```\n\nคำนวณจำนวนประชากรสูงสุดต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMax($layer, 'population / area')\n```\n\n",
|
|
966
966
|
"completion": {
|
|
967
967
|
"label": "Max",
|
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
"kind": 3,
|
|
973
973
|
"documentation": {
|
|
974
974
|
"kind": "markdown",
|
|
975
|
-
"value": "
|
|
975
|
+
"value": "ส่งคืนค่าสูงสุดของฟิลด์ตัวเลขที่กำหนดจากฟีเจอร์เซ็ต\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะใช้ในการดำเนินการ\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุชื่อของฟิลด์ตัวเลข หรือนิพจน์ SQL92 ซึ่งจะทำการคำนวณสถิติจากอินพุตฟีเจอร์เซ็ต\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
976
976
|
}
|
|
977
977
|
},
|
|
978
978
|
"parametersInfo": {
|
|
@@ -986,7 +986,7 @@
|
|
|
986
986
|
"bundle": "data-access",
|
|
987
987
|
"sinceVersion": "1.1",
|
|
988
988
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#mean",
|
|
989
|
-
"description": "
|
|
989
|
+
"description": "ส่งคืนค่าเฉลี่ยของฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต",
|
|
990
990
|
"examples": "\n##### ตัวอย่าง\n\nคำนวณส่วนต่างระหว่างจำนวนประชากรของฟีเจอร์ และค่ามีนจำนวนประชากรของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\n$feature.population - Mean($layer, 'population')\n```\n\nคำนวณค่ามีนจำนวนประชากรต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMean($layer, 'population / area')\n```\n\n",
|
|
991
991
|
"completion": {
|
|
992
992
|
"label": "Mean",
|
|
@@ -997,7 +997,7 @@
|
|
|
997
997
|
"kind": 3,
|
|
998
998
|
"documentation": {
|
|
999
999
|
"kind": "markdown",
|
|
1000
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n
|
|
1000
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.1](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- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุชื่อของฟิลด์ตัวเลข หรือนิพจน์ SQL92 ซึ่งจะทำการคำนวณสถิติจากอินพุตฟีเจอร์เซ็ต\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1001
1001
|
}
|
|
1002
1002
|
},
|
|
1003
1003
|
"parametersInfo": {
|
|
@@ -1010,7 +1010,7 @@
|
|
|
1010
1010
|
"name": "min",
|
|
1011
1011
|
"bundle": "data-access",
|
|
1012
1012
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#min",
|
|
1013
|
-
"description": "
|
|
1013
|
+
"description": "ส่งคืนค่าต่ำสุดของฟิลด์ตัวเลขที่กำหนดจากฟีเจอร์เซ็ต",
|
|
1014
1014
|
"examples": "\n##### ตัวอย่าง\n\nพิมพ์ค่าต่ำสุดของฟิลด์จำนวนประชากร สำหรับฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMin($layer, 'population')\n```\n\nส่งคืนจำนวนประชากรต่ำสุดต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMin($layer, 'population / area')\n```\n\n",
|
|
1015
1015
|
"completion": {
|
|
1016
1016
|
"label": "Min",
|
|
@@ -1021,7 +1021,7 @@
|
|
|
1021
1021
|
"kind": 3,
|
|
1022
1022
|
"documentation": {
|
|
1023
1023
|
"kind": "markdown",
|
|
1024
|
-
"value": "
|
|
1024
|
+
"value": "ส่งคืนค่าต่ำสุดของฟิลด์ตัวเลขที่กำหนดจากฟีเจอร์เซ็ต\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะใช้ในการดำเนินการ\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุชื่อของฟิลด์ตัวเลข หรือนิพจน์ SQL92 ซึ่งจะทำการคำนวณสถิติจากอินพุตฟีเจอร์เซ็ต\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1025
1025
|
}
|
|
1026
1026
|
},
|
|
1027
1027
|
"parametersInfo": {
|
|
@@ -1109,7 +1109,7 @@
|
|
|
1109
1109
|
"name": "stdev",
|
|
1110
1110
|
"bundle": "data-access",
|
|
1111
1111
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#stdev",
|
|
1112
|
-
"description": "
|
|
1112
|
+
"description": "ส่งคืนส่วนเบี่ยงเบนมาตรฐานสำหรับค่าจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต",
|
|
1113
1113
|
"examples": "\n##### ตัวอย่าง\n\nพิมพ์ส่วนเบี่ยงเบนมาตรฐานของค่าจากฟิลด์ 'population'\n\n```arcade\nStdev($layer, 'population')\n```\n\nคำนวณส่วนเบี่ยงเบนมาตรฐานของประชากรต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nStdev($layer, 'population / area')\n```\n\n",
|
|
1114
1114
|
"completion": {
|
|
1115
1115
|
"label": "Stdev",
|
|
@@ -1120,7 +1120,7 @@
|
|
|
1120
1120
|
"kind": 3,
|
|
1121
1121
|
"documentation": {
|
|
1122
1122
|
"kind": "markdown",
|
|
1123
|
-
"value": "
|
|
1123
|
+
"value": "ส่งคืนส่วนเบี่ยงเบนมาตรฐานสำหรับค่าจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะใช้ในการดำเนินการ\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุชื่อของฟิลด์ตัวเลข หรือนิพจน์ SQL92 ซึ่งจะทำการคำนวณสถิติจากอินพุตฟีเจอร์เซ็ต\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
1126
1126
|
"parametersInfo": {
|
|
@@ -1158,7 +1158,7 @@
|
|
|
1158
1158
|
"name": "sum",
|
|
1159
1159
|
"bundle": "data-access",
|
|
1160
1160
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#sum",
|
|
1161
|
-
"description": "
|
|
1161
|
+
"description": "ส่งคืนผลรวมของค่าที่ส่งคืนจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต",
|
|
1162
1162
|
"examples": "\n##### ตัวอย่าง\n\nคำนวณจำนวนประชากรของฟีเจอร์ปัจจุบันในรูปแบบ % ของจำนวนประชากรรวมของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\n( $feature.population / Sum($layer, 'population') ) * 100\n```\n\nคำนวณจำนวนรวมของโหวตที่ลงคะแนนในการเลือกสำหรับชุดข้อมูลทั้งหมด\n\n```arcade\nSum($layer, 'democrat + republican + other')\n```\n\n",
|
|
1163
1163
|
"completion": {
|
|
1164
1164
|
"label": "Sum",
|
|
@@ -1169,7 +1169,7 @@
|
|
|
1169
1169
|
"kind": 3,
|
|
1170
1170
|
"documentation": {
|
|
1171
1171
|
"kind": "markdown",
|
|
1172
|
-
"value": "
|
|
1172
|
+
"value": "ส่งคืนผลรวมของค่าที่ส่งคืนจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะใช้ในการดำเนินการ\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุชื่อของฟิลด์ตัวเลข หรือนิพจน์ SQL92 ซึ่งจะทำการคำนวณสถิติจากอินพุตฟีเจอร์เซ็ต\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1173
1173
|
}
|
|
1174
1174
|
},
|
|
1175
1175
|
"parametersInfo": {
|
|
@@ -1232,7 +1232,7 @@
|
|
|
1232
1232
|
"name": "variance",
|
|
1233
1233
|
"bundle": "data-access",
|
|
1234
1234
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#variance",
|
|
1235
|
-
"description": "
|
|
1235
|
+
"description": "ส่งคืนความแปรปรวนของค่าจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต",
|
|
1236
1236
|
"examples": "\n##### ตัวอย่าง\n\nพิมพ์ผลต่างของฟิลด์จำนวนประชากรในชั้นข้อมูลที่กำหนด\n\n```arcade\nVariance($layer, 'population')\n```\n\nคำนวณผลต่างของจำนวนประชากรต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nVariance($layer, 'population / area')\n```\n\n",
|
|
1237
1237
|
"completion": {
|
|
1238
1238
|
"label": "Variance",
|
|
@@ -1243,7 +1243,7 @@
|
|
|
1243
1243
|
"kind": 3,
|
|
1244
1244
|
"documentation": {
|
|
1245
1245
|
"kind": "markdown",
|
|
1246
|
-
"value": "
|
|
1246
|
+
"value": "ส่งคืนความแปรปรวนของค่าจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะใช้ในการดำเนินการ\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุชื่อของฟิลด์ตัวเลข หรือนิพจน์ SQL92 ซึ่งจะทำการคำนวณสถิติจากอินพุตฟีเจอร์เซ็ต\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1247
1247
|
}
|
|
1248
1248
|
},
|
|
1249
1249
|
"parametersInfo": {
|
|
@@ -1431,7 +1431,7 @@
|
|
|
1431
1431
|
"kind": 3,
|
|
1432
1432
|
"documentation": {
|
|
1433
1433
|
"kind": "markdown",
|
|
1434
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nให้ข้อมูลเกี่ยวกับบริบทและสภาพแวดล้อมที่จะดำเนินการนิพจน์ Arcade\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nส่งคืนพจนานุกรมที่มีคุณสมบัติด้านล่าง
|
|
1434
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nให้ข้อมูลเกี่ยวกับบริบทและสภาพแวดล้อมที่จะดำเนินการนิพจน์ Arcade\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nส่งคืนพจนานุกรมที่มีคุณสมบัติด้านล่าง คุณสมบัติที่ส่งคืนอาจแตกต่างกันไป โดยขึ้นอยู่กับว่าคุณรันนิพจน์ Arcade จากที่ใด เราจึงแนะนำให้ใช้ฟังก์ชัน `HasValue` เพื่อตรวจสอบให้แน่ใจว่ามีคุณสมบัติสภาพแวดล้อมที่ต้องการอยู่\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - เวอร์ชันของ Arcade ดูข้อมูลเพิ่มเติมเกี่ยวกับการกำหนดเวอร์ชันได้จากเมทริกซ์เวอร์ชัน Arcade\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - เอนจินที่ดำเนินการนิพจน์ Arcade ค่าที่เป็นไปได้: `web`, `native`, `jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - เวอร์ชันของเอนจินที่ดำเนินการนิพจน์ Arcade ดูข้อมูลเพิ่มเติมเกี่ยวกับการกำหนดเวอร์ชันได้จากเมทริกซ์เวอร์ชัน Arcade\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - แอปพลิเคชันที่จะรันนิพจน์ Arcade ใน การตั้งค่านี้จะขึ้นอยู่กับผู้พัฒนาแอปพลิเคชัน ดังนั้น คุณสมบัตินี้อาจว่างเปล่า โดยขึ้นอยู่กับแอปที่ดำเนินการนิพจน์\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ภาษาของไคลเอนต์หรือระบบ\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของบริบท Arcade\n\n - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของการอ้างอิงเชิงพื้นที่\n- **timeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _ตั้งแต่ 1.24_ โซนเวลาเริ่มต้นของบริบทการดำเนินการของนิพจน์ จะใช้ส่วนนี้ขณะสร้างและแสดงค่าวันที่ ในกรณีที่ไม่ได้ระบุโซนเวลาไว้เป็นอื่น"
|
|
1435
1435
|
}
|
|
1436
1436
|
},
|
|
1437
1437
|
"parametersInfo": {
|
|
@@ -1867,7 +1867,7 @@
|
|
|
1867
1867
|
"kind": 3,
|
|
1868
1868
|
"documentation": {
|
|
1869
1869
|
"kind": "markdown",
|
|
1870
|
-
"value": "รวมค่าเข้าด้วยกัน แล้วส่งคืนค่าข้อความ\n\n**พารามิเตอร์**\n\n- **values** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - อาร์เรย์ของค่าข้อความที่จะรวม\n- **separator** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ตัวคั่นที่ใช้ในการรวม หากพารามิเตอร์ `values` เป็นอาร์เรย์ หรือข้อความที่จะรวม หากมีการกำหนดค่าเดี่ยวสำหรับพารามิเตอร์แรก จะเว้นว่างหากไม่ได้กำหนด\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) -
|
|
1870
|
+
"value": "รวมค่าเข้าด้วยกัน แล้วส่งคืนค่าข้อความ\n\n**พารามิเตอร์**\n\n- **values** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - อาร์เรย์ของค่าข้อความที่จะรวม\n- **separator** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ตัวคั่นที่ใช้ในการรวม หากพารามิเตอร์ `values` เป็นอาร์เรย์ หรือข้อความที่จะรวม หากมีการกำหนดค่าเดี่ยวสำหรับพารามิเตอร์แรก จะเว้นว่างหากไม่ได้กำหนด\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - อักขระจัดรูปแบบพิเศษสำหรับวันที่หรือตัวเลข พารามิเตอร์นี้จะพร้อมใช้งานใน Arcade เวอร์ชัน 1.3 และใหม่กว่า \nค่าที่เป็นไปได้: \n - `0`: ตัวเลข \n - `#`: ตัวเลข ตัดศูนย์ที่นำหน้าและต่อท้ายออก \n - `D`: วันของเดือนแบบไม่แพ็ด (1 - 31) \n - `DD`: วันของเดือน แบบแพ็ด (01 - 31) \n - `DDD`: วันของปีแบบเลขลำดับ (1 - 365) \n - `d`: วันของสัปดาห์ (1 - 7) \n - `ddd`: วันของสัปดาห์แบบตัวย่อ (เช่น Mon) \n - `dddd`: วันของสัปดาห์แบบเต็ม (เช่น Monday) \n - `M`: ตัวเลขเดือน (1 - 12) \n - `MM`: ตัวเลขเดือน, แพ็ด (01 - 12) \n - `MMM`: ชื่อเดือนแบบตัวย่อ (เช่น Jan) \n - `MMMM`: ชื่อเดือนแบบเต็ม (เช่น January) \n - `Y`: ปีแบบเต็ม \n - `YY`: ปีแบบเลขสองตัว \n - `h`: ชั่วโมงแบบพลเรือน ไม่แพ็ด (0 - 12) \n - `hh`: ชั่วโมงแบบพลเรือน แพ็ด (00 - 12) \n - `H`: ชั่วโมงแบบทหาร ไม่แพ็ด (0 - 24) \n - `HH`: ชั่วโมงแบบทหาร แพ็ด (00 - 24) \n - `m`: นาที ไม่แพ็ด (0 - 59) \n - `mm`: นาที แพ็ด (00 - 59) \n - `s`: วินาที ไม่แพ็ด (0 - 59) \n - `ss`: วินาที แพ็ด (00 - 59) \n - `SSS`: มิลลิวินาที, Padded (000 - 999) \n - `A`: AM/PM \n - `Z`: ออฟเซ็ตโซนเวลาในชั่วโมงแบบแคบ +/- UTC (เช่น `-7` หรือ `+11`) \n - `ZZ`: ออฟเซ็นโซนเวลาในชั่วโมง +/- UTC (เช่น `-07:00` หรือ `+11:00`) \n - `ZZZ`: ออฟเซ็ตโซนเวลาในชั่วโมงแบบย่อ +/- UTC (เช่น `-0700` หรือ `+1100`) \n - `ZZZZ`: โซนเวลาแบบชื่อย่อ (เช่น `EST`) \n - `ZZZZZ`: โซนเวลาแบบชื่อเต็ม (เช่น `Eastern Standard Time`) \n\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
1871
1871
|
}
|
|
1872
1872
|
},
|
|
1873
1873
|
"parametersInfo": {
|
|
@@ -2196,8 +2196,8 @@
|
|
|
2196
2196
|
"name": "text",
|
|
2197
2197
|
"bundle": "core",
|
|
2198
2198
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
2199
|
-
"description": "
|
|
2200
|
-
"examples": "\n##### ตัวอย่าง\n\nเพิ่มตัวเลขทางด้านซ้ายของตัวเลข\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nลดตัวเลขทางด้านซ้ายของตัวเลข\n\n```arcade\nText(123, '00') // '23'\n```\n\nจัดกลุ่มจำนวนโดยเครื่องหมายคั่นหลักพัน\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nตัดตัวเลขเหลือทศนิยมสองตำแหน่ง\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nจัดรูปแบบเป็นสกุลเงิน\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nตัดตัวเลขเหลือทศนิยมสองตำแหน่ง\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nรักษาหลักทศนิยมที่สำคัญและจัดกลุ่มจำนวนโดยเครื่องหมายคั่นหลักพัน\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nจัดรูปแบบตัวเลข และรูปแบบในเชิงบวก / ลบ – ถ้ามีเครื่องหมายลบ โดยทำหน้าที่เพียงเพื่อระบุคำนำหน้าเป็นลบไว้ข้างหน้า และข้างหลัง\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nคูณด้วย 100 และจัดรูปแบบเป็นเปอร์เซ็นต์\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nจัดรูปแบบวันที่และเวลาในขณะนี้ เช่น 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n
|
|
2199
|
+
"description": "แปลงค่าใดๆ เป็นค่าข้อความ สามารถระบุพารามิเตอร์ `format` ตัวเลือกเสริม เพื่ออนุญาตการจัดรูปแบบอินพุทข้อมูลวันที่และตัวเลขได้ ส่งคืน `null` เมื่อไม่สามารถหาการแปลงข้อความที่เทียบเท่ากันได้",
|
|
2200
|
+
"examples": "\n##### ตัวอย่าง\n\nเพิ่มตัวเลขทางด้านซ้ายของตัวเลข\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nลดตัวเลขทางด้านซ้ายของตัวเลข\n\n```arcade\nText(123, '00') // '23'\n```\n\nจัดกลุ่มจำนวนโดยเครื่องหมายคั่นหลักพัน\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nตัดตัวเลขเหลือทศนิยมสองตำแหน่ง\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nจัดรูปแบบเป็นสกุลเงิน\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nตัดตัวเลขเหลือทศนิยมสองตำแหน่ง\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nรักษาหลักทศนิยมที่สำคัญและจัดกลุ่มจำนวนโดยเครื่องหมายคั่นหลักพัน\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nจัดรูปแบบตัวเลข และรูปแบบในเชิงบวก / ลบ – ถ้ามีเครื่องหมายลบ โดยทำหน้าที่เพียงเพื่อระบุคำนำหน้าเป็นลบไว้ข้างหน้า และข้างหลัง\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nคูณด้วย 100 และจัดรูปแบบเป็นเปอร์เซ็นต์\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nจัดรูปแบบวันที่และเวลาในขณะนี้ เช่น 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nรูปแบบวันที่และเวลาพร้อมโซนเวลา\n\n```arcade\nText(startDate, 'ddd, MMM D, Y h:mm:ss A ZZZZ')\n// returns Thu, Sep 14, 2023 10:04:49 AM PDT\n```\n\n",
|
|
2201
2201
|
"completion": {
|
|
2202
2202
|
"label": "Text",
|
|
2203
2203
|
"detail": "Text(value, format?) -> Text",
|
|
@@ -2207,7 +2207,7 @@
|
|
|
2207
2207
|
"kind": 3,
|
|
2208
2208
|
"documentation": {
|
|
2209
2209
|
"kind": "markdown",
|
|
2210
|
-
"value": "
|
|
2210
|
+
"value": "แปลงค่าใดๆ เป็นค่าข้อความ สามารถระบุพารามิเตอร์ `format` ตัวเลือกเสริม เพื่ออนุญาตการจัดรูปแบบอินพุทข้อมูลวันที่และตัวเลขได้ ส่งคืน `null` เมื่อไม่สามารถหาการแปลงข้อความที่เทียบเท่ากันได้\n\n**พารามิเตอร์**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่า (เช่น วันที่ ตัวเลข หรือประเภทข้อมูลอื่น) ที่จะแปลงเป็นข้อความ\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - อักขระพิเศษสำหรับการจัดรูปแบบวันที่หรือตัวเลข \nค่าที่เป็นไปได้: \n - `0`: ตัวเลข \n - `#`: ตัวเลข ตัดศูนย์ที่นำหน้าและต่อท้ายออก \n - `D`: วันของเดือนแบบไม่แพ็ด (1 - 31) \n - `DD`: วันของเดือน แบบแพ็ด (01 - 31) \n - `DDD`: วันของปีแบบเลขลำดับ (1 - 365) \n - `d`: วันของสัปดาห์ (1 - 7) \n - `ddd`: วันของสัปดาห์แบบตัวย่อ (เช่น Mon) \n - `dddd`: วันของสัปดาห์แบบเต็ม (เช่น Monday) \n - `M`: ตัวเลขเดือน (1 - 12) \n - `MM`: ตัวเลขเดือน, แพ็ด (01 - 12) \n - `MMM`: ชื่อเดือนแบบตัวย่อ (เช่น Jan) \n - `MMMM`: ชื่อเดือนแบบเต็ม (เช่น January) \n - `Y`: ปีแบบเต็ม \n - `YY`: ปีแบบเลขสองตัว \n - `h`: ชั่วโมงแบบพลเรือน ไม่แพ็ด (0 - 12) \n - `hh`: ชั่วโมงแบบพลเรือน แพ็ด (00 - 12) \n - `H`: ชั่วโมงแบบทหาร ไม่แพ็ด (0 - 24) \n - `HH`: ชั่วโมงแบบทหาร แพ็ด (00 - 24) \n - `m`: นาที ไม่แพ็ด (0 - 59) \n - `mm`: นาที แพ็ด (00 - 59) \n - `s`: วินาที ไม่แพ็ด (0 - 59) \n - `ss`: วินาที แพ็ด (00 - 59) \n - `SSS`: มิลลิวินาที, Padded (000 - 999) \n - `A`: AM/PM \n - `Z`: ออฟเซ็ตโซนเวลาในชั่วโมงแบบแคบ +/- UTC (เช่น `-7` หรือ `+11`) \n - `ZZ`: ออฟเซ็นโซนเวลาในชั่วโมง +/- UTC (เช่น `-07:00` หรือ `+11:00`) \n - `ZZZ`: ออฟเซ็ตโซนเวลาในชั่วโมงแบบย่อ +/- UTC (เช่น `-0700` หรือ `+1100`) \n - `ZZZZ`: โซนเวลาแบบชื่อย่อ (เช่น `EST`) \n - `ZZZZZ`: โซนเวลาแบบชื่อเต็ม (เช่น `Eastern Standard Time`) \n\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
2211
2211
|
}
|
|
2212
2212
|
},
|
|
2213
2213
|
"parametersInfo": {
|
|
@@ -2677,7 +2677,7 @@
|
|
|
2677
2677
|
"kind": 3,
|
|
2678
2678
|
"documentation": {
|
|
2679
2679
|
"kind": "markdown",
|
|
2680
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าแฮชโค้ดของตัวแปรที่กำหนด\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) \\| [Time](https://developers.arcgis.com/arcade/guide/types/#time) -
|
|
2680
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าแฮชโค้ดของตัวแปรที่กำหนด\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) \\| [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ตัวแปรที่จะแฮช เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly และเวลา\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2681
2681
|
}
|
|
2682
2682
|
},
|
|
2683
2683
|
"parametersInfo": {
|
|
@@ -2938,7 +2938,7 @@
|
|
|
2938
2938
|
"name": "round",
|
|
2939
2939
|
"bundle": "core",
|
|
2940
2940
|
"link": "https://developers.arcgis.com/arcade/function-reference/math_functions/#round",
|
|
2941
|
-
"description": "ให้ค่านำเข้าปัดเศษเป็นจำนวนทศนิยมที่กำหนด \n_หมายเหตุ:
|
|
2941
|
+
"description": "ให้ค่านำเข้าปัดเศษเป็นจำนวนทศนิยมที่กำหนด \n_หมายเหตุ: หากคุณต้องการจัดรูปแบบค่าสำหรับการแสดงผลในป้ายกำกับหรือป็อปอัพ ให้ใช้ฟังก์ชัน `Text()` _",
|
|
2942
2942
|
"examples": "\n##### ตัวอย่าง\n\nพิมพ์ 2316.26\n\n```arcade\nRound(2316.2562, 2)\n```\n\n",
|
|
2943
2943
|
"completion": {
|
|
2944
2944
|
"label": "Round",
|
|
@@ -2949,7 +2949,7 @@
|
|
|
2949
2949
|
"kind": 3,
|
|
2950
2950
|
"documentation": {
|
|
2951
2951
|
"kind": "markdown",
|
|
2952
|
-
"value": "ให้ค่านำเข้าปัดเศษเป็นจำนวนทศนิยมที่กำหนด \n_หมายเหตุ:
|
|
2952
|
+
"value": "ให้ค่านำเข้าปัดเศษเป็นจำนวนทศนิยมที่กำหนด \n_หมายเหตุ: หากคุณต้องการจัดรูปแบบค่าสำหรับการแสดงผลในป้ายกำกับหรือป็อปอัพ ให้ใช้ฟังก์ชัน `Text()` _\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนที่จะปัดเศษ\n- **numPlaces** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนจุดทศนิยมที่จะปัดเศษค่าตัวเลข ค่าเริ่มต้นคือ `0` เลขศูนย์ที่ต่อท้ายจะถูกตัดออก\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
2953
2953
|
}
|
|
2954
2954
|
},
|
|
2955
2955
|
"parametersInfo": {
|
|
@@ -3408,7 +3408,7 @@
|
|
|
3408
3408
|
"kind": 3,
|
|
3409
3409
|
"documentation": {
|
|
3410
3410
|
"kind": "markdown",
|
|
3411
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.11](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**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **type**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทโดเมน - 'codeValue' หรือ 'range'\n- **name**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อโดเมน\n- **dataType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ปรเเภทข้อมูลของฟิลด์โดเมน สามารถเป็นหนึ่งในค่าต่อไปนี้ได้: `esriFieldTypeSmallInteger`, `esriFieldTypeInteger`, `esriFieldTypeSingle`, `esriFieldTypeDouble`, `esriFieldTypeString`, `esriFieldTypeDate`, `esriFieldTypeOID`, `esriFieldTypeGeometry`, `esriFieldTypeBlob`, `esriFieldTypeRaster`, `esriFieldTypeGUID`, `esriFieldTypeGlobalID`, `esriFieldTypeXML`\n- **codedValues**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)> - ใช้เฉพาะกับโดเมน 'codedValue' อะเรพจนานุกรมระบุค่าที่ถูกต้องสำหรับฟิลด์ แต่ละพจนานุกรมจะมีคุณสมบัติ `code` ซึ่งมีค่าฟิลด์จริงอยู่ และคุณสมบัติ `name` ที่มีคำอธิบายค่าแบบเป็นมิตรกับผู้ใช้ (เช่น `{ code: 1, name: \\\"pavement\\\" }`)\n- **min**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าขั้นต่ำของโดเมน\n- **max**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าสูงสุดของโดเมน"
|
|
3411
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.11](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**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **type**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทโดเมน - 'codeValue' หรือ 'range'\n- **name**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อโดเมน\n- **dataType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ปรเเภทข้อมูลของฟิลด์โดเมน สามารถเป็นหนึ่งในค่าต่อไปนี้ได้: `esriFieldTypeSmallInteger`, `esriFieldTypeInteger`, `esriFieldTypeBigInteger`, `esriFieldTypeSingle`, `esriFieldTypeDouble`, `esriFieldTypeString`, `esriFieldTypeDate`, `esriFieldTypeOID`, `esriFieldTypeGeometry`, `esriFieldTypeBlob`, `esriFieldTypeRaster`, `esriFieldTypeGUID`, `esriFieldTypeGlobalID`, `esriFieldTypeXML`\n- **codedValues**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)> - ใช้เฉพาะกับโดเมน 'codedValue' อะเรพจนานุกรมระบุค่าที่ถูกต้องสำหรับฟิลด์ แต่ละพจนานุกรมจะมีคุณสมบัติ `code` ซึ่งมีค่าฟิลด์จริงอยู่ และคุณสมบัติ `name` ที่มีคำอธิบายค่าแบบเป็นมิตรกับผู้ใช้ (เช่น `{ code: 1, name: \\\"pavement\\\" }`)\n- **min**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าขั้นต่ำของโดเมน\n- **max**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้เฉพาะกับโดเมน 'range' ค่าสูงสุดของโดเมน"
|
|
3412
3412
|
}
|
|
3413
3413
|
},
|
|
3414
3414
|
"parametersInfo": {
|
|
@@ -3621,7 +3621,7 @@
|
|
|
3621
3621
|
"bundle": "core",
|
|
3622
3622
|
"sinceVersion": "1.12",
|
|
3623
3623
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#gdbversion",
|
|
3624
|
-
"description": "ส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า
|
|
3624
|
+
"description": "ส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า",
|
|
3625
3625
|
"examples": "\n##### ตัวอย่าง\n\nส่งคืนเวอร์ชันฐานข้อมูลภูมิศาสตร์ของฟีเจอร์ทีกำหนด\n\n```arcade\nGdbVersion($feature)\n```\n\n",
|
|
3626
3626
|
"completion": {
|
|
3627
3627
|
"label": "GdbVersion",
|
|
@@ -3632,7 +3632,7 @@
|
|
|
3632
3632
|
"kind": 3,
|
|
3633
3633
|
"documentation": {
|
|
3634
3634
|
"kind": "markdown",
|
|
3635
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้
|
|
3635
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Feature ที่จะส่งคืนเวอร์ชันฐานข้อมูลภูมิศาสตร์ปัจจุบันของชั้นข้อมูลที่เชื่อมโยง\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
3636
3636
|
}
|
|
3637
3637
|
},
|
|
3638
3638
|
"parametersInfo": {
|
|
@@ -3931,7 +3931,7 @@
|
|
|
3931
3931
|
"bundle": "geometry",
|
|
3932
3932
|
"sinceVersion": "1.3",
|
|
3933
3933
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#buffergeodetic",
|
|
3934
|
-
"description": "ส่งคืนบัฟเฟอร์สัณฐานโลกตามระยะทางที่กำหนดรอบรูปทรงเรขาคณิตอินพุต
|
|
3934
|
+
"description": "ส่งคืนบัฟเฟอร์สัณฐานโลกตามระยะทางที่กำหนดรอบรูปทรงเรขาคณิตอินพุต นี่คือการวัดแบบจีโอเดสิค ซึ่งจะคำนวณระยะทางบนรูปอีลิปซอยด์ แต่จะรองรับเฉพาะรูปทรงเรขาคณิตที่มีระบบอ้างอิงเชิงพื้นที่ Web Mercator (wkid 3857) หรือ WGS 84 (wkid 4326) เท่านั้น\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
3935
3935
|
"examples": "\n##### ตัวอย่าง\n\nแสดงรูปหลายเหลี่ยมที่หมายถึงบัฟเฟอร์ 1/2-ไมล์ รอบรูปทรงเรขาคณิตที่นำเข้า\n\n```arcade\nBufferGeodetic($feature, 0.5, 'miles')\n```\n\n",
|
|
3936
3936
|
"completion": {
|
|
3937
3937
|
"label": "BufferGeodetic",
|
|
@@ -3942,7 +3942,7 @@
|
|
|
3942
3942
|
"kind": 3,
|
|
3943
3943
|
"documentation": {
|
|
3944
3944
|
"kind": "markdown",
|
|
3945
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนบัฟเฟอร์สัณฐานโลกตามระยะทางที่กำหนดรอบรูปทรงเรขาคณิตอินพุต
|
|
3945
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนบัฟเฟอร์สัณฐานโลกตามระยะทางที่กำหนดรอบรูปทรงเรขาคณิตอินพุต นี่คือการวัดแบบจีโอเดสิค ซึ่งจะคำนวณระยะทางบนรูปอีลิปซอยด์ แต่จะรองรับเฉพาะรูปทรงเรขาคณิตที่มีระบบอ้างอิงเชิงพื้นที่ Web Mercator (wkid 3857) หรือ WGS 84 (wkid 4326) เท่านั้น\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- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางที่จะบัฟเฟอร์จากเรขาคณิต\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของบัฟเฟอร์ `ระยะทาง` สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล \nค่าที่เป็นไปได้: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`\n\n**ส่งคืนค่า**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)"
|
|
3946
3946
|
}
|
|
3947
3947
|
},
|
|
3948
3948
|
"parametersInfo": {
|
|
@@ -4183,7 +4183,7 @@
|
|
|
4183
4183
|
"bundle": "geometry",
|
|
4184
4184
|
"sinceVersion": "1.11",
|
|
4185
4185
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#densifygeodetic",
|
|
4186
|
-
"description": "
|
|
4186
|
+
"description": "สร้างจีโอเดสิคระหว่างแต่ละเวอรเท็กซ์ของเรขาคณิตอินพุท และเพิ่มความหนาแน่นเรขาคณิตเอาท์พุท ด้วยเวอร์เท็กซ์เพิ่มเติม เพื่อสร้างเซกเมนต์ที่ไม่ยาวเกินช่วงที่กำหนด\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**",
|
|
4187
4187
|
"examples": "\n##### ตัวอย่าง\n\nส่งคืนเรขาคณิตหนาแน่นที่ความยาวเซกเมนต์สูงสุด 10000\n\n```arcade\nDensifyGeodetic($feature, 10000, 'meters');\n```\n\n",
|
|
4188
4188
|
"completion": {
|
|
4189
4189
|
"label": "DensifyGeodetic",
|
|
@@ -4194,7 +4194,7 @@
|
|
|
4194
4194
|
"kind": 3,
|
|
4195
4195
|
"documentation": {
|
|
4196
4196
|
"kind": "markdown",
|
|
4197
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n
|
|
4197
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างจีโอเดสิคระหว่างแต่ละเวอรเท็กซ์ของเรขาคณิตอินพุท และเพิ่มความหนาแน่นเรขาคณิตเอาท์พุท ด้วยเวอร์เท็กซ์เพิ่มเติม เพื่อสร้างเซกเมนต์ที่ไม่ยาวเกินช่วงที่กำหนด\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเชิงเรขาคณิตขาเข้าที่จะอัดแน่น\n- **maxSegmentLength**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ความยาวส่วนย่อยสูงสุดที่อนุญาต จะต้องมีค่าเป็นบวก\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดสำหรับ maxSegmentLength ค่าเริ่มต้นสำหรับหน่วยข้อมูลเรขาคณิตขาเข้า สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล \nค่าที่เป็นไปได้: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"
|
|
4198
4198
|
}
|
|
4199
4199
|
},
|
|
4200
4200
|
"parametersInfo": {
|
|
@@ -4283,7 +4283,7 @@
|
|
|
4283
4283
|
"bundle": "geometry",
|
|
4284
4284
|
"sinceVersion": "1.8",
|
|
4285
4285
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancegeodetic",
|
|
4286
|
-
"description": "คำนวณระยะทางที่สั้นที่สุดระหว่างสองจุด ตามแนววงกลมใหญ่ ใช้เฉพาะกับจุดที่มีการอ้างอิงเชิงพื้นที่ด้วยระบบพิกัดทางภูมิศาสตร์ (GCS) หรือ Web Mercator หากจุดอินพุทมีระบบพิกัดแนวราบ (นอกเหนือจาก Web Mercator) คุณควร
|
|
4286
|
+
"description": "คำนวณระยะทางที่สั้นที่สุดระหว่างสองจุด ตามแนววงกลมใหญ่ ใช้เฉพาะกับจุดที่มีการอ้างอิงเชิงพื้นที่ด้วยระบบพิกัดทางภูมิศาสตร์ (GCS) หรือ Web Mercator หากจุดอินพุทมีระบบพิกัดแนวราบ (นอกเหนือจาก Web Mercator) คุณควร ฟังก์ชัน `Distance()`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
4287
4287
|
"examples": "\n##### ตัวอย่าง\n\nส่งคืนระยะทางจากรถบัสในชั้นข้อมูลสตรีมจนถึงสถานีศูนย์กลางในหน่วยกิโลเมตร\n\n```arcade\nvar unionStation = Point({\"x\": -118.15, \"y\": 33.80, \"spatialReference\": { \"wkid\": 3857 }});\ndistanceGeodetic($feature, unionStation, 'kilometers');\n```\n\n",
|
|
4288
4288
|
"completion": {
|
|
4289
4289
|
"label": "DistanceGeodetic",
|
|
@@ -4294,7 +4294,7 @@
|
|
|
4294
4294
|
"kind": 3,
|
|
4295
4295
|
"documentation": {
|
|
4296
4296
|
"kind": "markdown",
|
|
4297
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nคำนวณระยะทางที่สั้นที่สุดระหว่างสองจุด ตามแนววงกลมใหญ่ ใช้เฉพาะกับจุดที่มีการอ้างอิงเชิงพื้นที่ด้วยระบบพิกัดทางภูมิศาสตร์ (GCS) หรือ Web Mercator หากจุดอินพุทมีระบบพิกัดแนวราบ (นอกเหนือจาก Web Mercator) คุณควร
|
|
4297
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nคำนวณระยะทางที่สั้นที่สุดระหว่างสองจุด ตามแนววงกลมใหญ่ ใช้เฉพาะกับจุดที่มีการอ้างอิงเชิงพื้นที่ด้วยระบบพิกัดทางภูมิศาสตร์ (GCS) หรือ Web Mercator หากจุดอินพุทมีระบบพิกัดแนวราบ (นอกเหนือจาก Web Mercator) คุณควร ฟังก์ชัน `Distance()`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **point1**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่ใช้ในการวัดระยะทางจาก `point2` จุดนี้จะต้องมีการอ้างอิงเชิงพื้นที่ GCS หรือ Web Mercator\n- **point2**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่ใช้ในการวัดระยะทางจาก `point1` จุดนี้จะต้องมีการอ้างอิงเชิงพื้นที่ GCS หรือ Web Mercator\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล \nค่าที่เป็นไปได้: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4298
4298
|
}
|
|
4299
4299
|
},
|
|
4300
4300
|
"parametersInfo": {
|
|
@@ -4406,7 +4406,7 @@
|
|
|
4406
4406
|
"name": "extent",
|
|
4407
4407
|
"bundle": "geometry",
|
|
4408
4408
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#extent3",
|
|
4409
|
-
"description": "สร้างวัตถุขอบเขตจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
4409
|
+
"description": "สร้างวัตถุขอบเขตจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุส่วนขยาย",
|
|
4410
4410
|
"examples": "\n##### ตัวอย่าง\n\nสร้างวัตถุขอบเขตจาก JSON\n\n```arcade\nvar extentJSON = '{\"xmin\": -109.55, \"ymin\": 25.76, \"xmax\": -86.39, \"ymax\": 49.94, \"spatialReference\": { \"wkid\": 3857 }}';\nExtent(extentJSON);\n```\n\n",
|
|
4411
4411
|
"completion": {
|
|
4412
4412
|
"label": "Extent",
|
|
@@ -4417,7 +4417,7 @@
|
|
|
4417
4417
|
"kind": 3,
|
|
4418
4418
|
"documentation": {
|
|
4419
4419
|
"kind": "markdown",
|
|
4420
|
-
"value": "สร้างวัตถุขอบเขตจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
4420
|
+
"value": "สร้างวัตถุขอบเขตจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุส่วนขยาย\n\n**พารามิเตอร์**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความ JSON ที่จะสร้างวัตถุขอบเขตจาก\n\n**ส่งคืนค่า**: [Extent](https://developers.arcgis.com/arcade/guide/types/#extent)"
|
|
4421
4421
|
}
|
|
4422
4422
|
},
|
|
4423
4423
|
"parametersInfo": {
|
|
@@ -4456,7 +4456,7 @@
|
|
|
4456
4456
|
"name": "geometry",
|
|
4457
4457
|
"bundle": "geometry",
|
|
4458
4458
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#geometry",
|
|
4459
|
-
"description": "สร้างวัตถุ Geometry จากข้อความ JSON หรือพจนานุกรมแบบซีเรียไลซ์ สคีมา JSON
|
|
4459
|
+
"description": "สร้างวัตถุ Geometry จากข้อความ JSON หรือพจนานุกรมแบบซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุเรขาคณิต ฟังก์ชันนี้อาจส่งคืนรูปทรงเรขาคณิตของฟีเจอร์อินพุตด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
4460
4460
|
"examples": "\n##### ตัวอย่าง\n\nผลตอบแทนที่ได้รูปทรงเรขาคณิตของคุณลักษณะ\n\n```arcade\nGeometry($feature)\n```\n\nโครงสร้างเรขาคณิตจุด ซึ่งสามารถทำได้กับประเภทรูปทรงเรขาคณิตใดๆ\n\n```arcade\nvar pointJSON = {\"x\": -118.15, \"y\": 33.80, \"spatialReference\": { \"wkid\": 3857 } };\nGeometry(pointJSON);\n```\n\n",
|
|
4461
4461
|
"completion": {
|
|
4462
4462
|
"label": "Geometry",
|
|
@@ -4467,7 +4467,7 @@
|
|
|
4467
4467
|
"kind": 3,
|
|
4468
4468
|
"documentation": {
|
|
4469
4469
|
"kind": "markdown",
|
|
4470
|
-
"value": "สร้างวัตถุ Geometry จากข้อความ JSON หรือพจนานุกรมแบบซีเรียไลซ์ สคีมา JSON
|
|
4470
|
+
"value": "สร้างวัตถุ Geometry จากข้อความ JSON หรือพจนานุกรมแบบซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุเรขาคณิต ฟังก์ชันนี้อาจส่งคืนรูปทรงเรขาคณิตของฟีเจอร์อินพุตด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ฟีเจอร์หรือ JSON ที่จะสร้างวัตถุรขาคณิต\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"
|
|
4471
4471
|
}
|
|
4472
4472
|
},
|
|
4473
4473
|
"parametersInfo": {
|
|
@@ -4631,7 +4631,7 @@
|
|
|
4631
4631
|
"bundle": "geometry",
|
|
4632
4632
|
"sinceVersion": "1.7",
|
|
4633
4633
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic",
|
|
4634
|
-
"description": "ส่งคืนความยาวจีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด
|
|
4634
|
+
"description": "ส่งคืนความยาวจีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย แต่จะรองรับเฉพาะรูปทรงเรขาคณิตที่มีระบบอ้างอิงเชิงพื้นที่ Web Mercator (wkid 3857) หรือ WGS 84 (wkid 4326) เท่านั้น\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
4635
4635
|
"examples": "\n##### ตัวอย่าง\n\nแสดงความยาวบนสันฐานโลกของลักษณะภูมิประเทศ (feature) เป็นกิโลเมตร\n\n```arcade\nLengthGeodetic($feature, 'kilometers')\n```\n\n",
|
|
4636
4636
|
"completion": {
|
|
4637
4637
|
"label": "LengthGeodetic",
|
|
@@ -4642,7 +4642,7 @@
|
|
|
4642
4642
|
"kind": 3,
|
|
4643
4643
|
"documentation": {
|
|
4644
4644
|
"kind": "markdown",
|
|
4645
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนความยาวจีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด
|
|
4645
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนความยาวจีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย แต่จะรองรับเฉพาะรูปทรงเรขาคณิตที่มีระบบอ้างอิงเชิงพื้นที่ Web Mercator (wkid 3857) หรือ WGS 84 (wkid 4326) เท่านั้น\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) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> - รูปทรงเรขาคณิตที่จะคำนวณความยาวจีโอเดติค\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล \nค่าที่เป็นไปได้: `feet` | `kilometers` | `miles` | `nautical-miles` | `meters` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4646
4646
|
}
|
|
4647
4647
|
},
|
|
4648
4648
|
"parametersInfo": {
|
|
@@ -4729,7 +4729,7 @@
|
|
|
4729
4729
|
"name": "multipoint",
|
|
4730
4730
|
"bundle": "geometry",
|
|
4731
4731
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#multipoint3",
|
|
4732
|
-
"description": "สร้างวัตถุมัลติพอยน์จากข้อความ JSON ที่ซีเรียไลซ์ JSON
|
|
4732
|
+
"description": "สร้างวัตถุมัลติพอยน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุมัลติพอยน์",
|
|
4733
4733
|
"examples": "\n##### ตัวอย่าง\n\n\n\n```arcade\n// Creates a Multipoint object\nvar multipointJSON = '{\"points\": [[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832]],\"spatialReference\" : { \"wkid\": 3857 }}';\nMultipoint(multipointJSON);\n```\n\n",
|
|
4734
4734
|
"completion": {
|
|
4735
4735
|
"label": "Multipoint",
|
|
@@ -4740,7 +4740,7 @@
|
|
|
4740
4740
|
"kind": 3,
|
|
4741
4741
|
"documentation": {
|
|
4742
4742
|
"kind": "markdown",
|
|
4743
|
-
"value": "สร้างวัตถุมัลติพอยน์จากข้อความ JSON ที่ซีเรียไลซ์ JSON
|
|
4743
|
+
"value": "สร้างวัตถุมัลติพอยน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุมัลติพอยน์\n\n**พารามิเตอร์**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - JSON ที่จะสร้างวัตถุเรขาคณิตแบบหลายจุด\n\n**ส่งคืนค่า**: [Multipoint](https://developers.arcgis.com/arcade/guide/types/#multipoint)"
|
|
4744
4744
|
}
|
|
4745
4745
|
},
|
|
4746
4746
|
"parametersInfo": {
|
|
@@ -4756,7 +4756,7 @@
|
|
|
4756
4756
|
"sinceVersion": "1.23",
|
|
4757
4757
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#nearestcoordinate",
|
|
4758
4758
|
"description": "ส่งคืนพิกัดที่ใกล้ที่สุด (ไม่ใช่เวอร์เท็กซ์) ของเรขาคณิตอินพุท ไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะมีระยะทางระนาบที่สั้นที่สุด จากจุดค้นหาไปยังพิกัดที่ใกล้ที่สุด หากจุดค้นหาตัดกับเรขาคณิตอินพุท จุดค้นหาจะถูกส่งคืนเป็นผลลัพธ์ที่มีระยะทางศูนย์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ",
|
|
4759
|
-
"examples": "\n##### ตัวอย่าง\n\n
|
|
4759
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนพิกัดที่ใกล้ที่สุด จากโพลีกอนอินพุทตามระยะทางไปยังพิกัดนั้น\n\n```arcade\nvar buildings = FeatureSetByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n 0,\n ['*'],\n true\n);\n\nvar nearestBuilding = First(Intersects(buildings, BufferGeodetic($feature, 100, \"feet\")));\n\nvar result = NearestCoordinate(nearestBuilding, $feature);\n\nreturn result.distance;\n\n// or\n\nreturn result.coordinate;\n```\n\n",
|
|
4760
4760
|
"completion": {
|
|
4761
4761
|
"label": "NearestCoordinate",
|
|
4762
4762
|
"detail": "NearestCoordinate(inputGeometry, searchPoint) -> Dictionary",
|
|
@@ -4879,7 +4879,7 @@
|
|
|
4879
4879
|
"name": "point",
|
|
4880
4880
|
"bundle": "geometry",
|
|
4881
4881
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#point2",
|
|
4882
|
-
"description": "สร้างวัตถุจุดจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
4882
|
+
"description": "สร้างวัตถุจุดจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุจุด",
|
|
4883
4883
|
"examples": "\n##### ตัวอย่าง\n\n\n\n```arcade\n// Creates a Point object\nvar pointJSON = '{ \"x\": -118.15, \"y\": 33.80, \"spatialReference\": { \"wkid\": 3857 }}';\nPoint(pointJSON)\n```\n\n",
|
|
4884
4884
|
"completion": {
|
|
4885
4885
|
"label": "Point",
|
|
@@ -4890,7 +4890,7 @@
|
|
|
4890
4890
|
"kind": 3,
|
|
4891
4891
|
"documentation": {
|
|
4892
4892
|
"kind": "markdown",
|
|
4893
|
-
"value": "สร้างวัตถุจุดจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
4893
|
+
"value": "สร้างวัตถุจุดจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุจุด\n\n**พารามิเตอร์**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - JSON ที่จะสร้างวัตถุเรขาคณิตจุด\n\n**ส่งคืนค่า**: [Point](https://developers.arcgis.com/arcade/guide/types/#point)"
|
|
4894
4894
|
}
|
|
4895
4895
|
},
|
|
4896
4896
|
"parametersInfo": {
|
|
@@ -4953,7 +4953,7 @@
|
|
|
4953
4953
|
"name": "polygon",
|
|
4954
4954
|
"bundle": "geometry",
|
|
4955
4955
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polygon3",
|
|
4956
|
-
"description": "สร้างวัตถุโพลีกอนจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
4956
|
+
"description": "สร้างวัตถุโพลีกอนจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลิกอน",
|
|
4957
4957
|
"examples": "\n##### ตัวอย่าง\n\n\n\n```arcade\n// Creates a Polygon object\nvar polygonJSON = '{\"rings\": [[[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832], [-97.06138,32.837]],[[-97.06326,32.759],[-97.06298,32.755],[-97.06153,32.749], [-97.06326,32.759]]],\"spatialReference\": { \"wkid\": 3857 }}';\nPolygon(polygonJSON);\n```\n\n",
|
|
4958
4958
|
"completion": {
|
|
4959
4959
|
"label": "Polygon",
|
|
@@ -4964,7 +4964,7 @@
|
|
|
4964
4964
|
"kind": 3,
|
|
4965
4965
|
"documentation": {
|
|
4966
4966
|
"kind": "markdown",
|
|
4967
|
-
"value": "สร้างวัตถุโพลีกอนจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
4967
|
+
"value": "สร้างวัตถุโพลีกอนจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลิกอน\n\n**พารามิเตอร์**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - JSON ที่จะสร้างวัตถุเรขาคณิตโพลีกอน\n\n**ส่งคืนค่า**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)"
|
|
4968
4968
|
}
|
|
4969
4969
|
},
|
|
4970
4970
|
"parametersInfo": {
|
|
@@ -5027,7 +5027,7 @@
|
|
|
5027
5027
|
"name": "polyline",
|
|
5028
5028
|
"bundle": "geometry",
|
|
5029
5029
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polyline3",
|
|
5030
|
-
"description": "สร้างวัตถุโพลีไลน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
5030
|
+
"description": "สร้างวัตถุโพลีไลน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลีไลน์",
|
|
5031
5031
|
"examples": "\n##### ตัวอย่าง\n\n\n\n```arcade\n// Creates a Polyline object\nvar polylineJSON = '{\"paths\": [[[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832]], [[-97.06326,32.759],[-97.06298,32.755]]], \"spatialReference\": { \"wkid\": 3857 } }'\nPolyline(polylineJSON);\n```\n\n",
|
|
5032
5032
|
"completion": {
|
|
5033
5033
|
"label": "Polyline",
|
|
@@ -5038,7 +5038,7 @@
|
|
|
5038
5038
|
"kind": 3,
|
|
5039
5039
|
"documentation": {
|
|
5040
5040
|
"kind": "markdown",
|
|
5041
|
-
"value": "สร้างวัตถุโพลีไลน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON
|
|
5041
|
+
"value": "สร้างวัตถุโพลีไลน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลีไลน์\n\n**พารามิเตอร์**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความ JSON ที่จะสร้างวัตถุเรขาคณิตโพลีไลน์\n\n**ส่งคืนค่า**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)"
|
|
5042
5042
|
}
|
|
5043
5043
|
},
|
|
5044
5044
|
"parametersInfo": {
|
|
@@ -5383,8 +5383,8 @@
|
|
|
5383
5383
|
"bundle": "core",
|
|
5384
5384
|
"sinceVersion": "1.24",
|
|
5385
5385
|
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
5386
|
-
"description": "
|
|
5387
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5386
|
+
"description": "ระบุว่าสองค่าเท่ากันหรือไม่ ประเภทวัตถุ (เช่น อาร์เรย์ ฟีเจอร์ พจนานุกรม เรขาคณิต) ส่งคืนค่า จริง เฉพาะเมื่อเป็นวัตถุประเภทเดียวกัน",
|
|
5387
|
+
"examples": "\n##### ตัวอย่าง\n\nเปรียบเทียบว่าสองค่าเท่ากันหรือไม่\n\n```arcade\nEquals(1, \"1\") // returns false\n\nvar testVal = \"test\";\nEquals(testVal, \"test\") // returns true\n\nvar array1 = Array(5);\nvar array2 = Array(5);\nEquals(array1, array2); // returns false\nEquals(array1, array1); // returns true\n```\n\n",
|
|
5388
5388
|
"completion": {
|
|
5389
5389
|
"label": "Equals",
|
|
5390
5390
|
"detail": "Equals(value1, value2) -> Boolean",
|
|
@@ -5394,7 +5394,7 @@
|
|
|
5394
5394
|
"kind": 3,
|
|
5395
5395
|
"documentation": {
|
|
5396
5396
|
"kind": "markdown",
|
|
5397
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5397
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าสองค่าเท่ากันหรือไม่ ประเภทวัตถุ (เช่น อาร์เรย์ ฟีเจอร์ พจนานุกรม เรขาคณิต) ส่งคืนค่า จริง เฉพาะเมื่อเป็นวัตถุประเภทเดียวกัน\n\n**พารามิเตอร์**\n\n- **value1**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าอินพุทแรก\n- **value2**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าอินพุทที่สอง\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5398
5398
|
}
|
|
5399
5399
|
},
|
|
5400
5400
|
"parametersInfo": {
|
|
@@ -5535,8 +5535,8 @@
|
|
|
5535
5535
|
"bundle": "core",
|
|
5536
5536
|
"sinceVersion": "1.24",
|
|
5537
5537
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
5538
|
-
"description": "
|
|
5539
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5538
|
+
"description": "การเปลี่ยนแปลงโซนเวลาที่ใช้ในการแสดงค่าวันที่ที่กำหนด หาก `dateValue` อินพุท มีโซนเวลาเป็น `unknown` ค่าวันที่เอาท์พุทจะแสดงวันที่และเวลาเหมือนกันกับ `dateValue` อินพุท แต่จะได้รับการกำหนด `newTimeZone`",
|
|
5539
|
+
"examples": "\n##### ตัวอย่าง\n\nเปลี่ยนโซนเวลาของวันที่ที่กำหนด จาก `America/New_York` เป็น `America/Los_Angeles`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"America/New_York\")\nChangeTimeZone(inputDate, \"America/Los_Angeles\");\n// returns a Date representing Nov 11, 2011, 5:00:00 AM PST\n```\n\nกำหนดค่าวันที่ซึ่งมีโซนเวลา `unknown` เป็นออฟเซ็ตเวลา `+07:00`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"unknown\")\nChangeTimeZone(inputDate, \"+07:00\");\n// returns a Date representing Nov 11, 2011, 8:00:00 AM +07:00\n```\n\n",
|
|
5540
5540
|
"completion": {
|
|
5541
5541
|
"label": "ChangeTimeZone",
|
|
5542
5542
|
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
@@ -5546,7 +5546,7 @@
|
|
|
5546
5546
|
"kind": 3,
|
|
5547
5547
|
"documentation": {
|
|
5548
5548
|
"kind": "markdown",
|
|
5549
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5549
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nการเปลี่ยนแปลงโซนเวลาที่ใช้ในการแสดงค่าวันที่ที่กำหนด หาก `dateValue` อินพุท มีโซนเวลาเป็น `unknown` ค่าวันที่เอาท์พุทจะแสดงวันที่และเวลาเหมือนกันกับ `dateValue` อินพุท แต่จะได้รับการกำหนด `newTimeZone`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - ค่าวันที่ซึ่งมีข้อมูลวันที่และเวลา\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - โซนเวลาใหม่ซึ่งจะใช้ในการแสดงค่าวันที่ที่กำหนด โซนเวลาต้องเป็นหนึ่งในค่าต่อไปนี้:\n\n - ข้อความแทนรายการในฐานข้อมูลโซนเวลา IANA (เช่น `America/New_York`)\n\n - ข้อความแทนชั่วโมงและนาทีซึ่งควรเพิ่มลงใน UTC (เช่น `+07:00` หรือ `-03:00`)\n\n - `system` - โซนเวลาจะถูกตั้งค่าตามโซนเวลาท้องถิ่นของอุปกรณ์หรือระบบ\n\n - `default` - โซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n - `UTC` - เวลาสากลเชิงพิกัด\n\n - `unknown` - ลบข้อมูลโซนเวลาของค่าที่กำหนด และแสดงวันที่และเวลาตามที่กำหนดไว้ในนิพจน์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5550
5550
|
}
|
|
5551
5551
|
},
|
|
5552
5552
|
"parametersInfo": {
|
|
@@ -5560,8 +5560,8 @@
|
|
|
5560
5560
|
"name": "date",
|
|
5561
5561
|
"bundle": "core",
|
|
5562
5562
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
5563
|
-
"description": "
|
|
5564
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5563
|
+
"description": "สร้างวัตถุ วันที่ จากชุดของพารามิเตอร์ ตามค่าเริ่มต้น วันที่จะถูกสร้างขึ้นในโซนเวลาของบริบทการดำเนินการของโปรไฟล์",
|
|
5564
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างวันที่ซึ่งแสดงเวลาที่กำหนดในโซนเวลาของบริบทการดำเนินการของโปรไฟล์ที่รัน Arcade\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nสร้างวันที่พร้อมเวลาที่กำหนดในโซนเวลาเฉพาะ\n\n```arcade\nDate(1990, 10, 2, 2, 23, 0, 0, \"America/New_York\");\n // Date represents Nov 2, 1990, 2:23:00 AM EST\n```\n\n",
|
|
5565
5565
|
"completion": {
|
|
5566
5566
|
"label": "Date",
|
|
5567
5567
|
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
@@ -5571,7 +5571,7 @@
|
|
|
5571
5571
|
"kind": 3,
|
|
5572
5572
|
"documentation": {
|
|
5573
5573
|
"kind": "markdown",
|
|
5574
|
-
"value": "
|
|
5574
|
+
"value": "สร้างวัตถุ วันที่ จากชุดของพารามิเตอร์ ตามค่าเริ่มต้น วันที่จะถูกสร้างขึ้นในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**พารามิเตอร์**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขแทนปี\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - เดือน (0-11) โดยที่ `0` คือเดือนมกราคม และ` 11` คือเดือนธันวาคม\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - วันของเดือน (1-31)\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ชั่วโมงของวัน (0-23)\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - นาทีของชั่วโมง (0-59)\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - วินาทีของนาที (0-59)\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - มิลลิวินาทีของวินาที (0-999)\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _นับตั้งแต่ 1.24_ โซนเวลาของวันที่ หากไม่ได้กำหนดไว้ วันที่จะถูกสร้างขึ้นในโซนเวลาเริ่มต้นของบริบทการดำเนินการของโปรไฟล์ ค่าที่เป็นไปได้:\n\n - ข้อความแทนรายการในฐานข้อมูลโซนเวลา IANA (เช่น `America/New_York`)\n\n - ข้อความแทนชั่วโมงและนาทีซึ่งควรเพิ่มลงใน UTC (เช่น `+07:00` หรือ `-03:00`)\n\n - `system` - โซนเวลาจะถูกตั้งค่าตามโซนเวลาท้องถิ่นของอุปกรณ์หรือระบบ\n\n - `default` - โซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n - `UTC` - มาตรฐานเวลาสากล\n\n - `unknown` - ลบข้อมูลโซนเวลาของค่าที่กำหนด และแสดงวันที่และเวลาตามที่กำหนดไว้ในนิพจน์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5575
5575
|
}
|
|
5576
5576
|
},
|
|
5577
5577
|
"parametersInfo": {
|
|
@@ -5584,8 +5584,8 @@
|
|
|
5584
5584
|
"name": "date",
|
|
5585
5585
|
"bundle": "core",
|
|
5586
5586
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
5587
|
-
"description": "
|
|
5588
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5587
|
+
"description": "สร้างวันที่ด้วยหมายเลข Unix epoch ที่กำหนด ตามค่าเริ่มต้น วันที่จะแสดงในโซนเวลาของบริบทการดำเนินการของโปรไฟล์ หากไม่ได้ระบุ epoch จะสร้างวันที่ ณ วันที่และเวลาปัจจุบันในโซนเวลาเริ่มต้นของโปรไฟล์",
|
|
5588
|
+
"examples": "\n##### ตัวอย่าง\n\nมิลลิวินาทีนับตั้งแต่ 1 มกราคม 1970\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\nสร้างวันที่ซึ่งแสดงเวลาที่กำหนดในเวลาปัจจุบันของบริบทการดำเนินการของโปรไฟล์ที่รัน Arcade\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
|
|
5589
5589
|
"completion": {
|
|
5590
5590
|
"label": "Date",
|
|
5591
5591
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -5595,7 +5595,7 @@
|
|
|
5595
5595
|
"kind": 3,
|
|
5596
5596
|
"documentation": {
|
|
5597
5597
|
"kind": "markdown",
|
|
5598
|
-
"value": "
|
|
5598
|
+
"value": "สร้างวันที่ด้วยหมายเลข Unix epoch ที่กำหนด ตามค่าเริ่มต้น วันที่จะแสดงในโซนเวลาของบริบทการดำเนินการของโปรไฟล์ หากไม่ได้ระบุ epoch จะสร้างวันที่ ณ วันที่และเวลาปัจจุบันในโซนเวลาเริ่มต้นของโปรไฟล์\n\n**พารามิเตอร์**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขแทนมิลลิวินาทีนับตั้งแต่วันที่ 1 มกราคม 1970 UTC\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5599
5599
|
}
|
|
5600
5600
|
},
|
|
5601
5601
|
"parametersInfo": {
|
|
@@ -5608,8 +5608,8 @@
|
|
|
5608
5608
|
"name": "date",
|
|
5609
5609
|
"bundle": "core",
|
|
5610
5610
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
5611
|
-
"description": "
|
|
5612
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5611
|
+
"description": "สร้างค่าวันที่จากค่าข้อความ ISO 8601 หากระบุออฟเซ็ต UTC วันที่จะยังคงแสดงอยู่ในโซนเวลาของโปรไฟล์ หากไม่ได้ระบุค่าข้อความ จะสร้างวันที่ ณ วันที่และเวลาปัจจุบันในโซนเวลาของโปรไฟล์",
|
|
5612
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างวันที่จากค่าข้อความ ISO 8601 พร้อมออฟเซ็ตเวลาที่ทราบ\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\nสร้างวันที่จากค่าข้อความ ISO 8601 พร้อมออฟเซ็นเวลาที่ไม่ทราบ\n\n```arcade\nDate('2016-10-20T17:41:37') // 'Thu Oct 20 2016 5:41:37 PM PDT'\n```\n\n",
|
|
5613
5613
|
"completion": {
|
|
5614
5614
|
"label": "Date",
|
|
5615
5615
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -5619,7 +5619,7 @@
|
|
|
5619
5619
|
"kind": 3,
|
|
5620
5620
|
"documentation": {
|
|
5621
5621
|
"kind": "markdown",
|
|
5622
|
-
"value": "
|
|
5622
|
+
"value": "สร้างค่าวันที่จากค่าข้อความ ISO 8601 หากระบุออฟเซ็ต UTC วันที่จะยังคงแสดงอยู่ในโซนเวลาของโปรไฟล์ หากไม่ได้ระบุค่าข้อความ จะสร้างวันที่ ณ วันที่และเวลาปัจจุบันในโซนเวลาของโปรไฟล์\n\n**พารามิเตอร์**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความ ISO 8601 ที่จะแปลงเป็นวันที่\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5623
5623
|
}
|
|
5624
5624
|
},
|
|
5625
5625
|
"parametersInfo": {
|
|
@@ -5633,8 +5633,8 @@
|
|
|
5633
5633
|
"bundle": "core",
|
|
5634
5634
|
"sinceVersion": "1.24",
|
|
5635
5635
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
5636
|
-
"description": "
|
|
5637
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5636
|
+
"description": "สร้างวันที่จากค่า DateOnly พร้อมค่าเวลาและโซนเวลาตัวเลือกเสริม",
|
|
5637
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างวันที่จาก DateOnly และประเภทเวลา\n\n```arcade\nDate(DateOnly(2022,10,11), Time(\"11:20 am\"))\n// returns a Date representing Nov 11, 2022, 11:20:00 AM in an unknown time zone\n```\n\n",
|
|
5638
5638
|
"completion": {
|
|
5639
5639
|
"label": "Date",
|
|
5640
5640
|
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
@@ -5644,7 +5644,7 @@
|
|
|
5644
5644
|
"kind": 3,
|
|
5645
5645
|
"documentation": {
|
|
5646
5646
|
"kind": "markdown",
|
|
5647
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5647
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวันที่จากค่า DateOnly พร้อมค่าเวลาและโซนเวลาตัวเลือกเสริม\n\n**พารามิเตอร์**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่า DateOnly ซึ่งจากสร้างค่าวันที่จาก\n- **timeValue** (_Optional_): [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าเวลาสำหรับวันที่ หากไม่ได้ระบุ วันที่จะถูกสร้างขึ้นพร้อมเวลา `00:00:00`\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - โซนเวลาของวันที่ หากไม่ได้ระบุ วันที่จะถูกสร้างขึ้นในโซนเวลา `unknown` ค่าที่เป็นไปได้:\n\n - ข้อความแทนรายการในฐานข้อมูลโซนเวลา IANA (เช่น `America/New_York`)\n\n - ข้อความแทนชั่วโมงและนาทีซึ่งควรเพิ่มลงใน UTC (เช่น `+07:00` หรือ `-03:00`)\n\n - `system` - โซนเวลาจะถูกตั้งค่าตามโซนเวลาท้องถิ่นของอุปกรณ์หรือระบบ\n\n - `default` - โซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n - `UTC` - เวลาสากลเชิงพิกัด\n\n - `unknown` - ลบข้อมูลโซนเวลาของค่าที่กำหนด และแสดงวันที่และเวลาตามที่กำหนดไว้ในนิพจน์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5648
5648
|
}
|
|
5649
5649
|
},
|
|
5650
5650
|
"parametersInfo": {
|
|
@@ -5658,8 +5658,8 @@
|
|
|
5658
5658
|
"bundle": "core",
|
|
5659
5659
|
"sinceVersion": "1.24",
|
|
5660
5660
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
5661
|
-
"description": "
|
|
5662
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5661
|
+
"description": "สร้างสำเนาของวันที่ที่กำหนด",
|
|
5662
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างสำเนาของค่าวันที่ปัจจุบัน\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
5663
5663
|
"completion": {
|
|
5664
5664
|
"label": "Date",
|
|
5665
5665
|
"detail": "Date(dateValue) -> Date",
|
|
@@ -5669,7 +5669,7 @@
|
|
|
5669
5669
|
"kind": 3,
|
|
5670
5670
|
"documentation": {
|
|
5671
5671
|
"kind": "markdown",
|
|
5672
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5672
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างสำเนาของวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - วันที่ที่จะทำสำเนา\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5673
5673
|
}
|
|
5674
5674
|
},
|
|
5675
5675
|
"parametersInfo": {
|
|
@@ -5684,8 +5684,8 @@
|
|
|
5684
5684
|
"name": "dateadd",
|
|
5685
5685
|
"bundle": "core",
|
|
5686
5686
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
5687
|
-
"description": "
|
|
5688
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5687
|
+
"description": "เพิ่มระยะเวลาแบบเจาะจงในหน่วยที่กำหนดลงในวันที่ แล้วส่งคืนวันที่ใหม่ หากวันที่มีโซนเวลา IANA จะใช้เวลาออมแสงและลอจิกควบคุมโซนเวลาอื่นๆ",
|
|
5688
|
+
"examples": "\n##### ตัวอย่าง\n\nเพิ่ม 7 วันลงในวันที่ที่กำหนด\n\n```arcade\nvar startDate = Date(2023, 9, 1, 12, 00);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns a Date representing Oct 8, 2023, 12:00:00 PM PDT\n```\n\n",
|
|
5689
5689
|
"completion": {
|
|
5690
5690
|
"label": "DateAdd",
|
|
5691
5691
|
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
@@ -5695,7 +5695,7 @@
|
|
|
5695
5695
|
"kind": 3,
|
|
5696
5696
|
"documentation": {
|
|
5697
5697
|
"kind": "markdown",
|
|
5698
|
-
"value": "
|
|
5698
|
+
"value": "เพิ่มระยะเวลาแบบเจาะจงในหน่วยที่กำหนดลงในวันที่ แล้วส่งคืนวันที่ใหม่ หากวันที่มีโซนเวลา IANA จะใช้เวลาออมแสงและลอจิกควบคุมโซนเวลาอื่นๆ\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - วันที่อินพุทที่จะเพิ่มเวลา\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าที่จะเพิ่มลงในวันที่ในหน่วยที่กำหนด\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - หน่วยของตัวเลขที่จะเพิ่มลงในวันที่ ค่าเริ่มต้นคือ `milliseconds` ประเภทที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5699
5699
|
}
|
|
5700
5700
|
},
|
|
5701
5701
|
"parametersInfo": {
|
|
@@ -5709,8 +5709,8 @@
|
|
|
5709
5709
|
"bundle": "core",
|
|
5710
5710
|
"sinceVersion": "1.24",
|
|
5711
5711
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
5712
|
-
"description": "
|
|
5713
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5712
|
+
"description": "เพิ่มระยะเวลาที่ระบุในหน่วยที่กำหนดลงในค่า DateOnly จากนั้นส่งคืนค่า DateOnly ใหม่",
|
|
5713
|
+
"examples": "\n##### ตัวอย่าง\n\nเพิ่ม 7 วันลงในวันที่ในฟิลด์ที่ระบุ\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns 2023-06-11\n```\n\nเพิ่ม 12 ชั่วโมงลงในวันที่ในฟิลด์ที่ระบุ\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar hoursLater = DateAdd(startDate, 12, 'hours');\nreturn hoursLater;\n// returns the original start date, 2023-06-04\n// since 12 hours < 1 day, the DateOnly input is not changed\n```\n\n",
|
|
5714
5714
|
"completion": {
|
|
5715
5715
|
"label": "DateAdd",
|
|
5716
5716
|
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
@@ -5720,7 +5720,7 @@
|
|
|
5720
5720
|
"kind": 3,
|
|
5721
5721
|
"documentation": {
|
|
5722
5722
|
"kind": "markdown",
|
|
5723
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5723
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเพิ่มระยะเวลาที่ระบุในหน่วยที่กำหนดลงในค่า DateOnly จากนั้นส่งคืนค่า DateOnly ใหม่\n\n**พารามิเตอร์**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าอินพุท DateOnly ที่จะเพิ่มเวลา\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าที่จะเพิ่มลงในวันที่ในหน่วยที่ระบุ สำหรับอินพุท DateOnly ค่านี้จะถูกปัดเศษลงเป็นวันที่ใกล้ที่สุด โดยอิงตามช่วงเวลา 24 ชั่วโมง หากค่าที่จะเพิ่มน้อยกว่า 24 ชั่วโมง จะไม่เพิ่มค่าลงในอินพุท DateOnly\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - หน่วยของตัวเลขที่เพิ่มลงในวันที่ ค่าเริ่มต้นคือ `milliseconds` ประเภทที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
5724
5724
|
}
|
|
5725
5725
|
},
|
|
5726
5726
|
"parametersInfo": {
|
|
@@ -5734,8 +5734,8 @@
|
|
|
5734
5734
|
"bundle": "core",
|
|
5735
5735
|
"sinceVersion": "1.24",
|
|
5736
5736
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
5737
|
-
"description": "
|
|
5738
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5737
|
+
"description": "เพิ่มระยะเวลาที่ระบุในหน่วยที่กำหนดลงในค่าเวลา แล้วส่งคืนค่าเวลาใหม่",
|
|
5738
|
+
"examples": "\n##### ตัวอย่าง\n\nเพิ่ม 7 ชั่วโมงลงในเวลาที่กำหนด\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 7, 'hours');\nreturn hoursLater;\n// returns 18:30:00\n```\n\nเพิ่ม 90 วินาทีลงในเวลาที่กำหนด\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar secondsLater = DateAdd(startTime, 90, \"seconds\");\nreturn secondsLater;\n// returns 11:31:30\n```\n\nเพิ่ม 25 ชั่วโมงลงในเวลาที่กำหนด\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 25, 'hours');\nreturn hoursLater;\n// returns 12:30:00\n```\n\n",
|
|
5739
5739
|
"completion": {
|
|
5740
5740
|
"label": "DateAdd",
|
|
5741
5741
|
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
@@ -5745,7 +5745,7 @@
|
|
|
5745
5745
|
"kind": 3,
|
|
5746
5746
|
"documentation": {
|
|
5747
5747
|
"kind": "markdown",
|
|
5748
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5748
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเพิ่มระยะเวลาที่ระบุในหน่วยที่กำหนดลงในค่าเวลา แล้วส่งคืนค่าเวลาใหม่\n\n**พารามิเตอร์**\n\n- **timeValue**: [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าเวลาอินพุทที่จะเพิ่มเวลา\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าที่เพิ่มลงในเวลาในหน่วยที่กำหนด\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - หน่วยของตัวเลขที่เพิ่มลงในวันที่ ค่าเริ่มต้นคือ `milliseconds` ประเภทหน่วยที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours`\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
5749
5749
|
}
|
|
5750
5750
|
},
|
|
5751
5751
|
"parametersInfo": {
|
|
@@ -5760,8 +5760,8 @@
|
|
|
5760
5760
|
"name": "datediff",
|
|
5761
5761
|
"bundle": "core",
|
|
5762
5762
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
5763
|
-
"description": "
|
|
5764
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5763
|
+
"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ลบวันที่สองวันและส่งคืนส่วนต่าง เนื่องจากโซนเวลาคือลอสแองเจลิส\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
5765
|
"completion": {
|
|
5766
5766
|
"label": "DateDiff",
|
|
5767
5767
|
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
@@ -5771,7 +5771,7 @@
|
|
|
5771
5771
|
"kind": 3,
|
|
5772
5772
|
"documentation": {
|
|
5773
5773
|
"kind": "markdown",
|
|
5774
|
-
"value": "
|
|
5774
|
+
"value": "ลบวันที่สองวัน แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด\n\n**พารามิเตอร์**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - ค่าวันที่ซึ่งจะลบวันที่ที่สองออก\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - ค่าวันที่ซึ่งจะลบออกจากวันที่แรกที่กำหนด\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - หน่วยที่จะส่งคืนส่วนต่างระหว่างสองวันที่ที่กำหนด ประเภทที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years` ค่าเริ่มต้นคือ `milliseconds`\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _ตั้งแต่เวอร์ชัน 1.24_ โซนเวลาที่จะกำหนดให้กับวันที่อินพุท พร้อมโซนเวลาที่ไม่ทราบ หากไม่ได้กำหนด จะมีการดำเนินการดังต่อไปนี้: (1) หากหนึ่งอินพุทมีโซนเวลาที่กำหนด และอีกหนึ่งอินพุทคือไม่ทราบ ค่าที่มีโซนเวลาที่ไม่ทราบ จะใช้โซนเวลาที่ตรงกับอินพุทอื่น (2) หากทั้งสองอินพุทเป็นโซนเวลาที่ไม่ทราบ DateDiff จะถูกคำนวณตามวันที่ทั้งสอง เสมือนว่าถูกกำหนดค่าในโซนเวลาเดียวกัน ค่าที่เป็นไปได้:\n\n - ข้อความแทนรายการในฐานข้อมูลโซนเวลา IANA (เช่น `America/New_York`)\n\n - ข้อความแทนชั่วโมงและนาทีซึ่งควรเพิ่มลงใน UTC (เช่น `+07:00` หรือ `-03:00`)\n\n - `system` - โซนเวลาจะถูกตั้งค่าตามโซนเวลาท้องถิ่นของอุปกรณ์หรือระบบ\n\n - `default` - โซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n - `UTC` - เวลาสากลเชิงพิกัด\n\n - `unknown` - ลบข้อมูลโซนเวลาของค่าที่กำหนด และแสดงวันที่และเวลาตามที่กำหนดไว้ในนิพจน์\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5775
5775
|
}
|
|
5776
5776
|
},
|
|
5777
5777
|
"parametersInfo": {
|
|
@@ -5785,8 +5785,8 @@
|
|
|
5785
5785
|
"bundle": "core",
|
|
5786
5786
|
"sinceVersion": "1.24",
|
|
5787
5787
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
5788
|
-
"description": "
|
|
5789
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5788
|
+
"description": "ลบสองค่า DateOnly แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด",
|
|
5789
|
+
"examples": "\n##### ตัวอย่าง\n\nลบสองค่า DateOnly แล้วส่งคืนส่วนต่างเป็นปี\n\n```arcade\nvar startDate = DateOnly(1996,11,10);\nvar endDate = DateOnly(); // today's date\nvar age = DateDiff(endDate, startDate, 'years');\nFloor(age); // round down\n// returns 26\n```\n\n",
|
|
5790
5790
|
"completion": {
|
|
5791
5791
|
"label": "DateDiff",
|
|
5792
5792
|
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
@@ -5796,7 +5796,7 @@
|
|
|
5796
5796
|
"kind": 3,
|
|
5797
5797
|
"documentation": {
|
|
5798
5798
|
"kind": "markdown",
|
|
5799
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5799
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nลบสองค่า DateOnly แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateOnly1**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่า DateOnly ซึ่งจะลบค่า DateOnly ที่สองออก\n- **dateOnly2**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่า DateOnly ที่จะลบออกจากค่า DateOnly แรกที่กำหนด\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - หน่วยที่จะส่งคืนส่วนต่างของสองค่า DateOnly ที่กำหนด ประเภทที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years` ค่าเริ่มต้นคือ `milliseconds`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5800
5800
|
}
|
|
5801
5801
|
},
|
|
5802
5802
|
"parametersInfo": {
|
|
@@ -5810,8 +5810,8 @@
|
|
|
5810
5810
|
"bundle": "core",
|
|
5811
5811
|
"sinceVersion": "1.24",
|
|
5812
5812
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
5813
|
-
"description": "
|
|
5814
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5813
|
+
"description": "ลบสองค่าเวลา แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด",
|
|
5814
|
+
"examples": "\n##### ตัวอย่าง\n\nลบสองค่าเวลา แล้วส่งคืนส่วนต่างเป็นชั่วโมง\n\n```arcade\nDateDiff(Time(23,0), Time(9,0), 'hours')\n// returns 14\n```\n\n",
|
|
5815
5815
|
"completion": {
|
|
5816
5816
|
"label": "DateDiff",
|
|
5817
5817
|
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
@@ -5821,7 +5821,7 @@
|
|
|
5821
5821
|
"kind": 3,
|
|
5822
5822
|
"documentation": {
|
|
5823
5823
|
"kind": "markdown",
|
|
5824
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5824
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nลบสองค่าเวลา แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด\n\n**พารามิเตอร์**\n\n- **time1**: [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าเวลาที่จะลบค่าเวลาที่สองออกจาก\n- **time2**: [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าเวลาที่จะลบออกจากค่าเวลาแรกที่กำหนด\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - หน่วยที่จะส่งคืนส่วนต่างของสองค่าเวลาที่กำหนด ประเภทหน่วยที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours` ค่าเริ่มต้นคือ `milliseconds`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5825
5825
|
}
|
|
5826
5826
|
},
|
|
5827
5827
|
"parametersInfo": {
|
|
@@ -5837,8 +5837,8 @@
|
|
|
5837
5837
|
"bundle": "core",
|
|
5838
5838
|
"sinceVersion": "1.24",
|
|
5839
5839
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
5840
|
-
"description": "
|
|
5841
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5840
|
+
"description": "สร้างค่า DateOnly โดยอิงตามวันที่ที่กำหนดในโซนเวลาของบริบทการดำเนินการของโปรไฟล์",
|
|
5841
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืน DateOnly ปัจจุบัน (ไม่มีเวลา)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
5842
5842
|
"completion": {
|
|
5843
5843
|
"label": "DateOnly",
|
|
5844
5844
|
"detail": "DateOnly() -> DateOnly",
|
|
@@ -5848,7 +5848,7 @@
|
|
|
5848
5848
|
"kind": 3,
|
|
5849
5849
|
"documentation": {
|
|
5850
5850
|
"kind": "markdown",
|
|
5851
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5851
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่า DateOnly โดยอิงตามวันที่ที่กำหนดในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
5852
5852
|
}
|
|
5853
5853
|
},
|
|
5854
5854
|
"parametersInfo": {
|
|
@@ -5862,8 +5862,8 @@
|
|
|
5862
5862
|
"bundle": "core",
|
|
5863
5863
|
"sinceVersion": "1.24",
|
|
5864
5864
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
5865
|
-
"description": "
|
|
5866
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5865
|
+
"description": "สร้างค่า DateOnly จากอินพุทที่แสดงปี เดือน และวัน",
|
|
5866
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างค่า DateOnly จากอินพุทที่แสดงปี เดือน และวัน\n\n```arcade\nDateOnly(1996, 11, 10)\n// returns 1996-12-10\n```\n\n",
|
|
5867
5867
|
"completion": {
|
|
5868
5868
|
"label": "DateOnly",
|
|
5869
5869
|
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
@@ -5873,7 +5873,7 @@
|
|
|
5873
5873
|
"kind": 3,
|
|
5874
5874
|
"documentation": {
|
|
5875
5875
|
"kind": "markdown",
|
|
5876
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5876
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่า DateOnly จากอินพุทที่แสดงปี เดือน และวัน\n\n**พารามิเตอร์**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขแทนปี\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - เดือน (0-11) โดยที่ `0` คือเดือนมกราคม และ` 11` คือเดือนธันวาคม หากค่านี้อยู่นอกช่วงปกติ (0-11), ฟังก์ชันจะส่งคืน `null`\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - วันของเดือน (1-31) หากค่านี้อยู่นอกช่วงปกติ (1-31) ฟังก์ชันจะส่งคืน `null`\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
5877
5877
|
}
|
|
5878
5878
|
},
|
|
5879
5879
|
"parametersInfo": {
|
|
@@ -5887,8 +5887,8 @@
|
|
|
5887
5887
|
"bundle": "core",
|
|
5888
5888
|
"sinceVersion": "1.24",
|
|
5889
5889
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
5890
|
-
"description": "
|
|
5891
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5890
|
+
"description": "สร้างวันที่ DateOnly ด้วยตัวเลข Unix epoch ที่กำหนด",
|
|
5891
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืน DateOnly จากตัวเลขของมิลลิวินาทีตั้งแต่ 1 มกราคม 1970\n\n```arcade\nDateOnly(1476987783555);\n// returns 2016-10-20\n```\n\n",
|
|
5892
5892
|
"completion": {
|
|
5893
5893
|
"label": "DateOnly",
|
|
5894
5894
|
"detail": "DateOnly(epoch) -> DateOnly",
|
|
@@ -5898,7 +5898,7 @@
|
|
|
5898
5898
|
"kind": 3,
|
|
5899
5899
|
"documentation": {
|
|
5900
5900
|
"kind": "markdown",
|
|
5901
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5901
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวันที่ DateOnly ด้วยตัวเลข Unix epoch ที่กำหนด\n\n**พารามิเตอร์**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขแทนมิลลิวินาทีนับตั้งแต่วันที่ 1 มกราคม 1970 UTC\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
5902
5902
|
}
|
|
5903
5903
|
},
|
|
5904
5904
|
"parametersInfo": {
|
|
@@ -5912,8 +5912,8 @@
|
|
|
5912
5912
|
"bundle": "core",
|
|
5913
5913
|
"sinceVersion": "1.24",
|
|
5914
5914
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
5915
|
-
"description": "
|
|
5916
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5915
|
+
"description": "สร้างค่า DateOnly จากอินพุทข้อความที่แสดงวันที่จัดรูปแบบ ISO หรือแพทเทิร์นข้อความจัดรูปแบบอื่น",
|
|
5916
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างค่า DateOnly จากค่าข้อความที่แสดงวันที่\n\n```arcade\nDateOnly(\"2023-05-11T13:43:18.990+01:00\");\n// returns 2023-05-11\n```\n\nสร้างค่า DateOnly จากค่าข้อความที่แสดงวันที่ในรูปแบบที่กำหนด\n\n```arcade\nDateOnly(\"10 Jan 2022\",\"D MMM Y\")\n// returns 2022-01-10\n```\n\n",
|
|
5917
5917
|
"completion": {
|
|
5918
5918
|
"label": "DateOnly",
|
|
5919
5919
|
"detail": "DateOnly(textValue, format?) -> DateOnly",
|
|
@@ -5923,7 +5923,7 @@
|
|
|
5923
5923
|
"kind": 3,
|
|
5924
5924
|
"documentation": {
|
|
5925
5925
|
"kind": "markdown",
|
|
5926
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5926
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่า DateOnly จากอินพุทข้อความที่แสดงวันที่จัดรูปแบบ ISO หรือแพทเทิร์นข้อความจัดรูปแบบอื่น\n\n**พารามิเตอร์**\n\n- **textValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่แสดงวันที่ ค่านี้ควรเป็นวันที่จัดรูปแบบ ISO หรือข้อความจัดรูปแบบอื่นที่แสดงวันที่ หากค่านี้ไม่อยู่ในรูปแบบ ISO จะต้องกำหนดพารามิเตอร์ `format` เพื่อระบุรูปแบบของวันที่\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่ระบุรูปแบบของอินพุท `dateValue` \nค่าที่เป็นไปได้: \n - `D`: วันของเดือนแบบไม่แพ็ด (1 - 31) \n - `DD`: วันของเดือน แบบแพ็ด (01 - 31) \n - `DDD`: วันของปีแบบเลขลำดับ (1 - 365) \n - `d`: วันของสัปดาห์ (1 - 7) \n - `ddd`: วันของสัปดาห์แบบตัวย่อ (เช่น Mon) \n - `dddd`: วันของสัปดาห์แบบเต็ม (เช่น Monday) \n - `M`: ตัวเลขเดือน (1 - 12) \n - `MM`: ตัวเลขเดือน, แพ็ด (01 - 12) \n - `MMM`: ชื่อเดือนแบบตัวย่อ (เช่น Jan) \n - `MMMM`: ชื่อเดือนแบบเต็ม (เช่น January) \n - `Y`: ปีแบบเต็ม \n - `YY`: ปีแบบเลขสองตัว \n\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
5927
5927
|
}
|
|
5928
5928
|
},
|
|
5929
5929
|
"parametersInfo": {
|
|
@@ -5937,8 +5937,8 @@
|
|
|
5937
5937
|
"bundle": "core",
|
|
5938
5938
|
"sinceVersion": "1.24",
|
|
5939
5939
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
5940
|
-
"description": "
|
|
5941
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5940
|
+
"description": "สร้างค่า DateOnly จากวันที่ที่กำหนด",
|
|
5941
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืน DateOnly จากวันที่ที่กำหนด\n\n```arcade\nDateOnly(Date(2008,10,11,10,30));\n// returns 2008-11-11\n```\n\n",
|
|
5942
5942
|
"completion": {
|
|
5943
5943
|
"label": "DateOnly",
|
|
5944
5944
|
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
@@ -5948,7 +5948,7 @@
|
|
|
5948
5948
|
"kind": 3,
|
|
5949
5949
|
"documentation": {
|
|
5950
5950
|
"kind": "markdown",
|
|
5951
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5951
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่า DateOnly จากวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - วันที่ซึ่งจะสร้างค่า DateOnly จาก\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
5952
5952
|
}
|
|
5953
5953
|
},
|
|
5954
5954
|
"parametersInfo": {
|
|
@@ -5962,8 +5962,8 @@
|
|
|
5962
5962
|
"bundle": "core",
|
|
5963
5963
|
"sinceVersion": "1.24",
|
|
5964
5964
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
5965
|
-
"description": "
|
|
5966
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
5965
|
+
"description": "สร้างสำเนาของค่า DateOnly",
|
|
5966
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างสำเนาของค่า DateOnly\n\n```arcade\nvar originalDateOnly = DateOnly(1996,11,10)\nvar copiedDateOnly = DateOnly(originalDateOnly)\nreturn copiedDateOnly;\n```\n\n",
|
|
5967
5967
|
"completion": {
|
|
5968
5968
|
"label": "DateOnly",
|
|
5969
5969
|
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
@@ -5973,7 +5973,7 @@
|
|
|
5973
5973
|
"kind": 3,
|
|
5974
5974
|
"documentation": {
|
|
5975
5975
|
"kind": "markdown",
|
|
5976
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
5976
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างสำเนาของค่า DateOnly\n\n**พารามิเตอร์**\n\n- **dateOnlyValue**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่า DateOnly ที่จะคัดลอก\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)"
|
|
5977
5977
|
}
|
|
5978
5978
|
},
|
|
5979
5979
|
"parametersInfo": {
|
|
@@ -5988,7 +5988,7 @@
|
|
|
5988
5988
|
"bundle": "core",
|
|
5989
5989
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
5990
5990
|
"description": "ส่งคืนวันของเดือนของวันที่ที่กำหนด",
|
|
5991
|
-
"examples": "\n##### ตัวอย่าง\n\nรับวันของเดือนนับจากวันที่ปัจจุบัน\n\n```arcade\nDay(Now())\n```\n\
|
|
5991
|
+
"examples": "\n##### ตัวอย่าง\n\nรับวันของเดือนนับจากวันที่ปัจจุบัน\n\n```arcade\nDay(Now())\n```\n\nส่งคืนวันของเดือนจากค่า DateOnly\n\n```arcade\nDay(DateOnly(1996, 11, 10))\n// returns 10\n```\n\n",
|
|
5992
5992
|
"completion": {
|
|
5993
5993
|
"label": "Day",
|
|
5994
5994
|
"detail": "Day(dateValue) -> Number",
|
|
@@ -5998,7 +5998,7 @@
|
|
|
5998
5998
|
"kind": 3,
|
|
5999
5999
|
"documentation": {
|
|
6000
6000
|
"kind": "markdown",
|
|
6001
|
-
"value": "ส่งคืนวันของเดือนของวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6001
|
+
"value": "ส่งคืนวันของเดือนของวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่ซึ่งจะรับวันของเดือนจาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6002
6002
|
}
|
|
6003
6003
|
},
|
|
6004
6004
|
"parametersInfo": {
|
|
@@ -6012,8 +6012,8 @@
|
|
|
6012
6012
|
"name": "hour",
|
|
6013
6013
|
"bundle": "core",
|
|
6014
6014
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
6015
|
-
"description": "
|
|
6016
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6015
|
+
"description": "ส่งคืนชั่วโมงของเวลาในค่าวันที่หรือเวลาที่กำหนด (0-23)",
|
|
6016
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนชั่วโมงของเวลาปัจจุบัน\n\n```arcade\nHour(Now())\n```\n\nส่งคืนชั่วโมงของเวลา\n\n```arcade\nHour(Date(2023, 1, 1, 12, 59, 23))\n// returns 12\n```\n\nส่งคืนชั่วโมงของเวลา\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
6017
6017
|
"completion": {
|
|
6018
6018
|
"label": "Hour",
|
|
6019
6019
|
"detail": "Hour(dateTimeValue) -> Number",
|
|
@@ -6023,7 +6023,7 @@
|
|
|
6023
6023
|
"kind": 3,
|
|
6024
6024
|
"documentation": {
|
|
6025
6025
|
"kind": "markdown",
|
|
6026
|
-
"value": "
|
|
6026
|
+
"value": "ส่งคืนชั่วโมงของเวลาในค่าวันที่หรือเวลาที่กำหนด (0-23)\n\n**พารามิเตอร์**\n\n- **dateTimeValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าวันที่หรือเวลาที่จะรับชั่วโมงของเวลาจาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่าเวลา\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6027
6027
|
}
|
|
6028
6028
|
},
|
|
6029
6029
|
"parametersInfo": {
|
|
@@ -6039,7 +6039,7 @@
|
|
|
6039
6039
|
"sinceVersion": "1.12",
|
|
6040
6040
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
6041
6041
|
"description": "ส่งคืนเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าตั้งแต่ 1-12 โดยที่มกราคมคือ `1` และธันวาคมคือ `12`",
|
|
6042
|
-
"examples": "\n##### ตัวอย่าง\n\nรับเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `12` สำหรับเดือนธันวาคม\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\
|
|
6042
|
+
"examples": "\n##### ตัวอย่าง\n\nรับเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `12` สำหรับเดือนธันวาคม\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\nรับเดือนของค่า DateOnly ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601\n\n```arcade\nISOMonth(DateOnly(1996, 0, 10))\n// returns 1, for January\n```\n\n",
|
|
6043
6043
|
"completion": {
|
|
6044
6044
|
"label": "ISOMonth",
|
|
6045
6045
|
"detail": "ISOMonth(dateValue) -> Number",
|
|
@@ -6049,7 +6049,7 @@
|
|
|
6049
6049
|
"kind": 3,
|
|
6050
6050
|
"documentation": {
|
|
6051
6051
|
"kind": "markdown",
|
|
6052
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าตั้งแต่ 1-12 โดยที่มกราคมคือ `1` และธันวาคมคือ `12`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6052
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าตั้งแต่ 1-12 โดยที่มกราคมคือ `1` และธันวาคมคือ `12`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่ซึ่งจะรับเดือน เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6053
6053
|
}
|
|
6054
6054
|
},
|
|
6055
6055
|
"parametersInfo": {
|
|
@@ -6064,7 +6064,7 @@
|
|
|
6064
6064
|
"sinceVersion": "1.12",
|
|
6065
6065
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
6066
6066
|
"description": "ส่งคืนสัปดาห์ในปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ช่วงค่าตั้งแต่ 1-53 โดยที่สัปดาห์แรกของปีคือ `1` และสัปดาห์สุดท้ายของปีคือ `52` หรือ `53` ขึ้นอยู่กับปี",
|
|
6067
|
-
"examples": "\n##### ตัวอย่าง\n\nรับสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `1` เนื่องจากวันที่นี้รวมอยู่ในสัปดาห์แรกของปีถัดไป\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\
|
|
6067
|
+
"examples": "\n##### ตัวอย่าง\n\nรับสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `1` เนื่องจากวันที่นี้รวมอยู่ในสัปดาห์แรกของปีถัดไป\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\nรับสัปดาห์ของค่า DateOnly ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601\n\n```arcade\nISOWeek(DateOnly(1996, 11, 10))\n// returns 50\n```\n\n",
|
|
6068
6068
|
"completion": {
|
|
6069
6069
|
"label": "ISOWeek",
|
|
6070
6070
|
"detail": "ISOWeek(dateValue) -> Number",
|
|
@@ -6074,7 +6074,7 @@
|
|
|
6074
6074
|
"kind": 3,
|
|
6075
6075
|
"documentation": {
|
|
6076
6076
|
"kind": "markdown",
|
|
6077
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนสัปดาห์ในปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ช่วงค่าตั้งแต่ 1-53 โดยที่สัปดาห์แรกของปีคือ `1` และสัปดาห์สุดท้ายของปีคือ `52` หรือ `53` ขึ้นอยู่กับปี\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6077
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนสัปดาห์ในปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ช่วงค่าตั้งแต่ 1-53 โดยที่สัปดาห์แรกของปีคือ `1` และสัปดาห์สุดท้ายของปีคือ `52` หรือ `53` ขึ้นอยู่กับปี\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่ซึ่งจะรับสัปดาห์ เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6078
6078
|
}
|
|
6079
6079
|
},
|
|
6080
6080
|
"parametersInfo": {
|
|
@@ -6089,7 +6089,7 @@
|
|
|
6089
6089
|
"sinceVersion": "1.12",
|
|
6090
6090
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
6091
6091
|
"description": "ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าจากวันที่ 1-7 โดยที่วันจันทร์คือ `1` และวันอาทิตย์คือ `7`",
|
|
6092
|
-
"examples": "\n##### ตัวอย่าง\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `3` สำหรับวันพุธ\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\
|
|
6092
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `3` สำหรับวันพุธ\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\nส่งคืนวันของสัปดาห์ของค่า DateOnly ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601\n\n```arcade\nISOWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
|
|
6093
6093
|
"completion": {
|
|
6094
6094
|
"label": "ISOWeekday",
|
|
6095
6095
|
"detail": "ISOWeekday(dateValue) -> Number",
|
|
@@ -6099,7 +6099,7 @@
|
|
|
6099
6099
|
"kind": 3,
|
|
6100
6100
|
"documentation": {
|
|
6101
6101
|
"kind": "markdown",
|
|
6102
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าจากวันที่ 1-7 โดยที่วันจันทร์คือ `1` และวันอาทิตย์คือ `7`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6102
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าจากวันที่ 1-7 โดยที่วันจันทร์คือ `1` และวันอาทิตย์คือ `7`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่ซึ่งจะส่งคืนวันของสัปดาห์จาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6103
6103
|
}
|
|
6104
6104
|
},
|
|
6105
6105
|
"parametersInfo": {
|
|
@@ -6114,7 +6114,7 @@
|
|
|
6114
6114
|
"sinceVersion": "1.12",
|
|
6115
6115
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
6116
6116
|
"description": "ส่งคืนปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601",
|
|
6117
|
-
"examples": "\n##### ตัวอย่าง\n\nรับปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ส่งคืน `1981` เนื่องจากวันที่นี้รวมอยู่ในสัปดาห์แรกของปีถัดไป\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\
|
|
6117
|
+
"examples": "\n##### ตัวอย่าง\n\nรับปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ส่งคืน `1981` เนื่องจากวันที่นี้รวมอยู่ในสัปดาห์แรกของปีถัดไป\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\nรับปีของค่า DateOnly ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601\n\n```arcade\nISOYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
|
|
6118
6118
|
"completion": {
|
|
6119
6119
|
"label": "ISOYear",
|
|
6120
6120
|
"detail": "ISOYear(dateValue) -> Number",
|
|
@@ -6124,7 +6124,7 @@
|
|
|
6124
6124
|
"kind": 3,
|
|
6125
6125
|
"documentation": {
|
|
6126
6126
|
"kind": "markdown",
|
|
6127
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6127
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่ซึ่งจะรับปีจาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6128
6128
|
}
|
|
6129
6129
|
},
|
|
6130
6130
|
"parametersInfo": {
|
|
@@ -6138,8 +6138,8 @@
|
|
|
6138
6138
|
"name": "millisecond",
|
|
6139
6139
|
"bundle": "core",
|
|
6140
6140
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
6141
|
-
"description": "
|
|
6142
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6141
|
+
"description": "ส่งคืนมิลลิวินาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด",
|
|
6142
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนมิลลิวินาทีของเวลาปัจจุบัน\n\n```arcade\nMillisecond(Now())\n```\n\nส่งคืนมิลลิวินาทีของเวลา\n\n```arcade\nMillisecond(Date(2023, 1, 1, 12, 59, 23, 999))\n// returns 999\n```\n\nส่งคืนมิลลิวินาทีของเวลา\n\n```arcade\nMillisecond(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
6143
6143
|
"completion": {
|
|
6144
6144
|
"label": "Millisecond",
|
|
6145
6145
|
"detail": "Millisecond(dateTimeValue) -> Number",
|
|
@@ -6149,7 +6149,7 @@
|
|
|
6149
6149
|
"kind": 3,
|
|
6150
6150
|
"documentation": {
|
|
6151
6151
|
"kind": "markdown",
|
|
6152
|
-
"value": "
|
|
6152
|
+
"value": "ส่งคืนมิลลิวินาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateTimeValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าวันที่หรือเวลาที่จะรับมิลลิวินาทีของเวลาจาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่าเวลา\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6153
6153
|
}
|
|
6154
6154
|
},
|
|
6155
6155
|
"parametersInfo": {
|
|
@@ -6164,8 +6164,8 @@
|
|
|
6164
6164
|
"name": "minute",
|
|
6165
6165
|
"bundle": "core",
|
|
6166
6166
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
6167
|
-
"description": "
|
|
6168
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6167
|
+
"description": "ส่งคืนนาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด",
|
|
6168
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนนาทีของเวลาปัจจุบัน\n\n```arcade\nMinute(Now())\n```\n\nส่งคืนนาทีของเวลา\n\n```arcade\nMinute(Date(2013, 1, 1, 2, 15, 23))\n// returns 15\n```\n\nส่งคืนนาทีของเวลา\n\n```arcade\nMinute(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
6169
6169
|
"completion": {
|
|
6170
6170
|
"label": "Minute",
|
|
6171
6171
|
"detail": "Minute(dateTimeValue) -> Number",
|
|
@@ -6175,7 +6175,7 @@
|
|
|
6175
6175
|
"kind": 3,
|
|
6176
6176
|
"documentation": {
|
|
6177
6177
|
"kind": "markdown",
|
|
6178
|
-
"value": "
|
|
6178
|
+
"value": "ส่งคืนนาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateTimeValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าวันที่หรือเวลาที่จะรับนาทีของเวลาจาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่าเวลา\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6179
6179
|
}
|
|
6180
6180
|
},
|
|
6181
6181
|
"parametersInfo": {
|
|
@@ -6190,7 +6190,7 @@
|
|
|
6190
6190
|
"bundle": "core",
|
|
6191
6191
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
6192
6192
|
"description": "ส่งคืนเดือนของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-11 โดยที่มกราคมคือ `0` และธันวาคมคือ `11`",
|
|
6193
|
-
"examples": "\n##### ตัวอย่าง\n\nรับเดือนของวันที่ที่กำหนด
|
|
6193
|
+
"examples": "\n##### ตัวอย่าง\n\nรับเดือนของวันที่ที่กำหนด ค่าสามารถเป็นได้ตั้งแต่ 0-11 โดยที่ `0` จะแทนมกราคม และ `11` แทนธันวาคม\n\n```arcade\nMonth(Date(1980, 11, 31))\n// returns 11\n```\n\nรับเดือนของค่า DateOnly ที่กำหนด\n\n```arcade\nMonth(DateOnly(1996, 0, 31))\n// returns 0, for the month of January\n```\n\n",
|
|
6194
6194
|
"completion": {
|
|
6195
6195
|
"label": "Month",
|
|
6196
6196
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -6200,7 +6200,7 @@
|
|
|
6200
6200
|
"kind": 3,
|
|
6201
6201
|
"documentation": {
|
|
6202
6202
|
"kind": "markdown",
|
|
6203
|
-
"value": "ส่งคืนเดือนของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-11 โดยที่มกราคมคือ `0` และธันวาคมคือ `11`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6203
|
+
"value": "ส่งคืนเดือนของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-11 โดยที่มกราคมคือ `0` และธันวาคมคือ `11`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่ซึ่งจะรับเดือน เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6204
6204
|
}
|
|
6205
6205
|
},
|
|
6206
6206
|
"parametersInfo": {
|
|
@@ -6213,8 +6213,8 @@
|
|
|
6213
6213
|
"name": "now",
|
|
6214
6214
|
"bundle": "core",
|
|
6215
6215
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#now",
|
|
6216
|
-
"description": "
|
|
6217
|
-
"examples": "\n##### ตัวอย่าง\n\n
|
|
6216
|
+
"description": "สร้างค่าวันที่ซึ่งแสดงวันที่และเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์",
|
|
6217
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนวันที่และเวลาปัจจุบันในโซนเวลาเริ่มต้นของโปรไฟล์\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nNow()\n```\n\n",
|
|
6218
6218
|
"completion": {
|
|
6219
6219
|
"label": "Now",
|
|
6220
6220
|
"detail": "Now() -> Date",
|
|
@@ -6224,7 +6224,7 @@
|
|
|
6224
6224
|
"kind": 3,
|
|
6225
6225
|
"documentation": {
|
|
6226
6226
|
"kind": "markdown",
|
|
6227
|
-
"value": "
|
|
6227
|
+
"value": "สร้างค่าวันที่ซึ่งแสดงวันที่และเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6228
6228
|
}
|
|
6229
6229
|
},
|
|
6230
6230
|
"parametersInfo": {
|
|
@@ -6238,8 +6238,8 @@
|
|
|
6238
6238
|
"name": "second",
|
|
6239
6239
|
"bundle": "core",
|
|
6240
6240
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
6241
|
-
"description": "
|
|
6242
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6241
|
+
"description": "ส่งคืนวินาทีของเวลาในค่าวันที่หรือเวลาที่กำหนด",
|
|
6242
|
+
"examples": "\n##### ตัวอย่าง\n\nรับวินาทีของเวลาปัจจุบัน\n\n```arcade\nSecond(Now())\n```\n\nรับวินาทีของเวลา\n\n```arcade\nSecond(Date(2023, 1, 1, 2, 59, 01))\n// returns 1\n```\n\nรับวินาทีของเวลา\n\n```arcade\nSecond(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
6243
6243
|
"completion": {
|
|
6244
6244
|
"label": "Second",
|
|
6245
6245
|
"detail": "Second(dateTimeValue) -> Number",
|
|
@@ -6249,7 +6249,7 @@
|
|
|
6249
6249
|
"kind": 3,
|
|
6250
6250
|
"documentation": {
|
|
6251
6251
|
"kind": "markdown",
|
|
6252
|
-
"value": "
|
|
6252
|
+
"value": "ส่งคืนวินาทีของเวลาในค่าวันที่หรือเวลาที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateTimeValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าวันที่หรือเวลาที่จะรับวินาทีของเวลาจาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่าเวลา\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6253
6253
|
}
|
|
6254
6254
|
},
|
|
6255
6255
|
"parametersInfo": {
|
|
@@ -6265,8 +6265,8 @@
|
|
|
6265
6265
|
"bundle": "core",
|
|
6266
6266
|
"sinceVersion": "1.24",
|
|
6267
6267
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
6268
|
-
"description": "
|
|
6269
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6268
|
+
"description": "สร้างค่าเวลาซึ่งแสดงเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์",
|
|
6269
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนเวลาที่แสดงในปัจจุบันโดยใช้โซนเวลาเริ่มต้นของโปรไฟล์\n\n```arcade\n// Time represents 12:41:20 PM\nTime()\n```\n\n",
|
|
6270
6270
|
"completion": {
|
|
6271
6271
|
"label": "Time",
|
|
6272
6272
|
"detail": "Time() -> Time",
|
|
@@ -6276,7 +6276,7 @@
|
|
|
6276
6276
|
"kind": 3,
|
|
6277
6277
|
"documentation": {
|
|
6278
6278
|
"kind": "markdown",
|
|
6279
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6279
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าเวลาซึ่งแสดงเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6280
6280
|
}
|
|
6281
6281
|
},
|
|
6282
6282
|
"parametersInfo": {
|
|
@@ -6290,8 +6290,8 @@
|
|
|
6290
6290
|
"bundle": "core",
|
|
6291
6291
|
"sinceVersion": "1.24",
|
|
6292
6292
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
6293
|
-
"description": "
|
|
6294
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6293
|
+
"description": "สร้างค่าเวลาจากอินพุทที่แสดงชั่วโมง นาที วินาที และมิลลิวินาที",
|
|
6294
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างค่าเวลาจากอินพุทที่แสดงชั่วโมง นาที วินาที และมิลลิวินาที\n\n```arcade\nTime(13, 20);\n// returns a Time value of 13:20:00\n \nTime(2, 59, 23)\n// returns a Time value of 02:59:23\n \nTime(15, 47, 0, 474)\n// returns a Time value of 15:47:00.474\n```\n\n",
|
|
6295
6295
|
"completion": {
|
|
6296
6296
|
"label": "Time",
|
|
6297
6297
|
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
@@ -6301,7 +6301,7 @@
|
|
|
6301
6301
|
"kind": 3,
|
|
6302
6302
|
"documentation": {
|
|
6303
6303
|
"kind": "markdown",
|
|
6304
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6304
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าเวลาจากอินพุทที่แสดงชั่วโมง นาที วินาที และมิลลิวินาที\n\n**พารามิเตอร์**\n\n- **hours**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขที่แสดงชั่วโมงของค่าเวลา (0-23) หากค่านี้อยู่นอกช่วงปกติ (0-23), ฟังก์ชันจะส่งคืน `null`\n- **minutes**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขที่แสดงนาทีของค่าเวลา (0-59) หากค่านี้อยู่นอกช่วงปกติ (0-59), ฟังก์ชันจะส่งคืน `null`\n- **seconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขที่แสดงวินาทีของค่าเวลา (0-59) หากค่านี้อยู่นอกช่วงปกติ (0-59), ฟังก์ชันจะส่งคืน `null`\n- **milliseconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขที่แสดงมิลลิวินาทีของค่าเวลา (0-999) หากค่านี้อยู่นอกช่วงปกติ (0-999), ฟังก์ชันจะส่งคืน `null`\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6305
6305
|
}
|
|
6306
6306
|
},
|
|
6307
6307
|
"parametersInfo": {
|
|
@@ -6315,8 +6315,8 @@
|
|
|
6315
6315
|
"bundle": "core",
|
|
6316
6316
|
"sinceVersion": "1.24",
|
|
6317
6317
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
6318
|
-
"description": "
|
|
6319
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6318
|
+
"description": "สร้างค่าเวลาจากตัวเลขที่กำหนด ซึ่งแสดงมิลลิวินาทีนับจากเที่ยงคืน",
|
|
6319
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนเวลาจากตัวเลขของมิลลิวินาทีนับจากเที่ยงคืน\n\n```arcade\nTime(8119800);\n// returns a Time value of 02:15:19.800\n```\n\nส่งคืนเวลาจากตัวเลขของมิลลิวินาทีนับจากเที่ยงคืน\n\n```arcade\nTime(86400001);\n// returns null - the input value exceeds the number of milliseconds in a day\n```\n\n",
|
|
6320
6320
|
"completion": {
|
|
6321
6321
|
"label": "Time",
|
|
6322
6322
|
"detail": "Time(numValue) -> Time",
|
|
@@ -6326,7 +6326,7 @@
|
|
|
6326
6326
|
"kind": 3,
|
|
6327
6327
|
"documentation": {
|
|
6328
6328
|
"kind": "markdown",
|
|
6329
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6329
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าเวลาจากตัวเลขที่กำหนด ซึ่งแสดงมิลลิวินาทีนับจากเที่ยงคืน\n\n**พารามิเตอร์**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขมิลลิวินาทีนับจากเที่ยงคืน หากค่านี้มากกว่า 86,400,000 (จำนวนสูงสุดของมิลลิวินาทีในหนึ่งวัน) หรือน้อยกว่า 0 ฟังก์ชันจะส่งคืน `null`\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6330
6330
|
}
|
|
6331
6331
|
},
|
|
6332
6332
|
"parametersInfo": {
|
|
@@ -6340,8 +6340,8 @@
|
|
|
6340
6340
|
"bundle": "core",
|
|
6341
6341
|
"sinceVersion": "1.24",
|
|
6342
6342
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
6343
|
-
"description": "
|
|
6344
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6343
|
+
"description": "สร้างค่าเวลาจากอินพุทข้อความที่แสดงเวลา พร้อมอินพุทตัวเลือกเสริมที่ระบุรูปแบบของข้อความ",
|
|
6344
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างค่าเวลาจากค่าข้อความที่แสดงเวลา\n\n```arcade\nTime(\"1:20 PM\");\n// returns a Time value of 13:20:00\n```\n\nสร้างค่าเวลาจากค่าข้อความที่แสดงเวลาและการจัดรูปแบบ\n\n```arcade\nTime(\"12 05 04\", \"HH MM ss\")\n// returns a Time value of 12:05:04\n```\n\n",
|
|
6345
6345
|
"completion": {
|
|
6346
6346
|
"label": "Time",
|
|
6347
6347
|
"detail": "Time(textValue, format?) -> Time",
|
|
@@ -6351,7 +6351,7 @@
|
|
|
6351
6351
|
"kind": 3,
|
|
6352
6352
|
"documentation": {
|
|
6353
6353
|
"kind": "markdown",
|
|
6354
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6354
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าเวลาจากอินพุทข้อความที่แสดงเวลา พร้อมอินพุทตัวเลือกเสริมที่ระบุรูปแบบของข้อความ\n\n**พารามิเตอร์**\n\n- **textValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่แสดงเวลา\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่ระบุรูปแบบของอินพุท `timeValue` \nค่าที่เป็นไปได้: \n - `h`: ชั่วโมงแบบพลเรือน ไม่แพ็ด (0 - 12) \n - `hh`: ชั่วโมงแบบพลเรือน แพ็ด (00 - 12) \n - `H`: ชั่วโมงแบบทหาร ไม่แพ็ด (0 - 24) \n - `HH`: ชั่วโมงแบบทหาร แพ็ด (00 - 24) \n - `m`: นาที ไม่แพ็ด (0 - 59) \n - `mm`: นาที แพ็ด (00 - 59) \n - `s`: วินาที ไม่แพ็ด (0 - 59) \n - `ss`: วินาที แพ็ด (00 - 59) \n - `A`: AM/PM \n\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6355
6355
|
}
|
|
6356
6356
|
},
|
|
6357
6357
|
"parametersInfo": {
|
|
@@ -6365,8 +6365,8 @@
|
|
|
6365
6365
|
"bundle": "core",
|
|
6366
6366
|
"sinceVersion": "1.24",
|
|
6367
6367
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
6368
|
-
"description": "
|
|
6369
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6368
|
+
"description": "สร้างค่าเวลาจากวันที่ที่กำหนด",
|
|
6369
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนเวลาจากวันที่ที่กำหนด\n\n```arcade\nTime(Date(2008,10,11,10,30));\n// returns a Time value of 10:30:00 AM\n```\n\n",
|
|
6370
6370
|
"completion": {
|
|
6371
6371
|
"label": "Time",
|
|
6372
6372
|
"detail": "Time(dateValue) -> Time",
|
|
@@ -6376,7 +6376,7 @@
|
|
|
6376
6376
|
"kind": 3,
|
|
6377
6377
|
"documentation": {
|
|
6378
6378
|
"kind": "markdown",
|
|
6379
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6379
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าเวลาจากวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - วันที่ซึ่งจะรับเวลาจาก\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6380
6380
|
}
|
|
6381
6381
|
},
|
|
6382
6382
|
"parametersInfo": {
|
|
@@ -6390,8 +6390,8 @@
|
|
|
6390
6390
|
"bundle": "core",
|
|
6391
6391
|
"sinceVersion": "1.24",
|
|
6392
6392
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time6",
|
|
6393
|
-
"description": "
|
|
6394
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6393
|
+
"description": "สร้างสำเนาของค่าเวลา",
|
|
6394
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างสำเนาของค่าเวลา\n\n```arcade\nvar originalTime = Time(23,32,00)\nvar copiedTime = Time(originalTime)\nreturn copiedTime;\n```\n\n",
|
|
6395
6395
|
"completion": {
|
|
6396
6396
|
"label": "Time",
|
|
6397
6397
|
"detail": "Time(timeValue) -> Time",
|
|
@@ -6401,7 +6401,7 @@
|
|
|
6401
6401
|
"kind": 3,
|
|
6402
6402
|
"documentation": {
|
|
6403
6403
|
"kind": "markdown",
|
|
6404
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6404
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างสำเนาของค่าเวลา\n\n**พารามิเตอร์**\n\n- **timeValue**: [Time](https://developers.arcgis.com/arcade/guide/types/#time) - ค่าเวลาที่จะคัดลอก\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"
|
|
6405
6405
|
}
|
|
6406
6406
|
},
|
|
6407
6407
|
"parametersInfo": {
|
|
@@ -6441,8 +6441,8 @@
|
|
|
6441
6441
|
"bundle": "core",
|
|
6442
6442
|
"sinceVersion": "1.24",
|
|
6443
6443
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
6444
|
-
"description": "
|
|
6445
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6444
|
+
"description": "ส่งคืนโซนเวลาของวันที่ที่กำหนด โซนเวลาจะเป็นหนึ่งในค่าต่อไปนี้:\n\n- ข้อความแทนรายการในฐานข้อมูลโซนเวลา IANA (เช่น `America/New_York`)\n\n- ข้อความแทนชั่วโมงและนาทีซึ่งควรเพิ่มลงใน UTC (เช่น `+07:00` หรือ `-03:00`)\n\n- `system` - โซนเวลาจะอิงตามโซนเวลาท้องถิ่นบนไคลเอ็นต์ของโซนเวลาท้องถิ่นของระบบ\n\n- `UTC` - เวลาสากลเชิงพิกัด\n\n- `Unknown` - ไม่ได้กำหนดข้อมูลโซนเวลาไว้",
|
|
6445
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนโซนเวลาของวันที่\n\n```arcade\nvar natlPizzaDay = Date(2024, 1, 9, 0, 0, 0, 0, \"America/Los_Angeles\");\nTimeZone(natlPizzaDay);\n// Returns 'America/Los_Angeles'\n```\n\n",
|
|
6446
6446
|
"completion": {
|
|
6447
6447
|
"label": "TimeZone",
|
|
6448
6448
|
"detail": "TimeZone(dateValue) -> Text",
|
|
@@ -6452,7 +6452,7 @@
|
|
|
6452
6452
|
"kind": 3,
|
|
6453
6453
|
"documentation": {
|
|
6454
6454
|
"kind": "markdown",
|
|
6455
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6455
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนโซนเวลาของวันที่ที่กำหนด โซนเวลาจะเป็นหนึ่งในค่าต่อไปนี้:\n\n- ข้อความแทนรายการในฐานข้อมูลโซนเวลา IANA (เช่น `America/New_York`)\n\n- ข้อความแทนชั่วโมงและนาทีซึ่งควรเพิ่มลงใน UTC (เช่น `+07:00` หรือ `-03:00`)\n\n- `system` - โซนเวลาจะอิงตามโซนเวลาท้องถิ่นบนไคลเอ็นต์ของโซนเวลาท้องถิ่นของระบบ\n\n- `UTC` - เวลาสากลเชิงพิกัด\n\n- `Unknown` - ไม่ได้กำหนดข้อมูลโซนเวลาไว้\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - ค่าวันที่ซึ่งจะรับโซนเวลาจาก\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
6456
6456
|
}
|
|
6457
6457
|
},
|
|
6458
6458
|
"parametersInfo": {
|
|
@@ -6466,8 +6466,8 @@
|
|
|
6466
6466
|
"bundle": "core",
|
|
6467
6467
|
"sinceVersion": "1.24",
|
|
6468
6468
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
6469
|
-
"description": "
|
|
6470
|
-
"examples": "\n##### ตัวอย่าง\n\
|
|
6469
|
+
"description": "ส่งคืนออฟเซ็ตโซนเวลาเป็นมิลลิวินาทีจาก UTC สำหรับวันที่ที่กำหนด",
|
|
6470
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนออฟเซ็ตโซนเวลาเป็นมิลลิวินาทีจาก UTC\n\n```arcade\nvar inputDate = Date(2011, 10, 11, 8, 0, 0, 0, \"America/New_York\")\nTimeZoneOffset(inputDate);\n// returns -18000000\n```\n\n",
|
|
6471
6471
|
"completion": {
|
|
6472
6472
|
"label": "TimeZoneOffset",
|
|
6473
6473
|
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
@@ -6477,7 +6477,7 @@
|
|
|
6477
6477
|
"kind": 3,
|
|
6478
6478
|
"documentation": {
|
|
6479
6479
|
"kind": "markdown",
|
|
6480
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6480
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนออฟเซ็ตโซนเวลาเป็นมิลลิวินาทีจาก UTC สำหรับวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - ค่าวันที่ซึ่งจะรับออฟเซ็ตโซนเวลาจาก\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6481
6481
|
}
|
|
6482
6482
|
},
|
|
6483
6483
|
"parametersInfo": {
|
|
@@ -6490,8 +6490,8 @@
|
|
|
6490
6490
|
"name": "today",
|
|
6491
6491
|
"bundle": "core",
|
|
6492
6492
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#today",
|
|
6493
|
-
"description": "
|
|
6494
|
-
"examples": "\n##### ตัวอย่าง\n\nส่งคืนวันที่ปัจจุบัน
|
|
6493
|
+
"description": "ส่งคืนวันที่ปัจจุบัน ณ เที่ยงคืนในโซนเวลาของบริบทการดำเนินการของโปรไฟล์",
|
|
6494
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนวันที่ปัจจุบัน ณ เที่ยงคืน เช่น Mon Oct 24 2016 00:00:00 GMT-0700 (PDT)\n\n```arcade\nToday()\n```\n\n",
|
|
6495
6495
|
"completion": {
|
|
6496
6496
|
"label": "Today",
|
|
6497
6497
|
"detail": "Today() -> Date",
|
|
@@ -6501,7 +6501,7 @@
|
|
|
6501
6501
|
"kind": 3,
|
|
6502
6502
|
"documentation": {
|
|
6503
6503
|
"kind": "markdown",
|
|
6504
|
-
"value": "
|
|
6504
|
+
"value": "ส่งคืนวันที่ปัจจุบัน ณ เที่ยงคืนในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6505
6505
|
}
|
|
6506
6506
|
},
|
|
6507
6507
|
"parametersInfo": {
|
|
@@ -6516,7 +6516,7 @@
|
|
|
6516
6516
|
"sinceVersion": "1.1",
|
|
6517
6517
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#tolocal",
|
|
6518
6518
|
"description": "สร้างค่าวันที่ใหม่ที่ตรงกับ epoch ของวันที่อินพุท และตั้งค่าโซนเวลาเป็นโซนเวลาท้องถิ่นหรือระบบของไคลเอ็นต์",
|
|
6519
|
-
"examples": "\n##### ตัวอย่าง\n\n
|
|
6519
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างวันที่ในเวลาท้องถิ่น ณ epoch เดียวกันกับวันที่อินพุท\n\n```arcade\n// Date represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nToLocal(Timestamp())\n```\n\n",
|
|
6520
6520
|
"completion": {
|
|
6521
6521
|
"label": "ToLocal",
|
|
6522
6522
|
"detail": "ToLocal(inputDate) -> Date",
|
|
@@ -6526,7 +6526,7 @@
|
|
|
6526
6526
|
"kind": 3,
|
|
6527
6527
|
"documentation": {
|
|
6528
6528
|
"kind": "markdown",
|
|
6529
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าวันที่ใหม่ที่ตรงกับ epoch ของวันที่อินพุท และตั้งค่าโซนเวลาเป็นโซนเวลาท้องถิ่นหรือระบบของไคลเอ็นต์\n\n**พารามิเตอร์**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) -
|
|
6529
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าวันที่ใหม่ที่ตรงกับ epoch ของวันที่อินพุท และตั้งค่าโซนเวลาเป็นโซนเวลาท้องถิ่นหรือระบบของไคลเอ็นต์\n\n**พารามิเตอร์**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - ค่าวันที่ซึ่งจะแสดงในเวลาท้องถิ่นของไคลเอ็นต์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6530
6530
|
}
|
|
6531
6531
|
},
|
|
6532
6532
|
"parametersInfo": {
|
|
@@ -6540,8 +6540,8 @@
|
|
|
6540
6540
|
"bundle": "core",
|
|
6541
6541
|
"sinceVersion": "1.1",
|
|
6542
6542
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#toutc",
|
|
6543
|
-
"description": "
|
|
6544
|
-
"examples": "\n##### ตัวอย่าง\n\n
|
|
6543
|
+
"description": "สร้างค่าวันที่ใหม่ซึ่งตรงกับ epoch ของวันที่อินพุท และตั้งค่าโซนเวลาเป็น UTC (เวลาสากลเชิงพิกัด)",
|
|
6544
|
+
"examples": "\n##### ตัวอย่าง\n\nสร้างวันที่ในเวลา UTC ณ epoch เดียวกันกับวันที่อินพุท\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nNow()\n// Date represents Jan 27, 2023, 8:41:20 PM UTC\nToUTC(Now())\n```\n\n",
|
|
6545
6545
|
"completion": {
|
|
6546
6546
|
"label": "ToUTC",
|
|
6547
6547
|
"detail": "ToUTC(inputDate) -> Date",
|
|
@@ -6551,7 +6551,7 @@
|
|
|
6551
6551
|
"kind": 3,
|
|
6552
6552
|
"documentation": {
|
|
6553
6553
|
"kind": "markdown",
|
|
6554
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n
|
|
6554
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าวันที่ใหม่ซึ่งตรงกับ epoch ของวันที่อินพุท และตั้งค่าโซนเวลาเป็น UTC (เวลาสากลเชิงพิกัด)\n\n**พารามิเตอร์**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - ค่าวันที่ซึ่งจะแสดงในเวลา UTC\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
6555
6555
|
}
|
|
6556
6556
|
},
|
|
6557
6557
|
"parametersInfo": {
|
|
@@ -6566,7 +6566,7 @@
|
|
|
6566
6566
|
"sinceVersion": "1.14",
|
|
6567
6567
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
6568
6568
|
"description": "ส่งคืนเลขสัปดาห์ในปีของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-53 โดยที่สัปดาห์แรกของปีคือ `0` และสัปดาห์สุดท้ายของปีคือ `51` `52` หรือ `53` ขึ้นอยู่กับปี สัปดาห์แรกและสัปดาห์สุดท้าย อาจไม่ได้มีความยาวครบเจ็ดวัน",
|
|
6569
|
-
"examples": "\n##### ตัวอย่าง\n\nใช้ค่าเริ่มต้นในส่วนวันเริ่มต้นของสัปดาห์ (วันอาทิตย์)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nตั้งค่าวันเริ่มต้นของสัปดาห์เป็นวันพฤหัสบดี\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nตั้งค่าวันเริ่มต้นของสัปดาห์เป็นวันศุกร์\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\
|
|
6569
|
+
"examples": "\n##### ตัวอย่าง\n\nใช้ค่าเริ่มต้นในส่วนวันเริ่มต้นของสัปดาห์ (วันอาทิตย์)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nตั้งค่าวันเริ่มต้นของสัปดาห์เป็นวันพฤหัสบดี\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nตั้งค่าวันเริ่มต้นของสัปดาห์เป็นวันศุกร์\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\nส่งคืนสัปดาห์จากค่า DateOnly\n\n```arcade\nWeek(DateOnly(1996, 11, 10))\n// returns 49\n```\n\n",
|
|
6570
6570
|
"completion": {
|
|
6571
6571
|
"label": "Week",
|
|
6572
6572
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -6576,7 +6576,7 @@
|
|
|
6576
6576
|
"kind": 3,
|
|
6577
6577
|
"documentation": {
|
|
6578
6578
|
"kind": "markdown",
|
|
6579
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเลขสัปดาห์ในปีของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-53 โดยที่สัปดาห์แรกของปีคือ `0` และสัปดาห์สุดท้ายของปีคือ `51` `52` หรือ `53` ขึ้นอยู่กับปี สัปดาห์แรกและสัปดาห์สุดท้าย อาจไม่ได้มีความยาวครบเจ็ดวัน\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6579
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเลขสัปดาห์ในปีของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-53 โดยที่สัปดาห์แรกของปีคือ `0` และสัปดาห์สุดท้ายของปีคือ `51` `52` หรือ `53` ขึ้นอยู่กับปี สัปดาห์แรกและสัปดาห์สุดท้าย อาจไม่ได้มีความยาวครบเจ็ดวัน\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่หรือ DateOnly ซึ่งจะรับสัปดาห์จาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขจะแทนวันเริ่มต้นสัปดาห์ วันอาทิตย์ = 0; วันจันทร์ = 1; วันอังคาร = 2; วันพุธ = 3; วันพฤหัสบดี = 4; วันศุกร์ = 5; วันเสาร์ = 6 ค่าเริ่มต้นคือ `0` (วันอาทิตย์)\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6580
6580
|
}
|
|
6581
6581
|
},
|
|
6582
6582
|
"parametersInfo": {
|
|
@@ -6590,7 +6590,7 @@
|
|
|
6590
6590
|
"bundle": "core",
|
|
6591
6591
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
6592
6592
|
"description": "ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ช่วงค่าจาก 0-6 โดยที่วันอาทิตย์คือ `0` และวันเสาร์คือ `6`",
|
|
6593
|
-
"examples": "\n##### ตัวอย่าง\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ส่งคืน `3` สำหรับวันพุธ\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\
|
|
6593
|
+
"examples": "\n##### ตัวอย่าง\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ส่งคืน `3` สำหรับวันพุธ\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\nส่งคืนวันของสัปดาห์ของค่า DateOnly ที่กำหนด\n\n```arcade\nWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
|
|
6594
6594
|
"completion": {
|
|
6595
6595
|
"label": "Weekday",
|
|
6596
6596
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -6600,7 +6600,7 @@
|
|
|
6600
6600
|
"kind": 3,
|
|
6601
6601
|
"documentation": {
|
|
6602
6602
|
"kind": "markdown",
|
|
6603
|
-
"value": "ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ช่วงค่าจาก 0-6 โดยที่วันอาทิตย์คือ `0` และวันเสาร์คือ `6`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6603
|
+
"value": "ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ช่วงค่าจาก 0-6 โดยที่วันอาทิตย์คือ `0` และวันเสาร์คือ `6`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่หรือ DateOnly ซึ่งจะส่งคืนวันของสัปดาห์จาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6604
6604
|
}
|
|
6605
6605
|
},
|
|
6606
6606
|
"parametersInfo": {
|
|
@@ -6614,7 +6614,7 @@
|
|
|
6614
6614
|
"bundle": "core",
|
|
6615
6615
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
6616
6616
|
"description": "ส่งคืนปีของวันที่ที่กำหนด",
|
|
6617
|
-
"examples": "\n##### ตัวอย่าง\n\nรับปีของวันที่ปัจจุบัน\n\n```arcade\nYear(Now())\n```\n\
|
|
6617
|
+
"examples": "\n##### ตัวอย่าง\n\nรับปีของวันที่ปัจจุบัน\n\n```arcade\nYear(Now())\n```\n\nรับปีของค่า DateOnly ที่กำหนด\n\n```arcade\nYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
|
|
6618
6618
|
"completion": {
|
|
6619
6619
|
"label": "Year",
|
|
6620
6620
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -6624,7 +6624,7 @@
|
|
|
6624
6624
|
"kind": 3,
|
|
6625
6625
|
"documentation": {
|
|
6626
6626
|
"kind": "markdown",
|
|
6627
|
-
"value": "ส่งคืนปีของวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) -
|
|
6627
|
+
"value": "ส่งคืนปีของวันที่ที่กำหนด\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่หรือ DateOnly ซึ่งจะรับปีจาก เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6628
6628
|
}
|
|
6629
6629
|
},
|
|
6630
6630
|
"parametersInfo": {
|
|
@@ -6746,7 +6746,7 @@
|
|
|
6746
6746
|
"bundle": "core",
|
|
6747
6747
|
"sinceVersion": "1.12",
|
|
6748
6748
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#back",
|
|
6749
|
-
"description": "ส่งคืนองค์ประกอบสุดท้ายของอาร์เรย์
|
|
6749
|
+
"description": "ส่งคืนองค์ประกอบสุดท้ายของอาร์เรย์ หากอาร์เรย์อินพุทว่างเปล่า การประเมินผลนิพจน์จะล้มเหลว",
|
|
6750
6750
|
"examples": "\n##### ตัวอย่าง\n\nส่งคืน `'gray'`\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nBack(colors)\n```\n\n",
|
|
6751
6751
|
"completion": {
|
|
6752
6752
|
"label": "Back",
|
|
@@ -6757,7 +6757,7 @@
|
|
|
6757
6757
|
"kind": 3,
|
|
6758
6758
|
"documentation": {
|
|
6759
6759
|
"kind": "markdown",
|
|
6760
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนองค์ประกอบสุดท้ายของอาร์เรย์
|
|
6760
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](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\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)"
|
|
6761
6761
|
}
|
|
6762
6762
|
},
|
|
6763
6763
|
"parametersInfo": {
|
|
@@ -6921,7 +6921,7 @@
|
|
|
6921
6921
|
"bundle": "core",
|
|
6922
6922
|
"sinceVersion": "1.12",
|
|
6923
6923
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#front",
|
|
6924
|
-
"description": "ส่งคืนองค์ประกอบแรกของอาร์เรย์
|
|
6924
|
+
"description": "ส่งคืนองค์ประกอบแรกของอาร์เรย์ หากอาร์เรย์อินพุทว่างเปล่า การประเมินผลนิพจน์จะล้มเหลว",
|
|
6925
6925
|
"examples": "\n##### ตัวอย่าง\n\nส่งคืน `'orange'`\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nFront(colors)\n```\n\n",
|
|
6926
6926
|
"completion": {
|
|
6927
6927
|
"label": "Front",
|
|
@@ -6932,7 +6932,7 @@
|
|
|
6932
6932
|
"kind": 3,
|
|
6933
6933
|
"documentation": {
|
|
6934
6934
|
"kind": "markdown",
|
|
6935
|
-
"value": "**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนองค์ประกอบแรกของอาร์เรย์
|
|
6935
|
+
"value": "**[ตั้งแต่เวอร์ชัน 1.12](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\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)"
|
|
6936
6936
|
}
|
|
6937
6937
|
},
|
|
6938
6938
|
"parametersInfo": {
|