[{"id":"constants","title":"ค่าคงที่","items":[{"type":"constant","name":"infinity","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/constants/#infinity","description":"แทนค่าที่มากกว่าตัวเลขอื่นๆ สามารถใช้ `-Infinity` เป็นค่าที่น้อยกว่าตัวเลขอื่นๆ ได้ด้วย","examples":"\n**ตัวอย่าง**\n\nคำนวณค่าสูงสุดของสี่ค่าฟิลด์\n\n```arcade\nvar values = [ $feature.field1, $feature.field2, $feature.field3, $feature.field4 ];\nvar maxValue = -Infinity;\n\nfor(var i in values){\n  maxValue = IIF(values[i] > maxValue, values[i], maxValue);\n}\n\nreturn maxValue;\n```\n\n","completion":{"label":"Infinity","detail":"Infinity","insertText":"Infinity","insertTextMode":2,"insertTextFormat":1,"kind":21,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแทนค่าที่มากกว่าตัวเลขอื่นๆ สามารถใช้ `-Infinity` เป็นค่าที่น้อยกว่าตัวเลขอื่นๆ ได้ด้วย"}}},{"type":"constant","name":"pi","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/constants/#pi","description":"ค่าเส้นรอบวงของวงกลมหารด้วยเส้นผ่านศูนย์กลาง ค่าประมาณเท่ากับ `3.14159`","examples":"\n**ตัวอย่าง**\n\nส่งคืนพื้นที่ของฟีเจอร์วงกลม\n\n```arcade\nvar r = $feature.radius;\nPI * r * r;\n```\n\n","completion":{"label":"PI","detail":"PI","insertText":"PI","insertTextMode":2,"insertTextFormat":1,"kind":21,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nค่าเส้นรอบวงของวงกลมหารด้วยเส้นผ่านศูนย์กลาง ค่าประมาณเท่ากับ `3.14159`"}}},{"type":"constant","name":"textformatting.backwardslash","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/constants/#textformatting.backwardslash","description":"แทรกอักขระแบ็คสแลช `\\` ลงในข้อความ","examples":"\n**ตัวอย่าง**\n\nส่งคืน '\\\\\\serverName\\foo\\bar'\n\n```arcade\nTextFormatting.BackwardSlash + TextFormatting.BackwardSlash + $feature.FILE_PATH\n```\n\n","completion":{"label":"TextFormatting.BackwardSlash","detail":"TextFormatting.BackwardSlash","insertText":"TextFormatting.BackwardSlash","insertTextMode":2,"insertTextFormat":1,"kind":21,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแทรกอักขระแบ็คสแลช `\\` ลงในข้อความ"}}},{"type":"constant","name":"textformatting.doublequote","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/constants/#textformatting.doublequote","description":"แทรกอักขระเครื่องหมายอัญประกาศคู่ `\"` ลงในข้อความ","examples":"\n**ตัวอย่าง**\n\nส่งคืน 'Nicholas \"Nick\" Anderson'\n\n```arcade\n$feature.NAME + \" \" + TextFormatting.DoubleQuote + $feature.ALIAS + TextFormatting.DoubleQuote + \" \" + $feature.SURNAME\n```\n\n","completion":{"label":"TextFormatting.DoubleQuote","detail":"TextFormatting.DoubleQuote","insertText":"TextFormatting.DoubleQuote","insertTextMode":2,"insertTextFormat":1,"kind":21,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแทรกอักขระเครื่องหมายอัญประกาศคู่ `\"` ลงในข้อความ"}}},{"type":"constant","name":"textformatting.forwardslash","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/constants/#textformatting.forwardslash","description":"แทรกอักขระฟอร์เวิร์ดสแลช `/` ลงในข้อความ","examples":"\n**ตัวอย่าง**\n\nส่งคืน '151/low'\n\n```arcade\n$feature.POP_DENSITY + TextFormatting.ForwardSlash + $feature.CLASS\n```\n\n","completion":{"label":"TextFormatting.ForwardSlash","detail":"TextFormatting.ForwardSlash","insertText":"TextFormatting.ForwardSlash","insertTextMode":2,"insertTextFormat":1,"kind":21,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแทรกอักขระฟอร์เวิร์ดสแลช `/` ลงในข้อความ"}}},{"type":"constant","name":"textformatting.newline","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/constants/#textformatting.newline","description":"แทรกบรรทัดใหม่ หรือขึ้นบรรทัดใหม่ ลงในข้อความ **ไม่** รองรับหลายป้ายกำกับใน ArcGIS API 3.x for JavaScript และใน ArcGIS Online Map Viewer Classic","examples":"\n**ตัวอย่าง**\n\nส่งคืน \"T2N R1W\"\n\n```arcade\n\"T\" + $feature.TOWNSHIP + TextFormatting.NewLine + \"R\" + $feature.RANGE\n```\n\n","completion":{"label":"TextFormatting.NewLine","detail":"TextFormatting.NewLine","insertText":"TextFormatting.NewLine","insertTextMode":2,"insertTextFormat":1,"kind":21,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแทรกบรรทัดใหม่ หรือขึ้นบรรทัดใหม่ ลงในข้อความ **ไม่** รองรับหลายป้ายกำกับใน ArcGIS API 3.x for JavaScript และใน ArcGIS Online Map Viewer Classic"}}},{"type":"constant","name":"textformatting.singlequote","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/constants/#textformatting.singlequote","description":"แทรกอักขระเครื่องหมายอัญประกาศเดี่ยว `'` ลงในข้อความ","examples":"\n**ตัวอย่าง**\n\nส่งคืน \"Nicholas 'Nick' Anderson\"\n\n```arcade\n$feature.NAME + \" \" + TextFormatting.SingleQuote + $feature.ALIAS + TextFormatting.SingleQuote + \" \" + $feature.SURNAME\n```\n\n","completion":{"label":"TextFormatting.SingleQuote","detail":"TextFormatting.SingleQuote","insertText":"TextFormatting.SingleQuote","insertTextMode":2,"insertTextFormat":1,"kind":21,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแทรกอักขระเครื่องหมายอัญประกาศเดี่ยว `'` ลงในข้อความ"}}}]},{"id":"ai_functions","title":"ก้_AI functions_____________ษฺ","items":[{"type":"function","name":"translatetext","bundle":"ai","sinceVersion":"1.32","link":"https://developers.arcgis.com/arcade/function-reference/ai_functions/#translatetext","description":"ก้__This function is currently in beta. While in beta, AI functions do not consume credits. The use of AI services may not be allowed in your organization. You can view and change this in the AI Assistants section of the Organization settings page._____________________________________________________________________________________________________________________________ษฺ\n\nก้_Translates input text from a source language into one or more target languages. Language codes (e.g. \"en\" for English, \"es\" for Spanish) specify the languages involved. The underlying machine translation service uses AI to generate the translated output________________________________________________________________________________________________________________________________ษฺ.","examples":"\n**ตัวอย่าง**\n\nก้_Translates the text 'Hello world' to the locale of the client or system_____________________________________ษฺ.\n\n```arcade\nvar locale = GetEnvironment().locale;\nvar result = TranslateText('Hello world', locale);\n// result will be a dictionary with the translated text\nif (result.success){\n  if(HasValue(result, [\"results\", 0, \"translation\"])){\n    // returns \"Hola mundo\" if the device locale is 'es'\n    result.results[0].translation[locale];\n  }\n  if (HasValue(result, [\"results\", 0, \"text\"])){\n    // returns \"Hello world\" if translation could not be performed\n    result.results[0].text;\n  }\n}\nreturn \"Translation not successful\";\n```\n\n","completion":{"label":"TranslateText","detail":"TranslateText(inputText, toLanguages, fromLanguage?) -> Dictionary","insertText":"TranslateText(${1:inputText_}, ${2:toLanguages_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.32](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nก้__This function is currently in beta. While in beta, AI functions do not consume credits. The use of AI services may not be allowed in your organization. You can view and change this in the AI Assistants section of the Organization settings page._____________________________________________________________________________________________________________________________ษฺ\n\nก้_Translates input text from a source language into one or more target languages. Language codes (e.g. \"en\" for English, \"es\" for Spanish) specify the languages involved. The underlying machine translation service uses AI to generate the translated output________________________________________________________________________________________________________________________________ษฺ.\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - ก้_The text to translate. This can be a single text value or an array of text values__________________________________________ษฺ.\n- **toLanguages**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - ก้_The target language(s) to translate to. This can be a single language code or an array of language codes______________________________________________________ษฺ.\n- **fromLanguage** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้_The source language of the input text. If not specified, the service will attempt to auto-detect the source language____________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nก้_A dictionary containing the translated text_______________________ษฺ.\n\n- **success**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ก้_Indicates whether the translation was successful. This value will be `false` if the use of AI services is not allowed in your organization. You can view and change this in the AI Assistants section of the Organization settings page_____________________________________________________________________________________________________________________ษฺ.\n- **results**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - ก้_An array of dictionaries containing the translation results for each `inputText` value_____________________________________________ษฺ.\n\n  - **key**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ก้_The index of the input text or language in the original array________________________________ษฺ.\n  - **text**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้_The input text that was translated___________________ษฺ.\n  - **detectedLanguage**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - ก้_The detected language of the input text, if applicable_____________________________ษฺ.\n\n    - **language**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้_The language code of the detected language_______________________ษฺ.\n    - **score**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ก้_The confidence score of the detected language. Values range from 0 to 1, where 1 indicates high confidence. A value of `-1` indicates that the language was not detected______________________________________________________________________________________ษฺ.\n  - **translation**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - ก้_A dictionary of translated values where the key is the language code and the value is the translation____________________________________________________ษฺ.\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Supported language codes](https://developers.arcgis.com/javascript/latest/localization/#locale-support)\n"}},"parametersInfo":{"min":2,"max":3}}]},{"id":"enterprise_functions","title":"ฟังก์ชัน Enterprise","items":[{"type":"function","name":"nextsequencevalue","bundle":"database","sinceVersion":"1.4","link":"https://developers.arcgis.com/arcade/function-reference/enterprise_functions/#nextsequencevalue","description":"ส่งคืนค่าลำดับถัดไปจากลำดับฐานข้อมูลที่ระบุ หากไม่มี `inputSequenceName` อยู่ นิพจน์จะผิดพลาด","examples":"\n**ตัวอย่าง**\n\nส่งคืนตัวเลขพร้อมค่าลำดับถัดไป\n\n```arcade\nNextSequenceValue('PipeIDSeq')\n```\n\n","completion":{"label":"NextSequenceValue","detail":"NextSequenceValue(sequenceName) -> Number","insertText":"NextSequenceValue(${1:sequenceName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.4](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าลำดับถัดไปจากลำดับฐานข้อมูลที่ระบุ หากไม่มี `inputSequenceName` อยู่ นิพจน์จะผิดพลาด\n\n**พารามิเตอร์**\n\n- **sequenceName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของลำดับ จะต้องมีการกำหนดค่าไว้ในฐานข้อมูลอยู่แล้ว\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}}]},{"id":"featureset_functions","title":"ฟังก์ชัน FeatureSet","items":[{"type":"function","name":"area","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#area","description":"ส่งคืนพื้นที่ของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนพื้นที่ของชั้นข้อมูลในรูปแบบตารางกิโลเมตร\n\n```arcade\nArea($layer, 'square-kilometers')\n```\n\n","completion":{"label":"Area","detail":"Area(features, unit?) -> Number","insertText":"Area(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพื้นที่ของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\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ค่าที่เป็นไปได้: `acres` | `hectares` | `square-centimeters` | `square-decimeters` | `square-feet` | `square-inches` | `square-kilometers` | `square-meters` | `square-miles` | `square-millimeters` | `square-us-feet` | `square-us-miles` | `square-yards`  \n\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [AreaGeodetic()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#areageodetic)\n* [Available numeric codes for unit parameter](https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7922.html#i-heading-remarks)\n"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"areageodetic","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#areageodetic","description":"ส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด ส่วนนี้จะเป็นการวัดพื้นที่ที่น่าเชื่อถือว่า `Area()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนพื้นที่บนสัณฐานโลกของชั้นข้อมูลในรูปแบบตารางกิโลเมตร\n\n```arcade\nAreaGeodetic($layer, 'square-kilometers')\n```\n\n","completion":{"label":"AreaGeodetic","detail":"AreaGeodetic(features, unit?, curveType?) -> Number","insertText":"AreaGeodetic(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด ส่วนนี้จะเป็นการวัดพื้นที่ที่น่าเชื่อถือว่า `Area()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\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ค่าที่เป็นไปได้: `acres` | `hectares` | `square-centimeters` | `square-decimeters` | `square-feet` | `square-inches` | `square-kilometers` | `square-meters` | `square-miles` | `square-millimeters` | `square-us-feet` | `square-us-miles` | `square-yards`  \n\n- **curveType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้__Since 1.31_ The type of curve to use for the geodetic area calculation_____________________________________ษฺ. ก้_If no value is provided, the default is `Geodesic`____________________________ษฺ.  \nก้_Possible values___________________ษฺ:  \n  ก้_- `Geodesic` - Defined by the shortest distance between two points on an ellipsoid_____________________________________________ษฺ.  \n  ก้_- `GreatElliptic` - Defined by the intersection of a plane that contains the center of the spheroid and the spheroid surface and passes through two points. This is also known as a great circle when a sphere is used. It is not necessarily the shortest path between two points_____________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `Loxodrome` - Defined by the line of constant bearing, or azimuth, between two points. It represents a rhumb-line path on the earth that crosses each meridian at the same acute angle, thus forming a spiral that converges on the north or south pole. The Mercator projection shows loxodromes as straight lines______________________________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `NormalSection` - Defined by the intersection of a plane that passes through two points on the surface of the spheroid and is perpendicular to the surface at the first point. It is not necessarily the shortest path between two points_________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `ShapePreserving` - The segment shape is preserved in the projection where it is defined. This is often used in situations where maintaining the visual representation of a feature is crucial, like when working with boundaries or coastlines___________________________________________________________________________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Area()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#area)\n* [Available numeric codes for unit parameter](https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7922.html#i-heading-remarks)\n"}},"parametersInfo":{"min":1,"max":3}},{"type":"function","name":"attachments","bundle":"data-access","sinceVersion":"1.6","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#attachments","description":"ส่งคืนรายการไฟล์แนบที่เชื่อมโยงกับอินพุทฟีเจอร์ ผลลัพธ์จะชื่อของไฟล์แนบ ประเภทเนื้อหา id และขนาดในหน่วยไบต์ ใช้ได้เฉพาะกับฟีเจอร์ที่เริ่มต้นจากฟีเจอร์เซอร์วิสเท่านั้น","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนไฟล์แนบที่เชื่อมโยงกับฟีเจอร์\n\n```arcade\n// Returns the number of attachments associated with the feature\nCount(Attachments($feature))\n```\n\n","completion":{"label":"Attachments","detail":"Attachments(inputFeature, options?) -> Array<Attachment>","insertText":"Attachments(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.6](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนรายการไฟล์แนบที่เชื่อมโยงกับอินพุทฟีเจอร์ ผลลัพธ์จะชื่อของไฟล์แนบ ประเภทเนื้อหา id และขนาดในหน่วยไบต์ ใช้ได้เฉพาะกับฟีเจอร์ที่เริ่มต้นจากฟีเจอร์เซอร์วิสเท่านั้น\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ไฟล์แนบที่เชื่อมโยงกับฟีเจอร์นี้จะถูกดึงมาจากเซอร์วิส\n- **options** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การตั้งค่าสำหรับคำขอ คุณสมบัติของพจนานุกรม:\n\n  - **types**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของค่าข้อความที่แสดงประเภทไฟล์ที่จะดึงข้อมูล  \nก้_Possible Values: `bmp`, `ecw`, `emf`, `eps`, `ps`, `gif`, `img`, `jp2`, `jpc`, `j2k`, `jpf`, `jpg`, `jpeg`, `jpe`, `png`, `psd`, `raw`, `sid`, `tif`____________________________________________________________________________ษฺ, ก้_`tiff`, `wmf`, `wps`, `avi`, `mpg`, `mpe`, `mpeg`, `mov`, `wmv`, `aif`, `mid`, `rmi`, `mp2`, `mp3`, `mp4`, `pma`, `mpv2`, `qt`, `ra`____________________________________________________________________ษฺ, ก้_`ram`, `wav`, `wma`, `doc`, `docx`, `dot`, `xls`, `xlsx`, `xlt`, `pdf`, `ppt`, `pptx`, `txt`, `zip`, `7z`, `gz`, `gtar`, `tar`, `tgz`____________________________________________________________________ษฺ, ก้_`vrml`, `gml`, `json`, `xml`, `mdb`, `geodatabase`__________________________ษฺ\n  - **minsize**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขนาดไฟล์ขั้นต่ำของสิ่งที่แนบมามีหน่วยเป็นไบต์\n  - **maxsize**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขนาดไฟล์สูงสุดของสิ่งที่แนบมามีหน่วยเป็นไบต์\n  - **metadata** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - จะระบุว่าจะใส่เมตาดาต้าไฟล์แนบไว้ในการส่งคืนฟังก์ชันหรือไม่ รองรับเฉพาะเมตาดาต้า Exif ของรูปภาพเท่านั้น\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment)&gt;"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"average","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#average","description":"ส่งคืนค่าเฉลี่ยของฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต","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","completion":{"label":"Average","detail":"Average(features, fieldNameOrSQLExpression) -> Number","insertText":"Average(${1:features_}, ${2:fieldNameOrSQLExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"contains","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#contains","description":"ส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ที่อยู่ภายในเรขาคณิตที่กำหนด\n\nก้_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________ษฺ. ก้_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nส่งกลับจำนวนฟีเจอร์ที่มีอยู่ภายในโพลีกอนที่กำหนด\n\n```arcade\nvar parcels = FeatureSetByName($map, 'parcels')\nvar projectArea = $feature;\nCount(Contains(projectArea, parcels));\n```\n\n","completion":{"label":"Contains","detail":"Contains(containerGeometry, insideFeatures) -> FeatureSet","insertText":"Contains(${1:containerGeometry_}, ${2:insideFeatures_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ที่อยู่ภายในเรขาคณิตที่กำหนด\n\nก้_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________ษฺ. ก้_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **containerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตที่ทดสอบหาความสัมพันธ์ 'contains' กับ `insideFeatures` มองรูปทรงเรขาคณิตเป็นสิ่งที่อาจเป็น 'container' ของ `insideFeatures`\n- **insideFeatures**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่ถูกทดสอบเพื่อหาความสัมพันธ์ 'within' กับ `containerGeometry`\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Contains](https://esri.github.io/geometry-api-java/doc/Contains.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"count","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#count","description":"ส่งคืนจำนวนของฟีเจอร์ใน FeatureSet","examples":"\n**ตัวอย่าง**\n\nส่งกลับจำนวนฟีเจอร์ในชั้นข้อมูล\n\n```arcade\nCount($layer)\n```\n\n","completion":{"label":"Count","detail":"Count(features) -> Number","insertText":"Count(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนของฟีเจอร์ใน FeatureSet\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะนับจำนวนฟีเจอร์\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"crosses","bundle":"data-access","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#crosses","description":"ส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ตัดผ่านโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ตัดผ่านโพลีกอนที่กำหนด\n\n```arcade\nvar geom2 = Polygon({ ... });\nCount( Crosses($layer, geom2) );\n```\n\n","completion":{"label":"Crosses","detail":"Crosses(features, crossingGeometry) -> FeatureSet","insertText":"Crosses(${1:features_}, ${2:crossingGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ตัดผ่านโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - ฟีเจอร์ในการทดสอบความสัมพันธ์แบบไขว้กับอินพุต 'crossingGeometry'\n- **crossingGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตถูกรูปทรงเรขาคณิตอื่นไขว้อยู่\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Crosses](https://esri.github.io/geometry-api-java/doc/Crosses.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"distinct","bundle":"data-access","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#distinct","description":"ส่งคืนชุดค่าเฉพาะ หรือค่าที่ไม่ซ้ำกันจาก FeatureSet","examples":"\n**ตัวอย่าง**\n\nส่งคืน FeatureSet ที่มีคอลัมน์ 'Status' แต่ละแถวของ FeatureSet จะมีค่าสถิติที่ไม่ซ้ำกัน\n\n```arcade\nDistinct($layer, 'Status')\n```\n\nส่งคืน FeatureSet ที่มีคอลัมน์ 'Status' และ 'Type' แต่ละแถวของ FeatureSet จะมีค่า 'Status' และ 'Type' รวมกันที่ไม่ซ้ำกัน\n\n```arcade\nDistinct($layer, ['Status', 'Type'])\n```\n\nส่งคืน FeatureSet ที่มีคอลัมน์ความหนาแน่น พร้อมแถวที่อาจมีค่า ต่ำ สูง หรือไม่มี\n\n```arcade\nDistinct($layer, {\n  name: \"Density\",\n  expression: \"CASE WHEN PopDensity < 100 THEN 'Low' WHEN PopDensity >= 100 THEN 'High' ELSE 'N/A' END\"\n})\n```\n\nส่งคืน FeatureSet ที่มีคอลัมน์ Score และ Type\n\n```arcade\nDistinct($layer, [{\n  name: 'Score',\n  expression: 'POPULATION_DENSITY * 0.65 + Status_Code * 0.35'\n}, {\n  name: 'Type',\n  expression: 'Category'\n}])\n```\n\n","completion":{"label":"Distinct","detail":"Distinct(features, fields) -> FeatureSet","insertText":"Distinct(${1:features_}, ${2:fields_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชุดค่าเฉพาะ หรือค่าที่ไม่ซ้ำกันจาก FeatureSet\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะส่งคืนค่าเฉพาะ\n- **fields**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - ฟิลด์ และ/หรือนิพจน์ ที่จะกำหนดค่าที่ไม่ซ้ำกัน พารามิเตอร์นี้สามารถเป็นอาร์เรย์ของชื่อฟิลด์ อาร์เรย์ของนิพจน์ หรือพจนานุกรมหรืออาร์เรย์ของพจนานุกรมที่ระบุชื่อคอลัมน์เอาท์พุท ซึ่งจะจัดเก็บค่าที่ไม่ซ้ำกัน หากระบุพจนานุกรม จะต้องใช้ข้อมูลจำเพาะต่อไปนี้:\n\n  - **name**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของคอลัมน์ที่จะจัดเก็บผลลัพธ์ของนิพจน์ที่กำหนด\n  - **expression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - นิพจน์ SQL-92 ที่จะคำนวณค่าที่ไม่ซ้ำกัน\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"domain","bundle":"data-access","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#domain","description":"แจ้งกลับโดเมนที่กำหนดให้สำหรับฟิลด์ที่ระบุของ 'featureSet' ที่แจ้ง หาก 'featureSet' เป็นของคลาสที่มีประเภทย่อย จะมีการแจ้งกลับโดเมนที่จัดสรรให้กับประเภทย่อยดังกล่าว","examples":"\n**ตัวอย่าง**\n\nโดเมนที่กำหนดให้กับประเภทย่อยของฟีเจอร์\n\n```arcade\nvar fsPole = FeatureSetByName($layer, \"Pole\", 1);\nvar d = Domain(fsPole, \"poleType\")\n// the poleType field has a coded value domain called poleTypes\n// the value of d will be\n// {\n//   type: \"codedValue\" ,\n//   name: \"poleTypesThreePhase\",\n//   dataType: \"number\",\n//   codedValues: [\n//     { name: \"Unknown\", code: 0 },\n//     { name: \"Wood\", code: 1 },\n//     { name: \"Steel\", code: 2 }\n//     { name: \"Reinforced Steel\", code: 3 }\n//   ]\n// }\n```\n\n","completion":{"label":"Domain","detail":"Domain(features, fieldName, subtype?) -> Dictionary","insertText":"Domain(${1:features_}, ${2:fieldName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - ใช้เฉพาะกับโดเมน 'codedValue' อะเรพจนานุกรมระบุค่าที่ถูกต้องสำหรับฟิลด์ แต่ละพจนานุกรมจะมีคุณสมบัติ `code` ซึ่งมีค่าฟิลด์จริงอยู่ และคุณสมบัติ `name` ที่มีคำอธิบายค่าแบบเป็นมิตรกับผู้ใช้ (เช่น `{ code: 1, name: \"pavement\" }`)"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"domaincode","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#domaincode","description":"ส่งคืนรหัสของคำอธิบายโดเมนที่เชื่อมโยงใน FeatureSet","examples":"\n**ตัวอย่าง**\n\nพิมพ์คำอธิบายโดเมนสำหรับการอ้างอิงฟิลด์\n\n```arcade\nDomainCode($layer, 'Enabled', 'True', subtype)\n```\n\n","completion":{"label":"DomainCode","detail":"DomainCode(features, fieldName, value, subtype?) -> Number,Text","insertText":"DomainCode(${1:features_}, ${2:fieldName_}, ${3:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนรหัสของคำอธิบายโดเมนที่เชื่อมโยงใน FeatureSet\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - ฟีเจอร์เซ็ตพร้อมฟิลด์ที่มีโดเมน\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของฟิลด์ข้อมูล (ไม่ใช่ชื่อสำรองของฟิลด์) ที่มีโดเมน\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าที่จะแปลงกลับเป็นโค้ด โค้ดที่ส่งกลับจะมาจากเซอร์วิสเมตาดาต้า\n- **subtype** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - จำนวนหรือชื่อแบบเข้ารหัสของประเภทย่อย ในกรณีที่ฟีเจอร์เซ็ตรองรับการแบ่งประเภทย่อย\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":3,"max":4}},{"type":"function","name":"domainname","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#domainname","description":"ส่งคืนสิ่งที่ได้ชื่อที่อธิบายสำหรับโดเมนโค้ดใน FeatureSet","examples":"\n**ตัวอย่าง**\n\nพิมพ์คำอธิบายโดเมนสำหรับอ้างอิงฟิลด์\n\n```arcade\nDomainName($layer, 'fieldName')\n```\n\n","completion":{"label":"DomainName","detail":"DomainName(features, fieldName, code?, subtype?) -> Text","insertText":"DomainName(${1:features_}, ${2:fieldName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนสิ่งที่ได้ชื่อที่อธิบายสำหรับโดเมนโค้ดใน FeatureSet\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet พร้อมฟิลด์ที่มีโดเมน\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของฟิลด์ข้อมูล (ไม่ใช่ชื่อสำรองของฟิลด์) ที่มีโดเมน\n- **code** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - โค้ดที่เชื่อมโยงกับชื่อเชิงบรรยาย โค้ดที่ส่งกลับจะมาจากเซอร์วิสเมตาดาต้า\n- **subtype** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - จำนวนหรือชื่อแบบเข้ารหัสของประเภทย่อย ในกรณีที่ FeatureSet รองรับการแบ่งประเภทย่อย\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"envelopeintersects","bundle":"data-access","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#envelopeintersects","description":"ฟีเจอร์ส่งกลับจากชุดคุณลักษณะโดยที่ส่วนขยาย (หรือขอบเขต) ของชุดคุณลักษณะตัดกับส่วนขยายของรูปทรงอื่น ในกราฟิกด้านล่าง ไฮไลท์สีแดงจะแสดงถึงความสัมพันธ์เชิงพื้นที่ซึ่งฟังก์ชันจะส่งคืนฟีเจอร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งกลับจำนวนฟีเจอร์ที่ทับซ้อนกับส่วนขยาย\n\n```arcade\nvar geom2 = Polygon({ ... });\nCount( EnvelopeIntersects($layer, geom2) );\n```\n\n","completion":{"label":"EnvelopeIntersects","detail":"EnvelopeIntersects(features, envelope) -> FeatureSet","insertText":"EnvelopeIntersects(${1:features_}, ${2:envelope_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nฟีเจอร์ส่งกลับจากชุดคุณลักษณะโดยที่ส่วนขยาย (หรือขอบเขต) ของชุดคุณลักษณะตัดกับส่วนขยายของรูปทรงอื่น ในกราฟิกด้านล่าง ไฮไลท์สีแดงจะแสดงถึงความสัมพันธ์เชิงพื้นที่ซึ่งฟังก์ชันจะส่งคืนฟีเจอร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ถูกทดสอบการตัดกันของความสัมพันธ์กับ `envelope`\n- **envelope**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ส่วนขยายถูกรูปทรงเรขาคณิตอื่นทับซ้อนอยู่\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"expects","bundle":"data-access","sinceVersion":"1.15","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#expects","description":"ส่งคำขอแอตทริบิวต์เพิ่มเติมสำหรับ FeatureSet ที่กำหนด","examples":"\n**ตัวอย่าง**\n\nร้องขอฟิลด์ POPULATION สำหรับฟีเจอร์ในคลัสเตอร์\n\n```arcade\n// If the layer is clustered based on count,\n// only the OBJECTID field is requested by default.\n// To display the sum of the POPULATION field\n// for all features in the cluster, we must\n// explicitly request the POPULATION data. \nExpects($aggregatedFeatures, 'POPULATION')\nText(Sum($aggregatedFeatures, 'POPULATION'), '#,###')\n```\n\n","completion":{"label":"Expects","detail":"Expects(features, field1, [field2, ..., fieldN]?) -> Null","insertText":"Expects(${1:features_}, ${2:field1_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.15](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคำขอแอตทริบิวต์เพิ่มเติมสำหรับ FeatureSet ที่กำหนด\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - ฟีเจอร์เซ็ตที่ฟิลด์ที่ร้องขอจะถูกติดตั้ง\n- **field1**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะร้องขอสำหรับฟีเจอร์ที่กำหนด แสดงรายการเฉพาะฟิลด์ที่จำเป็นสำหรับการใช้ในนิพจน์ หากจำเป็น คุณสามารถร้องขอฟิลด์ทั้งหมดได้โดยใช้อักขระสัญลักษณ์ตัวแทน `*` อย่างไรก็ตาม ควรหลีกเลี่ยงการดำเนินการนี้ เพื่อป้องกันการโหลดข้อมูลในปริมาณที่ไม่จำเป็น ซึ่งอาจส่งผลลบต่อการทำงานของแอปได้ ค่านี้ต้องเป็นตัวอักษรข้อความ และต้องไม่เป็นตัวแปร\n- **[field2, ..., fieldN]** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - รายการชื่อฟิลด์แบบต่อเนื่องที่จะร้องขอสำหรับฟีเจอร์ที่กำหนด แสดงรายการเฉพาะฟิลด์ที่จำเป็นสำหรับการใช้ในนิพจน์ ค่าเหล่านี้ต้องเป็นตัวอักษรข้อความ และต้องไม่เป็นตัวแปร\n\n**ส่งคืนค่า**: Null"}},"parametersInfo":{"min":2,"max":-1}},[{"type":"function","name":"featureset","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featureset1","description":"สร้าง FeatureSet ใหม่จาก JSON ตามสเปคของ ArcGIS REST ดูตัวอย่างเกี่ยวกับเรื่องนี้ได้จาก snippet ด้านล่าง","examples":"\n**ตัวอย่าง**\n\nสร้างฟีเจอร์เซ็ตจาก JSON\n\n```arcade\n// JSON representation of the feature used in the snippet below\n// {\n//   'fields': [{\n//     'alias': 'RANK',\n//     'name': 'RANK',\n//     'type': 'esriFieldTypeInteger'\n//   }, {\n//     'alias': 'ELEV_m',\n//     'name': 'ELEV_m',\n//     'type': 'esriFieldTypeInteger'\n//   }],\n//   'spatialReference': { 'wkid': 4326 },\n//   'geometryType': 'esriGeometryPoint',\n//   'features': [{\n//     'geometry': {\n//       'spatialReference': { 'wkid': 4326 },\n//       'x': -151.0063,\n//       'y': 63.069\n//     },\n//     'attributes': {\n//       'RANK': 1,\n//       'ELEV_m': 6168\n//     }\n//   }]\n// };\n// The Dictionary representation of the FeatureSet must be a serialized text value\nvar features = FeatureSet('{\"fields\":[{\"alias\":\"RANK\",\"name\":\"RANK\",\"type\":\"esriFieldTypeInteger\"},{\"alias\":\"ELEV_m\",\"name\":\"ELEV_m\",\"type\":\"esriFieldTypeInteger\"}],\"spatialReference\":{\"wkid\":4326},\"geometryType\":\"esriGeometryPoint\",\"features\":[{\"geometry\":{\"spatialReference\":{\"wkid\":4326},\"x\":-151.0063,\"y\":63.069},\"attributes\":{\"RANK\":1,\"ELEV_m\":6168}}]}')\n```\n\n","completion":{"label":"FeatureSet","detail":"FeatureSet(definition) -> FeatureSet","insertText":"FeatureSet(${1:definition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้าง FeatureSet ใหม่จาก JSON ตามสเปคของ ArcGIS REST ดูตัวอย่างเกี่ยวกับเรื่องนี้ได้จาก snippet ด้านล่าง\n\n**พารามิเตอร์**\n\n- **definition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - JSON ที่บรรยายเกี่ยวกับชุดของฟีเจอร์ JSON ต้องได้รับการซีเรียไลซ์ในรูปแบบค่าข้อความ\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"featureset","bundle":"data-access","sinceVersion":"1.19","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featureset2","description":"สร้าง FeatureSet ใหม่จากพจนานุกรมที่จะแสดง JSON ตามข้อมูลจำเพาะ ArcGIS REST ดูตัวอย่างเกี่ยวกับเรื่องนี้ได้จาก snippet ด้านล่าง","examples":"\n**ตัวอย่าง**\n\nสร้าง FeatureSet จากพจนานุกรม\n\n```arcade\n// JSON representation of the feature used in the snippet below\nvar d = {\n  fields: [{\n    alias: 'RANK',\n    name: 'RANK',\n    type: 'esriFieldTypeInteger'\n  }, {\n    alias: 'ELEV_m',\n    name: 'ELEV_m',\n    type: 'esriFieldTypeInteger'\n  }],\n  spatialReference: { wkid: 4326 },\n  geometryType: 'esriGeometryPoint',\n  features: [{\n    geometry: {\n      spatialReference: { wkid: 4326 },\n      x: -151.0063,\n      y: 63.069\n    },\n    attributes: {\n      RANK: 1,\n      ELEV_m: 6168\n    }\n  }]\n };\nvar features = FeatureSet(d)\n```\n\n","completion":{"label":"FeatureSet","detail":"FeatureSet(definition) -> FeatureSet","insertText":"FeatureSet(${1:definition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.19](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้าง FeatureSet ใหม่จากพจนานุกรมที่จะแสดง JSON ตามข้อมูลจำเพาะ ArcGIS REST ดูตัวอย่างเกี่ยวกับเรื่องนี้ได้จาก snippet ด้านล่าง\n\n**พารามิเตอร์**\n\n- **definition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - พจนานุกรมที่อธิบายถึงชุดฟีเจอร์\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"featuresetbyassociation","bundle":"data-access","sinceVersion":"1.9","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyassociation","description":"ส่งคืนฟีเจอร์ทั้งหมดที่เชื่อมโยงกับอินพุทฟีเจอร์ในรูปแบบ FeatureSet ส่วนนี้จะใช้เฉพาะกับขั้นตอนการดำเนินงานของเครือข่ายสาธารณูปโภค","examples":"\n**ตัวอย่าง**\n\nส่งคืนแอสเซ็ททั้งหมดที่มีความเชื่อมโยงในการเชื่อมต่อกับเทอร์มินอลด้านต่ำของทรานสฟอร์มเมอร์\n\n```arcade\nFeatureSetByAssociation($feature, 'connected', 'Low');\n```\n\nส่งคืนจำนวนอุปกรณ์ไฟฟ้าที่เชื่อมโยงกับฟีเจอร์\n\n```arcade\nvar allContent = FeatureSetByAssociation ($feature, \"content\");\nvar devicesRows = Filter(allContent, \"className = 'Electric Device'\");\nvar devicesCount = Count(devicesRows);\nreturn devicesCount;\n```\n\n","completion":{"label":"FeatureSetByAssociation","detail":"FeatureSetByAssociation(inputFeature, associationType, terminalName?) -> FeatureSet","insertText":"FeatureSetByAssociation(${1:inputFeature_}, ${2:associationType_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.9](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- **associationType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทของการเชื่อมโยงกับฟีเจอร์ที่จะส่งคืน  \n  ค่าที่เป็นไปได้: `connected` \\| `container` \\| `content` \\| `structure` \\| `attached`  \n  ค่าที่เป็นไปได้ถูกเพิ่มที่เวอร์ชัน 1.10: `junctionEdge` \\| `midspan`\n- **terminalName** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ใช้ได้เฉพาะกับประเภทการเชื่อมโยง `connected`\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)  \nส่งคืน FeatureSet ที่มีฟีเจอร์ซึ่งสเปคของฟิลด์เป็นไปตามที่อธิบายไว้ในตารางด้านล่าง\n\n- **className**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อคลาสอิงตามค่าของ `TONETWORKSOURCEID` หรือ `FROMNETWORKSOURCEID`\n- **globalId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ID ส่วนกลางของฟีเจอร์ในตารางอื่นๆ (เช่น ค่าของ `TOGLOBALID` หรือ `FROMGLOBALID`)\n- **isContentVisible**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - สามารถเป็นได้ทั้งค่า `1` (แสดงผล) หรือ `0` (ไม่แสดงผล) ค่านี้จะแทนการแสดงผลของเนื้อหาที่เชื่อมโยง และใช้ได้เฉพาะกับการเชื่อมโยงแบบกักเก็บเท่านั้น\n- **objectId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ObjectID ของแถวในตารางการเชื่อมโยง\n- **percentAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้กับประเภทการเชื่อมโยง 'midspan' แจ้งกลับเป็นทศนิยมจาก 0-1 ระบุตำแหน่ง (เป็นสัดส่วน) ของจุดแยกตามแนวขอบ\n- **side**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ปรับใช้กับประเภทการเชื่อมโยง 'junctionEdge' ระบุด้านของจุดแยก\n\nค่าที่เป็นไปได้: `from` หรือ `to`"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"featuresetbyid","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyid","description":"สร้างฟีเจอร์เซ็ตจากชั้นข้อมูลฟีเจอร์ โดยอิงตาม ID ชั้นข้อมูลภายในแผนที่ หรือฟีเจอร์เซอร์วิส การจำกัดจำนวนฟิลด์ในคำขอ และตัดรูปทรงเรขาคณิตออก สามารถพัฒนาประสิทธิภาพของสคริปต์ได้","examples":"\n**ตัวอย่าง**\n\nส่งกลับจำนวนฟีเจอร์ในชั้นข้อมูลพร้อม id DemoLayerWM_1117 ในแผนที่ที่กำหนด\n\n```arcade\nvar features = FeatureSetById($map,'DemoLayerWM_1117', ['*'], true);\nCount( features );\n```\n\n","completion":{"label":"FeatureSetById","detail":"FeatureSetById(featureSetCollection, id, fields?, includeGeometry?) -> FeatureSet","insertText":"FeatureSetById(${1:featureSetCollection_}, ${2:id_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์เซ็ตจากชั้นข้อมูลฟีเจอร์ โดยอิงตาม ID ชั้นข้อมูลภายในแผนที่ หรือฟีเจอร์เซอร์วิส การจำกัดจำนวนฟิลด์ในคำขอ และตัดรูปทรงเรขาคณิตออก สามารถพัฒนาประสิทธิภาพของสคริปต์ได้\n\n**พารามิเตอร์**\n\n- **featureSetCollection**: [FeatureSetCollection](https://developers.arcgis.com/arcade/guide/types/#featuresetcollection) - แผนที่หรือฟีเจอร์เซอร์วิสที่มีอย่างน้อยหนึ่งชั้นข้อมูล ซึ่งจะทำการสร้างฟีเจอร์เซ็ต โดยปกติ ค่านี้จะเป็น `$map` หรือ `$datastore` แบบโกลบอล\n- **id**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ID ของชั้นข้อมูลภายใน `map` ที่กำหนด ต้องสร้างชั้นข้อมูลนี้จากฟีเจอร์เซอร์วิส ระบบไม่รองรับฟีเจอร์คอลเลกชัน _โปรดทราบว่าค่านี้จะต้องเป็นตัวอักษรข้อความ_\n- **fields** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - ฟิลด์ที่จะรวมไว้ในฟีเจอร์เซ็ต ตามค่าเริ่มต้น จะรวมฟิลด์ทั้งหมดไว้ หากต้องการร้องขอฟิลด์ทั้งหมดในชั้นข้อมูล ให้ตั้งค่านี้เป็น `['*']` การจำกัดจำนวนฟิลด์จะช่วยเพิ่มประสิทธิภาพของสคริปต์ได้\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะรวมรูปทรงเรขาคณิตไว้ในฟีเจอร์หรือไม่ ตามค่าเริ่มต้นจะเป็น `true` เพื่อประสิทธิภาพ คุณควรร้องขอรูปทรงเรขาคณิตเฉพาะเมื่อจำเป็น เช่น เพื่อการใช้ในฟังก์ชันรูปทรงเรขาคณิต\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"featuresetbyname","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname","description":"สร้างฟีเจอร์เซ็ตจากชั้นข้อมูลฟีเจอร์ โดยอิงตามชื่อภายในแผนที่หรือฟีเจอร์เซอร์วิส โปรดอย่าลืมว่าชื่อนี้ไม่จำเป็นต้องไม่ซ้ำกัน จึงเหมาะสมกว่าที่จะสร้างฟีเจอร์เซ็ตโดยใช้ `FeatureSetById()` การจำกัดจำนวนฟิลด์ใน FeatureSet และตัดรูปทรงเรขาคณิตออก สามารถพัฒนาประสิทธิภาพของสคริปต์ได้","examples":"\n**ตัวอย่าง**\n\nส่งกลับจำนวนฟีเจอร์ในชั้นข้อมูลที่ชื่อ 'Bike routes' ในแผนที่ที่กำหนด\n\n```arcade\nvar features = FeatureSetByName($map,'Bike routes', ['*'], true);\nCount(features);\n```\n\n","completion":{"label":"FeatureSetByName","detail":"FeatureSetByName(featureSetCollection, title, fields?, includeGeometry?) -> FeatureSet","insertText":"FeatureSetByName(${1:featureSetCollection_}, ${2:title_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์เซ็ตจากชั้นข้อมูลฟีเจอร์ โดยอิงตามชื่อภายในแผนที่หรือฟีเจอร์เซอร์วิส โปรดอย่าลืมว่าชื่อนี้ไม่จำเป็นต้องไม่ซ้ำกัน จึงเหมาะสมกว่าที่จะสร้างฟีเจอร์เซ็ตโดยใช้ `FeatureSetById()` การจำกัดจำนวนฟิลด์ใน FeatureSet และตัดรูปทรงเรขาคณิตออก สามารถพัฒนาประสิทธิภาพของสคริปต์ได้\n\n**พารามิเตอร์**\n\n- **featureSetCollection**: [FeatureSetCollection](https://developers.arcgis.com/arcade/guide/types/#featuresetcollection) - แผนที่หรือฟีเจอร์เซอร์วิสที่มีอย่างน้อยหนึ่งชั้นข้อมูล ซึ่งจะทำการสร้างฟีเจอร์เซ็ต โดยปกติ ค่านี้จะเป็น `$map` หรือ `$datastore` แบบโกลบอล\n- **title**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของชั้นข้อมูลภายใน `map` ที่กำหนด ต้องสร้างชั้นข้อมูลนี้จากฟีเจอร์เซอร์วิส ระบบไม่รองรับฟีเจอร์คอลเลกชัน _โปรดทราบว่าค่านี้จะต้องเป็นตัวอักษรข้อความ_\n- **fields** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - ฟิลด์ที่จะรวมไว้ในฟีเจอร์เซ็ต ตามค่าเริ่มต้น จะรวมฟิลด์ทั้งหมดไว้ หากต้องการร้องขอฟิลด์ทั้งหมดในชั้นข้อมูล ให้ตั้งค่านี้เป็น `['*']` การจำกัดจำนวนฟิลด์จะช่วยเพิ่มประสิทธิภาพของสคริปต์ได้\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะรวมรูปทรงเรขาคณิตไว้ในฟีเจอร์หรือไม่ ตามค่าเริ่มต้นจะเป็น `true` เพื่อประสิทธิภาพ คุณควรร้องขอรูปทรงเรขาคณิตเฉพาะเมื่อจำเป็น เช่น เพื่อการใช้ในฟังก์ชันรูปทรงเรขาคณิต\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"featuresetbyrelationshipclass","bundle":"data-access","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass","description":"ส่งคืนบันทึกที่เกี่ยวข้องสำหรับฟีเจอร์ที่กำหนด โดยอิงตามชื่อของคลาสความสัมพันธ์ที่กำหนด","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","completion":{"label":"FeatureSetByRelationshipClass","detail":"FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet","insertText":"FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - ฟิลด์ที่จะส่งคืนใน FeatureSet รายการนี้จะรวมฟิลด์จากทั้งตารางความสัมพันธ์และฟีเจอร์อินพุท\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะส่งคืนรูปทรงเรขาคณิตของฟีเจอร์ผลลัพธ์หรือไม่\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Attribute rules and relationship classes](https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rules-and-relationship-classes.htm)\n"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"featuresetbyrelationshipname","bundle":"data-access","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipname","description":"ส่งคืนบันทึกข้อมูลที่เกี่ยวข้องของฟีเจอร์ที่กำหนด ในรูปแบบ FeatureSet","examples":"\n**ตัวอย่าง**\n\nส่งคืนค่ารวมของฟิลด์จากในบันทึกข้อมูลที่เกี่ยวข้องทั้งหมด\n\n```arcade\nvar results = FeatureSetByRelationshipName($feature, 'Election_Results', ['*'], false)\nSum(results, 'democrat + republican + other')\n```\n\n","completion":{"label":"FeatureSetByRelationshipName","detail":"FeatureSetByRelationshipName(inputFeature, relationshipName, fieldNames?, includeGeometry?) -> FeatureSet","insertText":"FeatureSetByRelationshipName(${1:inputFeature_}, ${2:relationshipName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - ฟิลด์ที่จะส่งคืนใน FeatureSet รายการนี้จะรวมฟิลด์จากทั้งตารางความสัมพันธ์และฟีเจอร์อินพุท\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะส่งคืนรูปทรงเรขาคณิตของฟีเจอร์ผลลัพธ์หรือไม่\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"filter","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filter","description":"สร้างฟีเจอร์เซ็ตใหม่พร้อมฟีเจอร์ทั้งหมดที่ผ่านตัวกรองนิพจน์ SQL92","examples":"\n**ตัวอย่าง**\n\nกรองฟีเจอร์ด้วยนิพจน์ SQL92\n\n```arcade\n// Returns all features with a Population greater than 10,000\nvar result = Filter($layer, 'POPULATION > 10000');\n```\n\nกรองฟีเจอร์ด้วยนิพจน์ SQL92 พร้อมตัวแทนตัวแปร\n\n```arcade\n// Returns all features with a Population greater than the dataset average\nvar averageValue = Average($layer, 'POPULATION')\nvar result = Filter($layer, 'POPULATION > @averageValue');\n```\n\n","completion":{"label":"Filter","detail":"Filter(features, sqlExpression) -> FeatureSet","insertText":"Filter(${1:features_}, ${2:sqlExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์เซ็ตใหม่พร้อมฟีเจอร์ทั้งหมดที่ผ่านตัวกรองนิพจน์ SQL92\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet หรือชั้นข้อมูลที่จะกรอง\n- **sqlExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - นิพจน์ SQL92 ที่ใช้ในการกรองฟีเจอร์ในแต่ละชั้นข้อมูล นิพจน์นี้สามารถแทนตัวแปร Arcade ได้ด้วยอักขระ `@` ดูตัวอย่างได้จาก snippet ด้านล่าง\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"filterbysubtypecode","bundle":"data-access","sinceVersion":"1.25","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode","description":"สร้างฟีเจอร์เซ็ตใหม่ โดยที่ฟีเจอร์ทั้งหมดตรงกับรหัสประเภทย่อย","examples":"\n**ตัวอย่าง**\n\nกรองฟีเจอร์ด้วยรหัสประเภทย่อย\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n","completion":{"label":"FilterBySubtypeCode","detail":"FilterBySubtypeCode(features, subtypeCode) -> FeatureSet","insertText":"FilterBySubtypeCode(${1:features_}, ${2:subtypeCode_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์เซ็ตใหม่ โดยที่ฟีเจอร์ทั้งหมดตรงกับรหัสประเภทย่อย\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet หรือชั้นข้อมูลที่จะกรอง\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รหัสประเภทย่อยที่ใช้ในการกรองฟีเจอร์ในฟีเจอร์เซ็ตหรือชั้นข้อมูล\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"first","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#first","description":"ส่งคืนฟีเจอร์แรกใน FeatureSet ส่งคืน `null` หาก FeatureSet ว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nส่งคืนพื้นที่ของฟีเจอร์แรกในชั้นข้อมูล\n\n```arcade\nArea( First($layer) )\n```\n\n","completion":{"label":"First","detail":"First(features) -> Feature","insertText":"First(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนฟีเจอร์แรกใน FeatureSet ส่งคืน `null` หาก FeatureSet ว่างเปล่า\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะส่งกลับฟีเจอร์แรก\n\n**ส่งคืนค่า**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"gdbversion","bundle":"data-access","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#gdbversion","description":"ส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า","examples":"\n**ตัวอย่าง**\n\nส่งคืนเวอร์ชันฐานข้อมูลภูมิศาสตร์ของ FeatureSet ที่กำหนด\n\n```arcade\nGdbVersion($layer)\n```\n\n","completion":{"label":"GdbVersion","detail":"GdbVersion(features) -> Text","insertText":"GdbVersion(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะส่งคืนเวอร์ชันฐานข้อมูลภูมิศาสตร์ปัจจุบัน\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Overview of Versioning](https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/overview-of-versioning-in-arcgis-pro.htm)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"getfeatureset","bundle":"data-access","sinceVersion":"1.14","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#getfeatureset","description":"รับ FeatureSet ที่อินพุทฟีเจอร์อยู่ FeatureSet ที่ส่งคืน จะแทนฟีเจอร์ทั้งหมดจากชั้นข้อมูลหรือตารางพาเรนต์/รูทของอินพุทฟีเจอร์","examples":"\n**ตัวอย่าง**\n\nส่งคืน FeatureSet ที่แทนฟีเจอร์ทั้งหมดในแหล่งข้อมูล\n\n```arcade\n// Assume the data source for the 'Bike routes' layer has 2,000 features \n// and the user creating the map has set a definition expression on the 'Bike routes' layer that filters the layer to 100 features. \nvar fs1 = FeatureSetByName($map, 'Bike routes', ['*'], true);\nvar fs2 = top(fs1, 10) \nvar f = First(fs2)\nGetFeatureSet(f)\n// returns a FeatureSet representing the data source, which does not include the map filter (2,000 features)\n```\n\nส่งคืน FeatureSet รูทของฟีเจอร์\n\n```arcade\n// Assume the data source for the 'Bike routes' layer has 2,000 features \n// and the user creating the map has set a definition expression on the 'Bike routes' layer that filters the layer to 100 features. \nvar fs1 = FeatureSetByName($map, 'Bike routes', ['*'], true);\nvar fs2 = top(fs1, 10) \nvar f = First(fs2)\nGetFeatureSet(f, 'root')\n// returns the root FeatureSet, which honors the user's filter from the map (a total of 100 features)\n```\n\nส่งคืน FeatureSet พาเรนท์ของฟีเจอร์\n\n```arcade\n// Assume the data source for the 'Bike routes' layer has 2,000 features \n// and the user creating the map has set a definition expression on the 'Bike routes' layer that filters the layer to 100 features. \nvar fs1 = FeatureSetByName($map, 'Bike routes', ['*'], true);\nvar fs2 = top(fs1, 10) \nvar f = First(fs2)\nGetFeatureSet(f, 'parent')\n// returns the parent FeatureSet, which is the result of the top function \n// (a total of 10 features)\n```\n\nส่งคืนจำนวนฟีเจอร์ในตารางแหล่งข้อมูลในระยะ 1 ไมล์ของฟีเจอร์\n\n```arcade\nvar fullFeatureSet = GetFeatureSet($feature);\nvar featuresOneMile = Intersects(fullFeatureSet, BufferGeodetic($feature, 1, 'miles'))\nCount(featuresOneMile)\n```\n\n","completion":{"label":"GetFeatureSet","detail":"GetFeatureSet(inputFeature, source?) -> FeatureSet","insertText":"GetFeatureSet(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nรับ FeatureSet ที่อินพุทฟีเจอร์อยู่ FeatureSet ที่ส่งคืน จะแทนฟีเจอร์ทั้งหมดจากชั้นข้อมูลหรือตารางพาเรนต์/รูทของอินพุทฟีเจอร์\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่อยู่ในพาเรนต์หรือรูทของ FeatureSet\n- **source** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุ FeatureSet แหล่งที่มาที่จะส่งคืน  \nค่าที่เป็นไปได้:\n\n  - `datasource`: (ค่าเริ่มต้น) ส่งคืนฟีเจอร์ทั้งหมดจากแหล่งข้อมูลของอินพุทฟีเจอร์ โดยไม่มีตัวกรองหรือนิพจน์ข้อกำหนดใดๆ เป็น FeatureSet  \n  - `root`: ส่งคืน FeatureSet เริ่มต้น ซึ่งอินพุทฟีเจอร์อยู่ ซึ่งอาจเป็นซับเซ็ตที่ถูกกรองของฟีเจอร์ทั้งหมดในแหล่งข้อมูล  \n  - `parent`: ส่งคืน FeatureSet พาเรนต์ของอินพุทฟีเจอร์ ซึ่งอาจเป็นชุดฟีเจอร์ที่เล็กกว่าแหล่งข้อมูลดั้งเดิมหรือ FeatureSet รูท  \n\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"getfeaturesetinfo","bundle":"data-access","sinceVersion":"1.18","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#getfeaturesetinfo","description":"ส่งคืนเมตาดาต้าสำหรับฐานข้อมูลและบริการแหล่งที่มาดั้งเดิม (หากมี) ของ FeatureSet","examples":"\n**ตัวอย่าง**\n\nเมตาดาต้าที่ส่งคืนจาก FeatureSet เชื่อมต่อกับฟีเจอร์เซอร์วิสพื้นฐาน\n\n```arcade\n// $layer originates from a feature service layer in a web map\nGetFeatureSetInfo($layer);\n\n// returns the following: \n{\n  \"layerId\": 7,\n  \"layerName\": \"My Table\",\n  \"itemId\": \"dda795cf2af44d2bb7af2827963b76e8\",\n  \"serviceLayerUrl\": \"https://utilitynetwork.esri.com/server/rest/services/ClassicNapervilleElectric_Postgres/FeatureServer/100\",\n  \"webMapLayerId\": 1,\n  \"webMapLayerTitle\": \"MyTable1\",\n  \"className\": null,\n  \"objectClassId\": null\n}\n```\n\nเมตาดาต้าที่ส่งคืนจาก FeatureSet มีที่มาจาก filegdb หรือ mobilegdb\n\n```arcade\n// $featureset originates from a feature class in a filegdb or mobilegdb\nGetFeatureSetInfo($featureset);\n\n// returns the following: \n{\n  \"layerId\": null,\n  \"layerName\": null,\n  \"itemId\": null,\n  \"serviceLayerUrl\": null,\n  \"webMapLayerId\": null,\n  \"webMapLayerTitle\": null,\n  \"className\": \"myTable\",\n  \"objectClassId\": 7\n}\n```\n\nเมตาดาต้าที่ส่งคืนจาก FeatureSet เชื่อมต่อกับพื้นที่ทำงาน sde (การเชื่อมต่อกับไคลเอ็นต์เซิร์ฟเวอร์โดยตรง)\n\n```arcade\n// Client server direct connection (sqlserver/oracle/etc.)\nGetFeatureSetInfo($featureset);\n\n// returns the following: \n{\n  \"layerId\": null,\n  \"layerName\": null,\n  \"itemId\": null,\n  \"serviceLayerUrl\": null,\n  \"webMapLayerId\": null,\n  \"webMapLayerTitle\": null,\n  \"className\": \"owner.myTable\",\n  \"objectClassId\": 7\n}\n```\n\n","completion":{"label":"GetFeatureSetInfo","detail":"GetFeatureSetInfo(inputFeatureSet) -> Dictionary","insertText":"GetFeatureSetInfo(${1:inputFeatureSet_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.18](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเมตาดาต้าสำหรับฐานข้อมูลและบริการแหล่งที่มาดั้งเดิม (หากมี) ของ FeatureSet\n\n**พารามิเตอร์**\n\n- **inputFeatureSet**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะดึงเมตาดาต้า\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **layerId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - layerId ของฟีเจอร์เซอร์วิส ใช้ได้เฉพาะกับ FeatureSets ที่สร้างขึ้นจากฟีเจอร์เซอร์วิส ค่านี้จะเป็น `null` สำหรับพื้นที่ทำงาน sde/filegdb/mobile\n- **layerName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อชั้นข้อมูลของฟีเจอร์เซอร์วิส ใช้ได้เฉพาะกับ FeatureSets ที่สร้างขึ้นจากฟีเจอร์เซอร์วิส ค่านี้จะเป็น `null` สำหรับพื้นที่ทำงาน sde/filegdb/mobile\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ID ไอเท็มพอร์ทัลของฟีเจอร์เซอร์วิส ใช้ได้เฉพาะกับ FeatureSets ที่สร้างขึ้นจากฟีเจอร์เซอร์วิสที่มีไอเท็มพอร์ทัลที่เชื่อมโยงเท่านั้น ค่านี้จะเป็น `null` สำหรับพื้นที่ทำงาน sde/filegdb/mobile\n- **serviceLayerUrl**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - url ของชั้นข้อมูลฟีเจอร์เซอร์วิส ใช้ได้เฉพาะกับ FeatureSets ที่สร้างขึ้นจากฟีเจอร์เซอร์วิส ค่านี้จะเป็น `null` สำหรับพื้นที่ทำงาน sde/filegdb/mobile\n- **webMapLayerId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - layerId ของชั้นข้อมูลที่เชื่อมโยงภายในบริการของเว็บแมป ใช้ได้เฉพาะกับ FeatureSet ที่สร้างขึ้นจากชั้นข้อมูลฟีเจอร์เซอร์วิสที่มีอยู่ภายในเว็บแมป ค่านี้จะเป็น `null` สำหรับพื้นที่ทำงาน sde/filegdb/mobile\n- **webMapLayerTitle**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของชั้นข้อมูลที่เชื่อมโยงภายในบริบทของเว็บแมป ใช้ได้เฉพาะกับ FeatureSet ที่สร้างขึ้นจากชั้นข้อมูลฟีเจอร์เซอร์วิสที่มีอยู่ภายในเว็บแมป ค่านี้จะเป็น `null` สำหรับพื้นที่ทำงาน sde/filegdb/mobile\n- **className**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของฟีเจอร์คลาสพื้นฐาน ใช้ได้เฉพาะกับ FeatureSet ที่สร้างขึ้นจากฟีเจอร์คลาสในพื้นที่ทำงาน filegdb/mobile\n- **objectClassId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - objectClassId ใช้ได้เฉพาะกับ FeatureSet ที่สร้างขึ้นจากฟีเจอร์คลาสในพื้นที่ทำงาน filegdb"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"getuser","bundle":"data-access","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#getuser1","description":"ส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน","examples":"\n**ตัวอย่าง**\n\nส่งคืนข้อมูลเกี่ยวกับผู้ใช้ \"tester\"\n\n```arcade\nGetUser($layer, \"tester\")\n// returns {\"id\": \"12\", \"username\": \"tester\", \"name\":\"Testy Tester\", \"email\": \"tester@example.com\", ...}\n```\n\nส่งคืนชื่อผู้ใช้จากผู้ใช้ที่เข้าสู่ระบบพอร์ทัลที่ใช้งานอยู่ในปัจจุบัน หากไม่มีผู้ใช้ที่เชื่อมโยงกับพอร์ทัล จะเป็นการส่งคืน `null`\n\n```arcade\nvar userInfo = GetUser($layer);\nif(HasValue(userInfo, \"username\")){\n  return userInfo.username;\n}\n```\n\n","completion":{"label":"GetUser","detail":"GetUser(features, username?) -> Dictionary","insertText":"GetUser(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะส่งคืนผู้ใช้ปัจจุบัน\n- **username** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อผู้ใช้ของผู้ใช้ที่คุณต้องการส่งคืน จะส่งคืนเฉพาะข้อมูลแบบจำกัด โดยอิงตามสิทธิ์ของคุณขณะส่งคำขอ\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้ ในขั้นตอนการทำงานออฟไลน์ จะส่งคืนเฉพาะชื่อผู้ใช้\n\n- **id**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - id ผู้ใช้ของผู้ใช้ที่ส่งคืน\n- **username**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อผู้ใช้ของผู้ใช้ที่ส่งคืน\n- **fullName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อและนามสกุลของผู้ใช้\n- **email**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ที่อยู่อีเมลที่เชื่อมโยงกับบัญชีผู้ใช้ของผู้ใช้\n- **groups**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของกลุ่มที่ผู้ใช้เป็นสมาชิก\n- **role**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - บทบาทของผู้ใช้ภายในองค์กร (เช่น Administrator, Publisher, User, Viewer หรือ Custom)\n- **privileges**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของสิทธิ์ที่ผู้ใช้มีภายในองค์กร (เช่น แก้ไข ดู ฯลฯ)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"getuser","bundle":"data-access","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#getuser2","description":"ส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน","examples":"\n**ตัวอย่าง**\n\nส่งคืนข้อมูลเกี่ยวกับผู้ใช้ที่เข้าสู่ระบบในปัจจุบัน โดยอิงตามการเชื่อมต่อพื้นที่ทำงานจากชั้นข้อมูลที่มีส่วนขยายผู้ใช้\n\n```arcade\nGetUser($layer, true)\n```\n\n","completion":{"label":"GetUser","detail":"GetUser(features, extensions?) -> Dictionary","insertText":"GetUser(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะส่งคืนผู้ใช้ปัจจุบัน\n- **extensions** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - กำหนดว่าจะส่งคืน `userLicenseTypeExtensions` ในดิกชันนารีหรือไม่\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้ ในขั้นตอนการทำงานออฟไลน์ จะส่งคืนเฉพาะชื่อผู้ใช้\n\n- **id**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - id ผู้ใช้ของผู้ใช้ที่ส่งคืน\n- **username**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อผู้ใช้ของผู้ใช้ที่ส่งคืน\n- **fullName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อและนามสกุลของผู้ใช้\n- **email**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ที่อยู่อีเมลที่เชื่อมโยงกับบัญชีผู้ใช้ของผู้ใช้\n- **groups**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของกลุ่มที่ผู้ใช้เป็นสมาชิก\n- **role**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - บทบาทของผู้ใช้ภายในองค์กร (เช่น Administrator, Publisher, User, Viewer หรือ Custom)\n- **privileges**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของสิทธิ์ที่ผู้ใช้มีภายในองค์กร (เช่น แก้ไข ดู ฯลฯ)\n- **userLicenseTypeExtensions**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของส่วนขยายประเภทใบอนุญาตที่เชื่อมโยงกับบัญชีของผู้ใช้ (เช่น \"Utility Network\", \"Parcel Fabric\" ฯลฯ) จะต้องตั้งค่าพารามิเตอร์ `extensions` เป็น `true` เพื่อส่งคืนค่านี้"}},"parametersInfo":{"min":1,"max":2}}],{"type":"function","name":"groupby","bundle":"data-access","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#groupby","description":"ส่งคืนสถิติในรูปแบบ FeatureSet ของชุดค่าที่จัดกลุ่มหรือค่าเฉพาะ","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนของแต่ละประเภทต้นไม้\n\n```arcade\nvar treeStats = GroupBy($layer, 'TreeType', { name: 'NumTrees', expression: '1', statistic: 'COUNT' });\n// treeStats contains features with columns TreeType and NumTrees\n// Each unique tree type will have a count\n```\n\nส่งคืนจำนวนและความสูงเฉลี่ยของแต่ละประเภทต้นไม้\n\n```arcade\nvar treeStats = GroupBy($layer,\n  [  // fields/expressions to group statistics by\n    { name: 'Type', expression: 'TreeType'},\n    { name: 'Status', expression: 'TreeStatus'}\n  ], \n  [  // statistics to return for each unique category\n    { name: 'Total', expression: '1', statistic: 'COUNT' }, \n    { name: 'AvgHeight', expression: 'Height', statistic: 'AVG' }, \n    { name: 'MaxPercentCoverage', expression: 'CoverageRatio * 100', statistic: 'MAX' }\n  ]\n);\n// treeStats contains features with columns Type, Status, Total, AvgHeight, MaxPercentCoverage\n// Each unique tree type (combination of type and status) will have a count, average height, and maximum value of percent coverage\n```\n\n","completion":{"label":"GroupBy","detail":"GroupBy(features, groupByFields, statistics) -> FeatureSet","insertText":"GroupBy(${1:features_}, ${2:groupByFields_}, ${3:statistics_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนสถิติในรูปแบบ FeatureSet ของชุดค่าที่จัดกลุ่มหรือค่าเฉพาะ\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะส่งคืนสถิติของค่าที่ไม่ซ้ำกัน ซึ่งส่งคืนจากชุดฟิลด์และ/หรือนิพจน์ที่กำหนด\n- **groupByFields**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - ฟิลด์ และ/หรือนิพจน์ที่จะจัดกลุ่มสถิติตามค่าที่ไม่ซ้ำกัน พารามิเตอร์นี้อาจเป็นชื่อฟิลด์เดี่ยว อาร์เรย์ของชื่อฟิลด์ หรืออาร์เรย์ของออบเจ็กต์ที่ ระบุชื่อคอลัมน์ จับคู่กับนิพจน์ (โดยปกติจะเป็นชื่อฟิลด์) ของเอาท์พุท FeatureSet หากกำหนดอาร์เรย์ของออบเจ็กต์ จะต้องปฏิบัติตามข้อกำหนดต่อไปนี้สำหรับแต่ละออบเจ็กต์:\n\n  - **name**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของคอลัมน์ที่จะจัดเก็บผลลัพธ์ของนิพจน์ที่กำหนด\n  - **expression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - นิพจน์ SQL-92 ที่จะจัดกลุ่มสถิติ โดยปกติจะเป็นชื่อฟิลด์\n- **statistics**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - สรุปข้อมูลสถิติที่จะคำนวณสำหรับแต่ละกลุ่ม พารามิเตอร์สามารถเป็นได้ทั้งพจนานุกรมหรืออาร์เรย์ของวัตถุ ซึ่งระบุสถิติเอาท์พุทที่จะส่งคืนสำหรับแต่ละกลุ่ม ต้องใช้ข้อมูลจำเพาะต่อไปนี้:\n\n  - **name**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของคอลัมน์ที่จะจัดเก็บผลลัพธ์ของคิวรีสถิติที่กำหนดในเอาท์พุท FeatureSet\n  - **expression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - นิพจน์ SQL-92 หรือชื่อฟิลด์ที่จะคิวรีสถิติ\n  - **statistic**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทสถิติที่จะคิวรีสำหรับฟิลด์หรือนิพจน์ที่กำหนด  \nค่าที่เป็นไปได้: SUM \\| COUNT \\| MIN \\| MAX \\| AVG \\| STDEV \\| VAR\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"intersects","bundle":"data-access","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#intersects","description":"ส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ตัดกันกับโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nส่งกลับจำนวนฟีเจอร์ที่ทับซ้อนกับโพลีกอน\n\n```arcade\nvar geom2 = Polygon({ ... });\nCount( Intersects($layer, geom2) );\n```\n\n","completion":{"label":"Intersects","detail":"Intersects(features, inputGeometry) -> FeatureSet","insertText":"Intersects(${1:features_}, ${2:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ตัดกันกับโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ถูกทดสอบการตัดกันของความสัมพันธ์กับ `geometry`\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตถูกรูปทรงเรขาคณิตอื่นทับซ้อนอยู่\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Intersects](https://esri.github.io/geometry-api-java/doc/Intersects.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"length","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length","description":"ส่งคืนความยาวของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนความยาวเชิงระนาบของชั้นข้อมูลในรูปแบบเมตร\n\n```arcade\nLength($layer, 'meters')\n```\n\n","completion":{"label":"Length","detail":"Length(features, unit?) -> Number","insertText":"Length(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนความยาวของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\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ค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#lengthgeodetic)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"length3d","bundle":"data-access","sinceVersion":"1.14","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d","description":"ส่งคืนความยาวเชิงระนาบ (เช่น Cartesian) ของฟีเจอร์เซ็ตอินพุท โดยพิจารณาความสูงหรือข้อมูล Z ร่วมด้วย เรขาคณิตที่ป้อนในฟังก์ชันนี้ จะต้องได้รับการกำหนดระบบพิกัดแนวระนาบ หากการอ้างอิงเชิงพื้นที่ไม่ได้ระบุค่าสำหรับหน่วย Z ผลลัพธ์จะถูกส่งกลับเป็นเมตร โปรดทราบว่าไม่ใช่ทุกไคลเอ็นต์ (เช่น ชุด 3.x ของ ArcGIS API สำหรับ JavaScript) ที่รองรับ การขอค่า Z แม้ว่าข้อมูลจะมีข้อมูล Z อยู่ก็ตาม\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งกลับความยาว 3 มิติของคุณสมบัติของชั้นข้อมูลในหน่วยเมตร\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n","completion":{"label":"Length3D","detail":"Length3D(features, unit?) -> Number","insertText":"Length3D(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนความยาวเชิงระนาบ (เช่น Cartesian) ของฟีเจอร์เซ็ตอินพุท โดยพิจารณาความสูงหรือข้อมูล Z ร่วมด้วย เรขาคณิตที่ป้อนในฟังก์ชันนี้ จะต้องได้รับการกำหนดระบบพิกัดแนวระนาบ หากการอ้างอิงเชิงพื้นที่ไม่ได้ระบุค่าสำหรับหน่วย Z ผลลัพธ์จะถูกส่งกลับเป็นเมตร โปรดทราบว่าไม่ใช่ทุกไคลเอ็นต์ (เช่น ชุด 3.x ของ ArcGIS API สำหรับ JavaScript) ที่รองรับ การขอค่า Z แม้ว่าข้อมูลจะมีข้อมูล Z อยู่ก็ตาม\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะคำนวณความยาวเชิงระนาบในพื้นที่ 3D\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ส่วนนี้อาจเป็นหนึ่งในค่าที่เป็นไปได้ด้านล่าง หรือหนึ่งในรหัสตัวเลขที่แสดงรายการในส่วนทรัพยากรเพิ่มเติมด้านล่าง สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#lengthgeodetic)\n* [Length()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"lengthgeodetic","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#lengthgeodetic","description":"ส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนความยาวจีโอเดติกของชั้นข้อมูลในรูปแบบเมตร\n\n```arcade\nLengthGeodetic($layer, 'meters')\n```\n\n","completion":{"label":"LengthGeodetic","detail":"LengthGeodetic(features, unit?, curveType?) -> Number","insertText":"LengthGeodetic(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพื้นที่บนสัณฐานโลกของอินพุทฟีเจอร์เซ็ตในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\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ค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n- **curveType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้__Since 1.31_ The type of curve to use for the geodetic length calculation______________________________________ษฺ. ก้_If no value is provided, the default is `Geodesic`____________________________ษฺ.  \nก้_Possible values___________________ษฺ:  \n  ก้_- `Geodesic` - Defined by the shortest distance between two points on an ellipsoid_____________________________________________ษฺ.  \n  ก้_- `GreatElliptic` - Defined by the intersection of a plane that contains the center of the spheroid and the spheroid surface and passes through two points. This is also known as a great circle when a sphere is used. It is not necessarily the shortest path between two points_____________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `Loxodrome` - Defined by the line of constant bearing, or azimuth, between two points. It represents a rhumb-line path on the earth that crosses each meridian at the same acute angle, thus forming a spiral that converges on the north or south pole. The Mercator projection shows loxodromes as straight lines______________________________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `NormalSection` - Defined by the intersection of a plane that passes through two points on the surface of the spheroid and is perpendicular to the surface at the first point. It is not necessarily the shortest path between two points_________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `ShapePreserving` - The segment shape is preserved in the projection where it is defined. This is often used in situations where maintaining the visual representation of a feature is crucial, like when working with boundaries or coastlines___________________________________________________________________________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Length()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":1,"max":3}},{"type":"function","name":"max","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#max","description":"ส่งคืนค่าสูงสุดของฟิลด์ตัวเลขที่กำหนดจากฟีเจอร์เซ็ต","examples":"\n**ตัวอย่าง**\n\nพิมพ์ค่าสูงสุดของฟิลด์จำนวนประชากร สำหรับฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMax($layer, 'population')\n```\n\nคำนวณจำนวนประชากรสูงสุดต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMax($layer, 'population / area')\n```\n\n","completion":{"label":"Max","detail":"Max(features, fieldNameOrSQLExpression) -> Number","insertText":"Max(${1:features_}, ${2:fieldNameOrSQLExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"mean","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#mean","description":"ส่งคืนค่าเฉลี่ยของฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต","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","completion":{"label":"Mean","detail":"Mean(features, fieldNameOrSQLExpression) -> Number","insertText":"Mean(${1:features_}, ${2:fieldNameOrSQLExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"min","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#min","description":"ส่งคืนค่าต่ำสุดของฟิลด์ตัวเลขที่กำหนดจากฟีเจอร์เซ็ต","examples":"\n**ตัวอย่าง**\n\nพิมพ์ค่าต่ำสุดของฟิลด์จำนวนประชากร สำหรับฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMin($layer, 'population')\n```\n\nส่งคืนจำนวนประชากรต่ำสุดต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nMin($layer, 'population / area')\n```\n\n","completion":{"label":"Min","detail":"Min(features, fieldNameOrSQLExpression) -> Number","insertText":"Min(${1:features_}, ${2:fieldNameOrSQLExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"orderby","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#orderby","description":"จัดลำดับ FeatureSet ตามเงื่อนไข SQL92 OrderBy","examples":"\n**ตัวอย่าง**\n\nจัดลำดับฟีเจอร์ตามจำนวนประชากร โดยฟีเจอร์ที่มีจำนวนประชากรสูงสุดจะแสดงก่อน\n\n```arcade\nOrderBy($layer, 'POPULATION DESC')\n```\n\nจัดลำดับฟีเจอร์ตามอันดับน้อยไปมาก\n\n```arcade\nOrderBy($layer, 'Rank ASC')\n```\n\n","completion":{"label":"OrderBy","detail":"OrderBy(features, sqlExpression) -> FeatureSet","insertText":"OrderBy(${1:features_}, ${2:sqlExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nจัดลำดับ FeatureSet ตามเงื่อนไข SQL92 OrderBy\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet หรือชั้นข้อมูลที่จะจัดลำดับ\n- **sqlExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - นิพจน์ SQL92 ที่ใช้ในการจัดอันดับฟีเจอร์ในแต่ละชั้นข้อมูล\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"overlaps","bundle":"data-access","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#overlaps","description":"ส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ทับซ้อนกับโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนฟีเจอร์ที่คาบเกี่ยวกับโพลีกอน\n\n```arcade\nvar geom2 = Polygon({ ... });\nCount( Overlaps($layer, geom2) );\n```\n\n","completion":{"label":"Overlaps","detail":"Overlaps(overlappingFeatures, inputGeometry) -> FeatureSet","insertText":"Overlaps(${1:overlappingFeatures_}, ${2:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่ทับซ้อนกับโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **overlappingFeatures**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - ฟีเจอร์ที่จะทดสอบความสัมพันธ์ 'overlaps' กับ `geometry`\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - การเปรียบเที่ยบรูปทรงเรขาคณิตฐานถูกทดสอบหาความสัมพันธ์ของ 'overlaps (ทับกัน)' กับ `overlappingFeatures`\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Overlaps](https://esri.github.io/geometry-api-java/doc/Overlaps.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"schema","bundle":"data-access","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#schema","description":"แจ้งกลับรายละเอียดสคีมาของ FeatureSet ที่แจ้ง","examples":"","completion":{"label":"Schema","detail":"Schema(features) -> Dictionary","insertText":"Schema(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแจ้งกลับรายละเอียดสคีมาของ FeatureSet ที่แจ้ง\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะต้องแจ้งกลับสคีมา\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **objectIdField**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ฟิลด์ objectId ของ FeatureSet\n- **globalIdField**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ฟิลด์ ID ส่วนกลางของ FeatureSet แจ้งกลับเป็น `\"\"` หากไม่ได้เปิดใช้ globalId\n- **geometryType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทเรขาคณิตสำหรับฟีเจอร์ใน FeatureSet ส่งคืน `esriGeometryNull` สำหรับตารางที่ไม่มีเรขาคณิต  \nค่าที่เป็นไปได้: `esriGeometryPoint`, `esriGeometryLine`, `esriGeometryPolygon`, `esriGeometryNull`\n- **fields**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - แจ้งกลับอะเรพจนานุกรมระบุฟิลด์ใน FeatureSet แต่ละพจนานุกรมจะอธิบายฟิลด์ `name`, `alias`, `type`, `subtype`, `domain`, `length`, และเป็นฟิลด์ที่ `editable` และ `nullable` หรือไม่"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"stdev","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#stdev","description":"ส่งคืนส่วนเบี่ยงเบนมาตรฐานสำหรับค่าจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต","examples":"\n**ตัวอย่าง**\n\nพิมพ์ส่วนเบี่ยงเบนมาตรฐานของค่าจากฟิลด์ 'population'\n\n```arcade\nStdev($layer, 'population')\n```\n\nคำนวณส่วนเบี่ยงเบนมาตรฐานของประชากรต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nStdev($layer, 'population / area')\n```\n\n","completion":{"label":"Stdev","detail":"Stdev(features, fieldNameOrSQLExpression) -> Number","insertText":"Stdev(${1:features_}, ${2:fieldNameOrSQLExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"subtypes","bundle":"data-access","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#subtypes","description":"แจ้งกลับพจนานุกรมค่าลงรหัสประเภทย่อย แจ้งกลับเป็น 'null' เมื่อไม่ได้เปิดใช้ประเภทย่อยในชั้นข้อมูลดังกล่าว","examples":"\n**ตัวอย่าง**\n\nส่งคืนประเภทย่อยของค่าที่เข้ารหัสจาก FeatureSet\n\n```arcade\nvar fsTransformer = FeatureSetByName($layer, \"Transformer\")\nSubtypes(fsTransformer)\n// returns the following dictionary\n// {\n//   subtypeField: 'assetGroup',\n//   subtypes: [\n//     { name: \"Unknown\", code: 0 },\n//     { name: \"Single Phase\", code: 1 },\n//     { name: \"Two Phase\", code: 2 }\n//   ]\n// }\n```\n\n","completion":{"label":"Subtypes","detail":"Subtypes(features) -> Dictionary","insertText":"Subtypes(${1:features_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแจ้งกลับพจนานุกรมค่าลงรหัสประเภทย่อย แจ้งกลับเป็น 'null' เมื่อไม่ได้เปิดใช้ประเภทย่อยในชั้นข้อมูลดังกล่าว\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet สำหรับสืบค้นประเภทย่อย\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **subtypeField**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ฟิลด์ที่มีประเภทย่อย\n- **subtypes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - อะเรพจนานุกรมที่ระบุประเภทย่อย แต่ละพจนานุกรมจะมีคุณสมบัติ `code` ซึ่งมีค่าฟิลด์จริงอยู่ และคุณสมบัติ `name` ที่มีคำอธิบายค่าแบบเป็นมิตรกับผู้ใช้ (เช่น `{ code: 1, name: \"pavement\" }`)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"sum","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#sum","description":"ส่งคืนผลรวมของค่าที่ส่งคืนจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต","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","completion":{"label":"Sum","detail":"Sum(features, fieldNameOrSQLExpression) -> Number","insertText":"Sum(${1:features_}, ${2:fieldNameOrSQLExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"top","bundle":"data-access","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#top","description":"ตัด FeatureSet และส่งคืนตัวเลขของฟีเจอร์แรกที่กำหนด","examples":"\n**ตัวอย่าง**\n\nส่งคืน 5 ฟีเจอร์บนสุดที่มีจำนวนประชากรสูงสุด\n\n```arcade\nTop( OrderBy($layer, 'POPULATION DESC'), 5 )\n```\n\n","completion":{"label":"Top","detail":"Top(features, numItems) -> FeatureSet","insertText":"Top(${1:features_}, ${2:numItems_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตัด FeatureSet และส่งคืนตัวเลขของฟีเจอร์แรกที่กำหนด\n\n**พารามิเตอร์**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet ที่จะตัด\n- **numItems**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนของฟีเจอร์ที่จะส่งคืนจากจุดเริ่มต้นของ FeatureSet\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"touches","bundle":"data-access","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#touches","description":"ส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่สัมผัสโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนฟีเจอร์ในชั้นข้อมูลที่สัมผัสกับรูปทรงเรขาคณิต\n\n```arcade\nvar geom = Polygon({ ... });\nCount( Touches($layer, geom) );\n```\n\n","completion":{"label":"Touches","detail":"Touches(touchingFeatures, inputGeometry) -> FeatureSet","insertText":"Touches(${1:touchingFeatures_}, ${2:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนฟีเจอร์ใน FeatureSet ที่สัมผัสโพลีกอนที่กำหนด\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **touchingFeatures**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - ฟีเจอร์ที่จะทดสอบความสัมพันธ์ 'touches' กับ `geometry`\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตที่ใช้ทดสอบหาความสัมพันธ์ 'touches' กับ `touchingFeatures`\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Touches](https://esri.github.io/geometry-api-java/doc/Touches.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"variance","bundle":"data-access","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#variance","description":"ส่งคืนความแปรปรวนของค่าจากฟิลด์ตัวเลขที่กำหนดในฟีเจอร์เซ็ต","examples":"\n**ตัวอย่าง**\n\nพิมพ์ผลต่างของฟิลด์จำนวนประชากรในชั้นข้อมูลที่กำหนด\n\n```arcade\nVariance($layer, 'population')\n```\n\nคำนวณผลต่างของจำนวนประชากรต่อตารางไมล์ของฟีเจอร์ทั้งหมดในชั้นข้อมูล\n\n```arcade\nVariance($layer, 'population / area')\n```\n\n","completion":{"label":"Variance","detail":"Variance(features, fieldNameOrSQLExpression) -> Number","insertText":"Variance(${1:features_}, ${2:fieldNameOrSQLExpression_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"within","bundle":"data-access","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/featureset_functions/#within","description":"ส่งคืนฟีเจอร์จากฟีเจอร์เซ็ตที่มี `innerGeometry`\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนฟีเจอร์ในชั้นข้อมูลภายในโพลีกอน\n\n```arcade\nvar outerGeom = Polygon({ ... });\nCount( Within(outerGeom, $layer) );\n```\n\n","completion":{"label":"Within","detail":"Within(innerGeometry, outerFeatures) -> FeatureSet","insertText":"Within(${1:innerGeometry_}, ${2:outerFeatures_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนฟีเจอร์จากฟีเจอร์เซ็ตที่มี `innerGeometry`\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **innerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตฐานที่ถูกทดสอบหาความสัมพันธ์ 'within' กับ `outerFeatures`\n- **outerFeatures**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - ฟีเจอร์เปรียบเทียบ ที่ถูกทดสอบหาความสัมพันธ์ของ 'contains' กับ `innerGeometry`\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Within](https://esri.github.io/geometry-api-java/doc/Within.html)\n"}},"parametersInfo":{"min":2,"max":2}}]},{"id":"portal_functions","title":"ฟังก์ชัน Portal","items":[{"type":"function","name":"featuresetbyportalitem","bundle":"portal-access","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/portal_functions/#featuresetbyportalitem","description":"สร้าง FeatureSet จากชั้นข้อมูลฟีเจอร์ในรายการพอร์ทัลจากพอร์ทัลที่กำหนด การจำกัดจำนวนฟิลด์ใน FeatureSet และตัดรูปทรงเรขาคณิตออก สามารถพัฒนาประสิทธิภาพของสคริปต์ได้","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนฟีเจอร์ในชั้นข้อมูลจากพอร์ทัลที่แตกต่างจากฟีเจอร์ในแผนที่\n\n```arcade\nvar features = FeatureSetByPortalItem(\n  Portal('https://www.arcgis.com'),\n  '7b1fb95ab77f40bf8aa09c8b59045449',\n  0,\n  ['Name', 'Count'],\n  false\n);\nCount(features);\n```\n\n","completion":{"label":"FeatureSetByPortalItem","detail":"FeatureSetByPortalItem(portalObject, itemId, layerId?, fields?, includeGeometry?) -> FeatureSet","insertText":"FeatureSetByPortalItem(${1:portalObject_}, ${2:itemId_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้าง FeatureSet จากชั้นข้อมูลฟีเจอร์ในรายการพอร์ทัลจากพอร์ทัลที่กำหนด การจำกัดจำนวนฟิลด์ใน FeatureSet และตัดรูปทรงเรขาคณิตออก สามารถพัฒนาประสิทธิภาพของสคริปต์ได้\n\n**พารามิเตอร์**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - พอร์ทัลที่จะคิวรีฟีเจอร์จาก ID รายการพอร์ทัลที่กำหนด\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - GUID ของรายการพอร์ทัลที่อ้างอิงชั้นข้อมูลฟีเจอร์ หรือฟีเจอร์เซอร์วิส _โปรดทราบว่าค่านี้จะต้องเป็นตัวอักษรข้อความ_\n- **layerId** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ของชั้นข้อมูลในฟีเจอร์เซอร์วิส ต้องสร้างชั้นข้อมูลนี้จากฟีเจอร์เซอร์วิส ระบบไม่รองรับฟีเจอร์คอลเลกชัน\n- **fields** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - ฟิลด์ที่จะรวมไว้ในฟีเจอร์เซ็ต ตามค่าเริ่มต้น จะรวมฟิลด์ทั้งหมดไว้ หากต้องการร้องขอฟิลด์ทั้งหมดในชั้นข้อมูล ให้ตั้งค่านี้เป็น `['*']` การจำกัดจำนวนฟิลด์จะช่วยเพิ่มประสิทธิภาพของสคริปต์ได้\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะรวมรูปทรงเรขาคณิตไว้ในฟีเจอร์หรือไม่ เพื่อประสิทธิภาพ คุณควรร้องขอรูปทรงเรขาคณิตเฉพาะเมื่อจำเป็น เช่น เพื่อการใช้ในฟังก์ชันรูปทรงเรขาคณิต\n\n**ส่งคืนค่า**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"}},"parametersInfo":{"min":2,"max":5}},[{"type":"function","name":"getuser","bundle":"data-access","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/portal_functions/#getuser1","description":"ส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน","examples":"\n**ตัวอย่าง**\n\nส่งคืนชื่อผู้ใช้จากผู้ใช้ที่เข้าสู่ระบบพอร์ทัลที่ใช้งานอยู่ในปัจจุบัน หากไม่มีผู้ใช้ที่เชื่อมโยงกับพอร์ทัล จะเป็นการส่งคืน `null`\n\n```arcade\nvar userInfo = GetUser();\nif(HasValue(userInfo, \"username\")){\n  return userInfo.username;\n}\n```\n\nส่งคืนดิกชันนารีของผู้ใช้ที่เข้าสู่ระบบในปัจจุบัน โดยอิงตามการเชื่อมต่อพื้นที่ทำงานจากพอร์ทัลที่กำหนด\n\n```arcade\nGetUser(Portal('https://www.arcgis.com'))\n```\n\n","completion":{"label":"GetUser","detail":"GetUser(portalObject?, username?) -> Dictionary","insertText":"GetUser($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน\n\n**พารามิเตอร์**\n\n- **portalObject** (_Optional_): [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - พอร์ทัลที่จะส่งคืนผู้ใช้ปัจจุบัน หากไม่ได้ระบุพอร์ทัล จะส่งคืนข้อมูลผู้ใช้จากพอร์ทัลที่ใช้งานอยู่\n- **username** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อผู้ใช้ของผู้ใช้ที่คุณต้องการส่งคืน จะส่งคืนเฉพาะข้อมูลแบบจำกัด โดยอิงตามสิทธิ์ของคุณขณะส่งคำขอ\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้ ในขั้นตอนการทำงานออฟไลน์ จะส่งคืนเฉพาะชื่อผู้ใช้\n\n- **email**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ที่อยู่อีเมลที่เชื่อมโยงกับบัญชีผู้ใช้ของผู้ใช้\n- **fullName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อและนามสกุลของผู้ใช้\n- **groups**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของกลุ่มที่ผู้ใช้เป็นสมาชิก\n- **id**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - id ผู้ใช้ของผู้ใช้ที่ส่งคืน\n- **privileges**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของสิทธิ์ที่ผู้ใช้มีภายในองค์กร (เช่น แก้ไข ดู ฯลฯ)\n- **role**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - บทบาทของผู้ใช้ภายในองค์กร (เช่น Administrator, Publisher, User, Viewer หรือ Custom)\n- **username**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อผู้ใช้ของผู้ใช้ที่ส่งคืน"}},"parametersInfo":{"min":0,"max":2}},{"type":"function","name":"getuser","bundle":"data-access","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/portal_functions/#getuser2","description":"ส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน","examples":"\n**ตัวอย่าง**\n\nส่งคืนข้อมูลผู้ใช้สำหรับพอร์ทัลที่ใช้งานอยู่ หากไม่มีผู้ใช้ที่เชื่อมโยงกับพอร์ทัล จะเป็นการส่งคืน `null`\n\n```arcade\nGetUser()\n```\n\nส่งคืนข้อมูลเกี่ยวกับผู้ใช้ที่เข้าสู่ระบบในปัจจุบัน โดยอิงตามพอร์ทัลที่มีส่วนขยายผู้ใช้\n\n```arcade\nGetUser(Portal('https://www.arcgis.com'), true)\n```\n\n","completion":{"label":"GetUser","detail":"GetUser(portalObject?, extensions?) -> Dictionary","insertText":"GetUser($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผู้ใช้ปัจจุบันจากพื้นที่ทำงาน สำหรับข้อมูลจากเซอร์วิส จะส่งคืนผู้ใช้ Portal หรือผู้ใช้ Server สำหรับข้อมูลจากการเชื่อมต่อฐานข้อมูล จะส่งคืนผู้ใช้ฐานข้อมูล เมื่อไม่มีผู้ใช้เชื่อมโยงกับพื้นที่ทำงาน เช่น ไฟล์ฐานข้อมูลภูมิศาสตร์ ค่า `null` จะถูกส่งคืน\n\n**พารามิเตอร์**\n\n- **portalObject** (_Optional_): [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - พอร์ทัลที่จะส่งคืนผู้ใช้ปัจจุบัน หากไม่ได้ระบุพอร์ทัล จะส่งคืนข้อมูลผู้ใช้จากพอร์ทัลที่ใช้งานอยู่\n- **extensions** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - กำหนดว่าจะส่งคืน `userLicenseTypeExtensions` ในดิกชันนารีหรือไม่\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้ ในขั้นตอนการทำงานออฟไลน์ จะส่งคืนเฉพาะชื่อผู้ใช้\n\n- **id**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - id ผู้ใช้ของผู้ใช้ที่ส่งคืน\n- **username**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อผู้ใช้ของผู้ใช้ที่ส่งคืน\n- **fullName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อและนามสกุลของผู้ใช้\n- **email**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ที่อยู่อีเมลที่เชื่อมโยงกับบัญชีผู้ใช้ของผู้ใช้\n- **groups**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของกลุ่มที่ผู้ใช้เป็นสมาชิก\n- **role**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - บทบาทของผู้ใช้ภายในองค์กร (เช่น Administrator, Publisher, User, Viewer หรือ Custom)\n- **privileges**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของสิทธิ์ที่ผู้ใช้มีภายในองค์กร (เช่น แก้ไข ดู ฯลฯ)\n- **userLicenseTypeExtensions**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของส่วนขยายประเภทใบอนุญาตที่เชื่อมโยงกับบัญชีของผู้ใช้ (เช่น \"Utility Network\", \"Parcel Fabric\" ฯลฯ) จะต้องตั้งค่าพารามิเตอร์ `extensions` เป็น `true` เพื่อส่งคืนค่านี้"}},"parametersInfo":{"min":0,"max":2}}],{"type":"function","name":"portal","bundle":"data-access","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/portal_functions/#portal","description":"สร้างการอ้างอิงไปยัง ArcGIS Portal","examples":"\n**ตัวอย่าง**\n\nคิวรีฟีเจอร์จากรายการพอร์ทัลใน ArcGIS Online\n\n```arcade\nvar arcgisPortal = Portal('https://www.arcgis.com');\nvar features = FeatureSetByPortalItem(arcgisPortal, '7b1fb95ab77f40bf8aa09c8b59045449', 0, ['Name', 'Count'], false);\n```\n\nEnterprise Portal\n\n```arcade\nPortal('https://www.example.com/arcgis')\n```\n\n","completion":{"label":"Portal","detail":"Portal(url) -> Portal","insertText":"Portal(${1:url_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างการอ้างอิงไปยัง ArcGIS Portal\n\n**พารามิเตอร์**\n\n- **url**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - url ของพอร์ทัล\n\n**ส่งคืนค่า**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal)"}},"parametersInfo":{"min":1,"max":1}}]},{"id":"knowledge-graph_functions","title":"ฟังก์ชันกราฟความรู้","items":[{"type":"function","name":"knowledgegraphbyportalitem","bundle":"knowledge-graph","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem","description":"ส่งคืนกราฟความรู้จากรายการ Portal","examples":"\n**ตัวอย่าง**\n\nส่งคืนกราฟความรู้จากรายการ Portal\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n  Portal('https://www.example.com/arcgis'), // enterprise portal\n  '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n","completion":{"label":"KnowledgeGraphByPortalItem","detail":"KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph","insertText":"KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนกราฟความรู้จากรายการ Portal\n\n**พารามิเตอร์**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Portal ที่จะคิวรีฟีเจอร์จาก\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - GUID ของรายการ Portal ที่อ้างอิงบริการกราฟความรู้ _ค่านี้ต้องเป็นตัวอักษรข้อความ_\n\n**ส่งคืนค่า**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Get started with ArcGIS Knowledge Server](https://enterprise.arcgis.com/en/knowledge/latest/introduction/get-started-with-arcgis-knowledge.htm)\n* [Get started with ArcGIS Knowledge (ArcGIS Pro)](https://pro.arcgis.com/en/pro-app/latest/help/data/knowledge/get-started-with-arcgis-knowledge.htm)\n* [Introduction to knowledge graph service in the ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/latest/knowledge-graph/knowledge-graph-intro/)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"querygraph","bundle":"knowledge-graph","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph","description":"คิวรีกราฟความรู้ด้วยคิวรี openCypher และส่งคืนชุดของเอนทิตีและความสัมพันธ์ในกราฟ พร้อมคุณสมบัติ","examples":"\n**ตัวอย่าง**\n\nคิวรีกราฟความรู้เพื่อหาข้อมูลเกี่ยวกับเอนทิตี `Student` ที่อยู่ในกราฟ\n\n```arcade\nvar results = QueryGraph(\n  knowledgeGraph,\n  'MATCH (p:Student)-[e:EnrolledAt]->(s:School)\n   WHERE s.name = \"Eastside Elementary\"\n   RETURN p,e,s.principal,s.numStaff\n   LIMIT 1');\n\nreturn Text(results);\n```\n\nคิวรีกราฟความรู้โดยใช้พารามิเตอร์การผูก\n\n```arcade\n// searches for entities with a `name` property that matches the given string in the query parameters\n// OR falls within the given geom bounding box\n// query returns both the supplier and the part that it buys\nvar query = `MATCH (s:Supplier)-[:buys_part]-(p:Part)\n  WHERE s.name=$name OR esri.graph.ST_Intersects($geom, s.geometry)\n  RETURN s,p`;\n \n var results = QueryGraph(\n   $graph,\n   query,\n   {\n     \"name\": \"Supplier 1\",\n     \"geom\": Polygon({\n        rings: [[\n          [38,-78],\n          [39,-79],\n          [39,-76],\n          [-38,-76],\n          [-38,-78]\n        ]]\n      })\n   }\n );\n```\n\n","completion":{"label":"QueryGraph","detail":"QueryGraph(graph, openCypherQuery, queryParameters?, includeProvenance?) -> Array","insertText":"QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nคิวรีกราฟความรู้ด้วยคิวรี openCypher และส่งคืนชุดของเอนทิตีและความสัมพันธ์ในกราฟ พร้อมคุณสมบัติ\n\n**พารามิเตอร์**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - กราฟความรู้ที่จะคิวรี\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - คิวรี openCypher ที่จะดำเนินการกับกราฟความรู้\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - พจนานุกรมของพารามิเตอร์คิวรีแบบระบุชื่อสำหรับคิวรี openCypher ชื่อพารามิเตอร์หรือคีย์ในพจนานุกรมจะต้องตรงตามตัวพิมพ์เล็กใหญ่ พารามิเตอร์ที่ยอมรับจะขึ้นอยู่กับที่จัดเก็บกราฟภายนอก โดยสามารถเป็นประเภท: `Array`, `Date`, `Dictionary`, `Geometry`, `Number`, `Text`\n- **includeProvenance** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ก้__Since 1.31_ Indicates whether to include provenance entities (metadata) in the query results. Default is `false`__________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: Array\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Get started with ArcGIS Knowledge Server](https://enterprise.arcgis.com/en/knowledge/latest/introduction/get-started-with-arcgis-knowledge.htm)\n* [Get started with ArcGIS Knowledge (ArcGIS Pro)](https://pro.arcgis.com/en/pro-app/latest/help/data/knowledge/get-started-with-arcgis-knowledge.htm)\n* [Introduction to knowledge graph service in the ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/latest/knowledge-graph/knowledge-graph-intro/)\n"}},"parametersInfo":{"min":2,"max":4}}]},{"id":"debugging_functions","title":"ฟังก์ชันการดีบัก","items":[{"type":"function","name":"console","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/debugging_functions/#console","description":"บันทึกข้อความไปยังคอนโซลเพื่อวัตถุประสงค์การดีบัก ฟังก์ชันนี้อาจมีประโยชน์เป็นพิเศษในการดีบักนิพจน์ `Console()` จะแตกต่างจากฟังก์ชันโดยส่วนใหญ่ เนื่องจากจะไม่ส่งคืนค่า แต่จะ จะบันทึกเหตุการณ์ข้อความในหน้าต่างแยกต่างหาก เพื่อใช้ในการตรวจสอบเท่านั้น การใช้งานที่ประสบความสำเร็จของฟังก์ชั่นนี้จะไม่มีผลกระทบต่อการคำนวณในการประเมินผลของสมการ ตำแหน่งของคอนโซลจะขึ้นอยู่กับโปรไฟล์หรือบริบทที่นิพจน์ถูกสร้างขึ้น หากสร้างนิพจน์ไว้ใน ArcGIS Online ข้อความที่ถูกบันทึกไว้ จะถูกเข้าถึงจากในแท็บ \"คอนโซล\" ของหน้าต่างผลลัพธ์ใน Arcade Editor นิพจน์ที่ดำเนินการในเว็บไคลเอนต์ จะบันทึกข้อความคอนโซลไว้ในคอนโซลเบราว์เซอร์","examples":"\n**ตัวอย่าง**\n\nบันทึกค่าของ `max` สำหรับแต่ละการวนซ้ำของลูปภายในฟังก์ชัน\n\n```arcade\n// The console window will log the following:\n// 'current item is: 10, but max = 10'\n// 'current item is: 0, but max = 10'\n// 'current item is: 84, but max = 84'\n// 'current item is: 30, but max = 84'\n\n// The expression evaluates to 84\nfunction findMax(yourArray) {\n  var maxValue = -Infinity;\n  for (var i in yourArray) {\n    maxValue = IIf(yourArray[i] > maxValue, yourArray[i], maxValue);\n    Console('current item is: ' + i + ', but maxValue = ' + maxValue);\n  }\n  return maxValue;\n}\nvar myArray = [ 10, 0, 84, 30 ];\nfindMax(myArray);\n```\n\n","completion":{"label":"Console","detail":"Console([value1, ..., valueN]?) -> Null","insertText":"Console($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nบันทึกข้อความไปยังคอนโซลเพื่อวัตถุประสงค์การดีบัก ฟังก์ชันนี้อาจมีประโยชน์เป็นพิเศษในการดีบักนิพจน์ `Console()` จะแตกต่างจากฟังก์ชันโดยส่วนใหญ่ เนื่องจากจะไม่ส่งคืนค่า แต่จะ จะบันทึกเหตุการณ์ข้อความในหน้าต่างแยกต่างหาก เพื่อใช้ในการตรวจสอบเท่านั้น การใช้งานที่ประสบความสำเร็จของฟังก์ชั่นนี้จะไม่มีผลกระทบต่อการคำนวณในการประเมินผลของสมการ ตำแหน่งของคอนโซลจะขึ้นอยู่กับโปรไฟล์หรือบริบทที่นิพจน์ถูกสร้างขึ้น หากสร้างนิพจน์ไว้ใน ArcGIS Online ข้อความที่ถูกบันทึกไว้ จะถูกเข้าถึงจากในแท็บ \"คอนโซล\" ของหน้าต่างผลลัพธ์ใน Arcade Editor นิพจน์ที่ดำเนินการในเว็บไคลเอนต์ จะบันทึกข้อความคอนโซลไว้ในคอนโซลเบราว์เซอร์\n\n**พารามิเตอร์**\n\n- **[value1, ..., valueN]** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - รายชื่อตัวแปร ข้อความ ตัวเลข หรือพจนานุกรมที่จะเอาท์พุทในหน้าต่างข้อความ\n\n**ส่งคืนค่า**: Null"}},"parametersInfo":{"min":0,"max":-1}},{"type":"function","name":"getenvironment","bundle":"core","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/debugging_functions/#getenvironment","description":"ให้ข้อมูลเกี่ยวกับบริบทและสภาพแวดล้อมที่จะดำเนินการนิพจน์ Arcade","examples":"\n**ตัวอย่าง**\n\nรับสภาพแวดล้อมของไคลเอนต์หรือระบบ\n\n```arcade\nvar env = GetEnvironment()\n// equals the following when executed in a JavaScript Maps SDK application\n// {\n//  \"version\":\"1.30\",\n//  \"engine\":\"web\",\n//  \"engineVersion\":\"4.32\",\n//  \"application\":\"\",\n//  \"locale\":\"en\",\n//  \"spatialReference\": { \"wkid\": 102100 }\n//  \"timeZone\":\"America/Los_Angeles\",\n//  \"userTimeZone\":\"America/Los_Angeles\"\n// }\nvar locale = IIF(HasValue(env, \"locale\"), env.locale, \"\");\n// returns the locale if it exists, otherwise returns an empty text value\nreturn locale;\n```\n\n","completion":{"label":"GetEnvironment","detail":"GetEnvironment() -> Dictionary","insertText":"GetEnvironment($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nให้ข้อมูลเกี่ยวกับบริบทและสภาพแวดล้อมที่จะดำเนินการนิพจน์ Arcade\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nส่งคืนพจนานุกรมที่มีคุณสมบัติด้านล่าง คุณสมบัติที่ส่งคืนอาจแตกต่างกันไป โดยขึ้นอยู่กับว่าคุณรันนิพจน์ Arcade จากที่ใด เราจึงแนะนำให้ใช้ฟังก์ชัน `HasValue` เพื่อตรวจสอบให้แน่ใจว่ามีคุณสมบัติสภาพแวดล้อมที่ต้องการอยู่\n\n- **version**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - เวอร์ชันของ Arcade ดูข้อมูลเพิ่มเติมเกี่ยวกับการกำหนดเวอร์ชันได้จากเมทริกซ์เวอร์ชัน Arcade\n- **engine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - เอนจินที่ดำเนินการนิพจน์ Arcade ค่าที่เป็นไปได้: `web`, `native`, `jvm`\n- **engineVersion**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - เวอร์ชันของเอนจินที่ดำเนินการนิพจน์ Arcade ดูข้อมูลเพิ่มเติมเกี่ยวกับการกำหนดเวอร์ชันได้จากเมทริกซ์เวอร์ชัน Arcade\n- **application**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - แอปพลิเคชันที่จะรันนิพจน์ Arcade ใน การตั้งค่านี้จะขึ้นอยู่กับผู้พัฒนาแอปพลิเคชัน ดังนั้น คุณสมบัตินี้อาจว่างเปล่า โดยขึ้นอยู่กับแอปที่ดำเนินการนิพจน์\n- **locale**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ภาษาของไคลเอนต์หรือระบบ\n- **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของบริบท Arcade\n\n  - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของการอ้างอิงเชิงพื้นที่\n- **timeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _ตั้งแต่ 1.24_ โซนเวลาของบริบทการดำเนินการของนิพจน์ จะใช้ส่วนนี้ขณะสร้างและแสดงค่าวันที่ ในกรณีที่ไม่ได้ระบุโซนเวลาไว้เป็นอื่น\n- **userTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _ตั้งแต่ 1.30_ โซนเวลาของอุปกรณ์หรือเบราว์เซอร์ที่ดำเนินการนิพจน์ Arcade\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Arcade profiles and execution context](https://developers.arcgis.com/arcade/guide/profiles/)\n* [Arcade version matrix](https://developers.arcgis.com/arcade/guide/version-matrix/)\n* [HasValue()](https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue)\n"}},"parametersInfo":{"min":0,"max":0}}]},{"id":"track_functions","title":"ฟังก์ชันการติดตาม","items":[{"type":"function","name":"trackaccelerationat","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackaccelerationat","description":"อัตราเร่งในการสังเกตการณ์แบบสัมพันธ์กับการสังเกตการณ์ปัจจุบัน","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าตัวเลขของแต่ละฟีเจอร์ที่แทนค่าอัตราเร่งในรูปแบบเมตรต่อวินาทียกกำลังสอง ในตัวอย่างนี้ เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 1 (p1) ด้วย `value` ที่ 1 ผลลัพธ์จะเท่ากับอัตราเร่งของฟีเจอร์ 2 (p2)\n\n```arcade\nvar accelerationAt = TrackAccelerationAt(1)\naccelerationAt;\n// returns 0.0167\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าตัวเลขของแต่ละฟีเจอร์ที่แทนค่าอัตราเร่งในรูปแบบเมตรต่อวินาทียกกำลังสอง ในตัวอย่างนี้ เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 1 (p1) ด้วย `value` ที่ 3 ผลลัพธ์จะเท่ากับอัตราเร่งของฟีเจอร์ 4 (p4)\n\n```arcade\nvar accelerationAt = TrackAccelerationAt(3)\naccelerationAt;\n// returns -0.0014\n```\n\n","completion":{"label":"TrackAccelerationAt","detail":"TrackAccelerationAt(value) -> Number","insertText":"TrackAccelerationAt(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nอัตราเร่งในการสังเกตการณ์แบบสัมพันธ์กับการสังเกตการณ์ปัจจุบัน\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนฟีเจอร์ก่อนหรือหลังการสังเกตการณ์ปัจจุบัน  \nฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"trackaccelerationwindow","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackaccelerationwindow","description":"ค่าอัตราเร่งระหว่างค่าแรก (ครอบคลุม) จนถึงค่าสุดท้าย (จำเพาะ) ในกรอบรอบๆ การสังเกตการณ์ปัจจุบัน (0)","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าอาร์เรย์ที่มีค่าอัตราเร่งของแต่ละฟีเจอร์ในกรอบที่กำหนด อัตราเร่งจะถูกคำนวณในรูปแบบเมตรต่อวินาทียกกำลังสอง ในตัวอย่างนี้ เราได้ตรวจสอบผลลัพธ์ของฟีเจอร์ 3 (p3) เมื่อประเมินค่าด้วย `startIndex` ที่ `-1` และ `endIndex` ที่ `2`\n\n```arcade\nvar accelerationWindow = TrackAccelerationWindow(-1, 2)\naccelerationWindow;\n// returns [0.0167, 0.0056, -0.0014]\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าอาร์เรย์ที่มีค่าอัตราเร่งของแต่ละฟีเจอร์ในกรอบที่กำหนด อัตราเร่งจะถูกคำนวณในรูปแบบเมตรต่อวินาทียกกำลังสอง ในตัวอย่างนี้ เราได้ตรวจสอบผลลัพธ์ของฟีเจอร์ 3 (p3) เมื่อประเมินค่าด้วย `startIndex` ที่ `1` และ `endIndex` ที่ `3`\n\n```arcade\nvar accelerationWindow = TrackAccelerationWindow(1, 3)\naccelerationWindow;\n// returns [-0.0014, 0.0014, -0.0028]\n```\n\n","completion":{"label":"TrackAccelerationWindow","detail":"TrackAccelerationWindow(startIndex, endIndex) -> Array<Number>","insertText":"TrackAccelerationWindow(${1:startIndex_}, ${2:endIndex_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nค่าอัตราเร่งระหว่างค่าแรก (ครอบคลุม) จนถึงค่าสุดท้าย (จำเพาะ) ในกรอบรอบๆ การสังเกตการณ์ปัจจุบัน (0)\n\n**พารามิเตอร์**\n\n- **startIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เริ่มต้น ฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n- **endIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เมื่อสิ้นสุดกรอบเวลา ฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt;"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"trackcurrentacceleration","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackcurrentacceleration","description":"อัตราเร่งของการสังเกตการณ์ปัจจุบัน ที่วัดระหว่างการสังเกตการณ์ก่อนหน้า และการสังเกตการณ์ปัจจุบัน","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าตัวเลขของแต่ละฟีเจอร์ที่แทนค่าอัตราเร่งในรูปแบบเมตรต่อวินาทียกกำลังสอง ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 2 (p2)\n\n```arcade\nvar currentAcceleration = TrackCurrentAcceleration()\ncurrentAcceleration;\n// returns 0.0167\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าตัวเลขของแต่ละฟีเจอร์ที่แทนค่าอัตราเร่งในรูปแบบเมตรต่อวินาทียกกำลังสอง ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 4 (p4)\n\n```arcade\nvar currentAcceleration = TrackCurrentAcceleration()\ncurrentAcceleration;\n// returns -0.0014\n```\n\n","completion":{"label":"TrackCurrentAcceleration","detail":"TrackCurrentAcceleration() -> Number","insertText":"TrackCurrentAcceleration($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nอัตราเร่งของการสังเกตการณ์ปัจจุบัน ที่วัดระหว่างการสังเกตการณ์ก่อนหน้า และการสังเกตการณ์ปัจจุบัน\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"trackcurrentdistance","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackcurrentdistance","description":"ผลรวมของระยะทางที่เดินทางระหว่างการสังเกตการณ์ จากการสังเกตการณ์ครั้งแรกจนถึงปัจจุบัน","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะส่งคืนค่าสำหรับฟีเจอร์ปัจจุบันในการติดตาม ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 3 (p3) ผลการคำนวณคือ `80 + 60 = 140`\n\n```arcade\nvar currentDistance = TrackCurrentDistance()\ncurrentDistance;\n// returns 140\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะส่งคืนค่าสำหรับฟีเจอร์ปัจจุบันในการติดตาม การติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 6 (p6) ผลการคำนวณคือ `25 + 35 + 30 + 80 + 60 = 230`\n\n```arcade\nvar currentDistance = TrackCurrentDistance()\ncurrentDistance;\n// returns 230\n```\n\n","completion":{"label":"TrackCurrentDistance","detail":"TrackCurrentDistance() -> Number","insertText":"TrackCurrentDistance($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nผลรวมของระยะทางที่เดินทางระหว่างการสังเกตการณ์ จากการสังเกตการณ์ครั้งแรกจนถึงปัจจุบัน\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"trackcurrentspeed","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackcurrentspeed","description":"ความเร็วระหว่างการสังเกตการณ์ก่อนหน้า และการสังเกตการณ์ปัจจุบัน","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์ส่งคืนตัวเลขของแต่ละฟีเจอร์ที่แทนความเร็วซึ่งคำนวณในรูปแบบเมตรต่อวินาที ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 2 (p2) ผลการคำนวณคือ `60/60`\n\n```arcade\nvar currentSpeed = TrackCurrentSpeed()\ncurrentSpeed;\n// returns 1\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์ส่งคืนตัวเลขของแต่ละฟีเจอร์ที่แทนความเร็วซึ่งคำนวณในรูปแบบเมตรต่อวินาที ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 6 (p6) ผลการคำนวณคือ `25/60`\n\n```arcade\nvar currentSpeed = TrackCurrentSpeed()\ncurrentSpeed;\n// returns 0.4167\n```\n\n","completion":{"label":"TrackCurrentSpeed","detail":"TrackCurrentSpeed() -> Number","insertText":"TrackCurrentSpeed($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nความเร็วระหว่างการสังเกตการณ์ก่อนหน้า และการสังเกตการณ์ปัจจุบัน\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"trackcurrenttime","bundle":"track","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackcurrenttime","description":"คำนวณเวลาบนฟีเจอร์ปัจจุบันในการติดตาม","examples":"\n**ตัวอย่าง**\n\nส่งคืนเวลาของฟีเจอร์ปัจจุบันที่กำลังทำการประเมิน เช่น กำหนดการติดตามที่มีสามฟีเจอร์ ณ วันที่ 1 มกราคม 2012, 9 ธันวาคม 2012 และ 3 พฤษภาคม 2013 เวลาปัจจุบันจะถูกประเมินสำหรับแต่ละฟีเจอร์ ในตัวอย่างนี้ จะทำการประเมิน ณ ฟีเจอร์ตรงกลาง ได้แก่ 9 ธันวาคม 2012\n\n```arcade\nTrackCurrentTime();\n// returns December 9, 2012\n```\n\n","completion":{"label":"TrackCurrentTime","detail":"TrackCurrentTime() -> Date","insertText":"TrackCurrentTime($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nคำนวณเวลาบนฟีเจอร์ปัจจุบันในการติดตาม\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"trackdistanceat","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat","description":"ผลรวมของระยะทางที่เดินทางระหว่างการสังเกตการณ์ จากการสังเกตการณ์ครั้งแรกจนถึงปัจจุบัน บวกด้วยค่าที่กำหนด","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ เมื่อประเมินค่าที่ฟีเจอร์ 2 (p2) ด้วยค่าดัชนี 2 ผลการคำนวณคือ `30 + 80 + 60 = 170`\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์จะคืนค่าสำหรับแต่ละฟีเจอร์ในการติดตาม ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์เมื่อประเมินค่าที่ฟีเจอร์ 4 (p4) ด้วยค่าดัชนี 4 ผลการคำนวณคือ `25 + 35 + 30 + 80 + 60 = 230`\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n","completion":{"label":"TrackDistanceAt","detail":"TrackDistanceAt(index) -> Number","insertText":"TrackDistanceAt(${1:index_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nผลรวมของระยะทางที่เดินทางระหว่างการสังเกตการณ์ จากการสังเกตการณ์ครั้งแรกจนถึงปัจจุบัน บวกด้วยค่าที่กำหนด\n\n**พารามิเตอร์**\n\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์การติดตามที่จะคำนวณระยะทาง เช่น ค่า `2` จะคำนวณระยะทางจากฟีเจอร์แรก (ดัชนี `0`) ในการติดตาม ถึงฟีเจอร์ที่สาม (ดัชนี `2`) ในการติดตาม\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"trackdistancewindow","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistancewindow","description":"ระยะทางระหว่างค่าแรก (ครอบคลุม) จนถึงค่าสุดท้าย (จำเพาะ) ในกรอบที่เกี่ยวกับการสังเกตการณ์ปัจจุบัน (0)","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าอาร์เรย์ที่มีค่าระยะทางของแต่ละฟีเจอร์ในกรอบ ในตัวอย่างแรก เราได้ตรวจสอบผลลัพธ์ของฟีเจอร์ 3 (p3) เมื่อประเมินค่าด้วย `startIndex` ที่ `-1` และ `endIndex` ที่ `2`\n\n```arcade\nvar distanceWindow = TrackDistanceWindow(-1, 2)\ndistanceWindow;\n// returns [60, 140, 170]\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าอาร์เรย์ที่มีค่าระยะทางของแต่ละฟีเจอร์ในกรอบ ในตัวอย่างต่อไปนี้ เราได้ตรวจสอบผลลัพธ์ของฟีเจอร์ 5 (p5) เมื่อประเมินค่าด้วย `startIndex` ที่ `-1` และ `endIndex` ที่ `2`\n\n```arcade\nvar distanceWindow = TrackDistanceWindow(-1, 2)\ndistanceWindow;\n// returns [170, 205, 230]\n```\n\n","completion":{"label":"TrackDistanceWindow","detail":"TrackDistanceWindow(startIndex, endIndex) -> Array<Number>","insertText":"TrackDistanceWindow(${1:startIndex_}, ${2:endIndex_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระยะทางระหว่างค่าแรก (ครอบคลุม) จนถึงค่าสุดท้าย (จำเพาะ) ในกรอบที่เกี่ยวกับการสังเกตการณ์ปัจจุบัน (0)\n\n**พารามิเตอร์**\n\n- **startIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เริ่มต้น ฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n- **endIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เมื่อสิ้นสุดกรอบเวลา ฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt;"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"trackduration","bundle":"track","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackduration","description":"คำนวณระยะเวลาของการติดตาม นับจากฟีเจอร์เริ่มต้น ไปจนถึงฟีเจอร์ปัจจุบันในหน่วยมิลลิวินาทีจาก epoch","examples":"\n**ตัวอย่าง**\n\nส่งคืนระยะเวลาของการติดตามที่เริ่มต้นเมื่อวันที่ 1 มกราคม 2012 จนถึงฟีเจอร์ปัจจุบัน ณ วันที่ 3 พฤษภาคม 2013\n\n```arcade\nTrackDuration();\n// returns 42163200000\n```\n\n","completion":{"label":"TrackDuration","detail":"TrackDuration() -> Number","insertText":"TrackDuration($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nคำนวณระยะเวลาของการติดตาม นับจากฟีเจอร์เริ่มต้น ไปจนถึงฟีเจอร์ปัจจุบันในหน่วยมิลลิวินาทีจาก epoch\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"trackfieldwindow","bundle":"track","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackfieldwindow","description":"ส่งคืนอาร์เรย์ของค่าแอตทริบิวต์จาก `field` ที่กำหนดของช่วงเวลาที่ระบุ ฟังก์ชันกรอบเวลา จะช่วยให้คุณสามารถเลื่อนเวลาไปข้างหน้าหรือถอยหลังได้","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณจะมีฟิลด์ที่มีค่าเรียงตามลำดับเอาไว้ `[10, 20, 30, 40, 50]` เรขาคณิตของฟีเจอร์ได้แก่ `[{x: 1, y: 1},{x: 2, y: 2} ,{x: null, y: null},{x: 4, y: 4}, {x: 5, y: 5}]` นิพจน์จะถูกประเมินที่แต่ละฟีเจอร์ในการติดตาม ผลลัพธ์จะถูกส่งคืนโดยรวมฟีเจอร์เริ่มต้น และไม่รวมฟีเจอร์สิ้นสุด ตัวอย่างนี้จะถูกประเมินที่ฟีเจอร์ที่สอง (20) และส่งคืนอาร์เรย์ของค่าก่อนหน้า (-1, inclusive)\n\n```arcade\nvar window = TrackFieldWindow('MyField', -1,0)\nwindow;\n// returns [10]\n```\n\nการติดตามของคุณมีฟิลด์ที่ชื่อ `Speed` ซึ่งมีค่าเรียงลำดับเอาไว้ `[10, 20, 30, 40, 50]` เรขาคณิตของฟีเจอร์ได้แก่ `[{x: 1, y: 1},{x: 2, y: 2} ,{x: null, y: null},{x: 4, y: 4}, {x: 5, y: 5}]` นิพจน์จะถูกประเมินที่แต่ละฟีเจอร์ในการติดตาม สำหรับตัวอย่างนี้ เราจะตรวจสอบผลลัพธ์ขณะประเมินที่ฟีเจอร์ที่สาม (30) ผลลัพธ์จะถูกส่งคืนโดยรวมฟีเจอร์เริ่มต้น และไม่รวมฟีเจอร์สิ้นสุด \n\n```arcade\nvar window = TrackFieldWindow('Speed', -2,2)\nwindow;\n// returns [10,20,30,40]\n```\n\n","completion":{"label":"TrackFieldWindow","detail":"TrackFieldWindow(fieldName, startIndex, endIndex) -> Array<Number>","insertText":"TrackFieldWindow(${1:fieldName_}, ${2:startIndex_}, ${3:endIndex_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนอาร์เรย์ของค่าแอตทริบิวต์จาก `field` ที่กำหนดของช่วงเวลาที่ระบุ ฟังก์ชันกรอบเวลา จะช่วยให้คุณสามารถเลื่อนเวลาไปข้างหน้าหรือถอยหลังได้\n\n**พารามิเตอร์**\n\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะส่งคืนค่า\n- **startIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เริ่มต้น ฟีเจอร์ปัจจุบันคือดัชนี `0` ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน เช่น ตำแหน่ง `1` คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่าง `-1` คือค่าก่อนหน้าในอาร์เรย์\n- **endIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เมื่อสิ้นสุดกรอบเวลา ฟีเจอร์ปัจจุบันคือดัชนี `0` ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน เช่น ตำแหน่ง `1` คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่าง `-1` คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt;"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"trackgeometrywindow","bundle":"track","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackgeometrywindow","description":"ส่งคืนอาร์เรย์ของรูปทรงเรขาคณิตของดัชนีเวลาที่กำหนด ฟังก์ชันกรอบเวลา จะช่วยให้คุณสามารถเลื่อนเวลาไปข้างหน้าหรือถอยหลังได้","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณจะมีฟิลด์ที่มีค่าเรียงตามลำดับเอาไว้ `[10, 20, 30, 40, 50]` เรขาคณิตของฟีเจอร์ได้แก่ `[{x: 1, y: 1},{x: 2, y: 2} ,{x: null, y: null},{x: 4, y: 4}, {x: 5, y: 5}]` นิพจน์จะถูกประเมินที่แต่ละฟีเจอร์ในการติดตาม สำหรับตัวอย่างนี้ เราจะตรวจสอบผลลัพธ์ขณะประเมินที่ฟีเจอร์ที่สาม (30) ผลลัพธ์จะถูกส่งคืนโดยรวมฟีเจอร์เริ่มต้น และไม่รวมฟีเจอร์สิ้นสุด\n\n```arcade\nvar window = TrackGeometryWindow(-2,2)\nwindow;\n// returns [{x: 1, y: 1},{x: 2, y: 2} ,{x: null, y: null},{x: 4, y: 4}]\n```\n\n","completion":{"label":"TrackGeometryWindow","detail":"TrackGeometryWindow(startIndex, endIndex) -> Array<Geometry>","insertText":"TrackGeometryWindow(${1:startIndex_}, ${2:endIndex_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนอาร์เรย์ของรูปทรงเรขาคณิตของดัชนีเวลาที่กำหนด ฟังก์ชันกรอบเวลา จะช่วยให้คุณสามารถเลื่อนเวลาไปข้างหน้าหรือถอยหลังได้\n\n**พารามิเตอร์**\n\n- **startIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เริ่มต้น ฟีเจอร์ปัจจุบันคือดัชนี `0` ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน เช่น ตำแหน่ง `1` คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่าง `-1` คือค่าก่อนหน้าในอาร์เรย์\n- **endIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เมื่อสิ้นสุดกรอบเวลา ฟีเจอร์ปัจจุบันคือดัชนี `0` ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน เช่น ตำแหน่ง `1` คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่าง `-1` คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)&gt;"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"trackindex","bundle":"track","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackindex","description":"ส่งคืนดัชนีของฟีเจอร์ที่คำนวณ ฟีเจอร์จะถูกทำดัชนีเรียงตามลำดับเวลาภายในการติดตาม","examples":"\n**ตัวอย่าง**\n\nส่งคืนดัชนีของฟีเจอร์แรกในการติดตาม\n\n```arcade\nTrackIndex() // returns 0\n```\n\n","completion":{"label":"TrackIndex","detail":"TrackIndex() -> Number","insertText":"TrackIndex($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนดัชนีของฟีเจอร์ที่คำนวณ ฟีเจอร์จะถูกทำดัชนีเรียงตามลำดับเวลาภายในการติดตาม\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"trackspeedat","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackspeedat","description":"ความเร็วในการสังเกตการณ์แบบสัมพันธ์กับการสังเกตการณ์ปัจจุบัน เช่น ที่ค่า 2 จะเป็นความเร็วในการสังเกตการณ์สองการสังเกตการณ์หลังจากปัจจุบัน","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์ส่งคืนตัวเลขของแต่ละฟีเจอร์ที่แทนความเร็วซึ่งคำนวณในรูปแบบเมตรต่อวินาที ในตัวอย่างแรก เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 1 (p1) ด้วย `value` ที่ 2 ผลการคำนวณคือ `80/60`\n\n```arcade\nvar speedAt = TrackSpeedAt(2)\nspeedAt;\n// returns 1.33\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์ส่งคืนตัวเลขของแต่ละฟีเจอร์ที่แทนความเร็วซึ่งคำนวณในรูปแบบเมตรต่อวินาที ในตัวอย่างต่อไปนี้ เราจะตรวจสอบผลลัพธ์ของฟีเจอร์ 3 (p3) ด้วย `value` ที่ -1 ผลการคำนวณคือ `60/60`\n\n```arcade\nvar speedAt = TrackSpeedAt(2)\nspeedAt;\n// returns 1\n```\n\n","completion":{"label":"TrackSpeedAt","detail":"TrackSpeedAt(value) -> Number","insertText":"TrackSpeedAt(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nความเร็วในการสังเกตการณ์แบบสัมพันธ์กับการสังเกตการณ์ปัจจุบัน เช่น ที่ค่า 2 จะเป็นความเร็วในการสังเกตการณ์สองการสังเกตการณ์หลังจากปัจจุบัน\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนฟีเจอร์ก่อนหรือหลังการสังเกตการณ์ปัจจุบัน ฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"trackspeedwindow","bundle":"track","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackspeedwindow","description":"ค่าความเร็วระหว่างค่าแรก (ครอบคลุม) จนถึงค่าสุดท้าย (จำเพาะ) ในกรอบรอบๆ การสังเกตการณ์ปัจจุบัน (0)","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าอาร์เรย์ที่มีค่าความเร็วของแต่ละฟีเจอร์ในกรอบที่กำหนด ความเร็วจะถูกคำนวณในรูปแบบเมตรต่อวินาที ในตัวอย่างนี้ เราได้ตรวจสอบผลลัพธ์ของฟีเจอร์ 3 (p3) เมื่อประเมินค่าด้วย `startIndex` ที่ `-1` และ `endIndex` ที่ `2`\n\n```arcade\nvar speedWindow = TrackSpeedWindow(-1, 2)\nspeedWindow // returns [1, 1.3, 0.5]\n```\n\nการติดตามของคุณมีหกฟีเจอร์ ตามที่มองเห็นจากด้านบน นิพจน์คืนค่าอาร์เรย์ที่มีค่าความเร็วของแต่ละฟีเจอร์ในกรอบที่กำหนด ความเร็วจะถูกคำนวณในรูปแบบเมตรต่อวินาที ในตัวอย่างนี้ เราได้ตรวจสอบผลลัพธ์ของฟีเจอร์ 3 (p3) เมื่อประเมินค่าด้วย `startIndex` ที่ `1` และ `endIndex` ที่ `3`\n\n```arcade\nvar speedWindow = TrackSpeedWindow(1,3)\nspeedWindow // returns [0.5, 0.583, 0.4167]\n```\n\n","completion":{"label":"TrackSpeedWindow","detail":"TrackSpeedWindow(startIndex, endIndex) -> Array<Number>","insertText":"TrackSpeedWindow(${1:startIndex_}, ${2:endIndex_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nค่าความเร็วระหว่างค่าแรก (ครอบคลุม) จนถึงค่าสุดท้าย (จำเพาะ) ในกรอบรอบๆ การสังเกตการณ์ปัจจุบัน (0)\n\n**พารามิเตอร์**\n\n- **startIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เริ่มต้น ฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n- **endIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เมื่อสิ้นสุดกรอบเวลา ฟีเจอร์ปัจจุบันคือดัชนี 0 ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน ตัวอย่างเช่น ตำแหน่งที่ 1 คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่างเช่น -1 คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt;"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"trackstarttime","bundle":"track","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackstarttime","description":"คำนวณเวลาเริ่มต้นของการติดตาม","examples":"\n**ตัวอย่าง**\n\nส่งคืนเวลาเริ่มต้นของการติดตามที่เริ่มต้นจาก 1 มกราคม 2012 จนถึง 3 พฤษภาคม 2013\n\n```arcade\nTrackStartTime() // returns January 1, 2012\n```\n\n","completion":{"label":"TrackStartTime","detail":"TrackStartTime() -> Date","insertText":"TrackStartTime($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nคำนวณเวลาเริ่มต้นของการติดตาม\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"trackwindow","bundle":"track","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/track_functions/#trackwindow","description":"ส่งคืนอาร์เรย์ของฟีเจอร์ของดัชนีเวลาที่กำหนด ฟังก์ชันนี้จะช่วยให้คุณสามารถเลื่อนเวลาไปข้างหน้าหรือถอยหลังได้","examples":"\n**ตัวอย่าง**\n\nการติดตามของคุณจะมีฟิลด์ที่มีค่าเรียงตามลำดับเอาไว้ `[10, 20, 30, 40, 50]` เรขาคณิตของฟีเจอร์ได้แก่ `[{x: 1, y: 1},{x: 2, y: 2} ,{x: null, y: null},{x: 4, y: 4}, {x: 5, y: 5}]` นิพจน์จะถูกประเมินที่แต่ละฟีเจอร์ในการติดตาม ผลลัพธ์จะถูกส่งคืนโดยรวมฟีเจอร์เริ่มต้น และไม่รวมฟีเจอร์สิ้นสุด ตัวอย่างนี้จะถูกประเมินที่ฟีเจอร์ที่สอง (20) และส่งคืนอาร์เรย์ของค่าเดี่ยว -- ฟีเจอร์ก่อนหน้า\n\n```arcade\nvar window = TrackWindow(-1,0)\nwindow;\n// returns [{'geometry': {x: 1, y: 1}}, {'attributes': {'MyField' : 10, 'trackName':'ExampleTrack1'}}]\n```\n\nการติดตามของคุณจะมีฟิลด์ที่มีค่าเรียงตามลำดับเอาไว้ `[10, 20, 30, 40, 50]` เรขาคณิตของฟีเจอร์ได้แก่ `[{x: 1, y: 1},{x: 2, y: 2} ,{x: null, y: null},{x: 4, y: 4}, {x: 5, y: 5}]` นิพจน์จะถูกประเมินที่แต่ละฟีเจอร์ในการติดตาม สำหรับตัวอย่างนี้ เราจะตรวจสอบผลลัพธ์ขณะประเมินที่ฟีเจอร์ที่สาม (30) ผลลัพธ์จะถูกส่งคืนโดยรวมฟีเจอร์เริ่มต้น และไม่รวมฟีเจอร์สิ้นสุด\n\n```arcade\nvar window = TrackWindow(-2,2)\nwindow;\n/* returns\n[{\n  geometry: [{\n    x: 1,\n    y: 1\n  }, {\n    x: 2,\n    y: 2\n  }, {\n    x: null,\n     y: null\n  }, {\n    x: 4,\n    y: 4\n  }]\n}, {\n  attributes: [{\n    MyField: 10,\n    trackName: 'ExampleTrack1'\n  }, {\n    MyField: 20,\n    trackName: 'ExampleTrack1'\n  }, {\n    MyField: 30,\n    trackName: 'ExampleTrack1'\n  }, {\n    MyField: 40,\n    trackName: 'ExampleTrack1'\n  }]\n}]\n```\n\n","completion":{"label":"TrackWindow","detail":"TrackWindow(startIndex, endIndex) -> Array<Feature>","insertText":"TrackWindow(${1:startIndex_}, ${2:endIndex_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนอาร์เรย์ของฟีเจอร์ของดัชนีเวลาที่กำหนด ฟังก์ชันนี้จะช่วยให้คุณสามารถเลื่อนเวลาไปข้างหน้าหรือถอยหลังได้\n\n**พารามิเตอร์**\n\n- **startIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เริ่มต้น ฟีเจอร์ปัจจุบันคือดัชนี `0` ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน เช่น ตำแหน่ง `1` คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่าง `-1` คือค่าก่อนหน้าในอาร์เรย์\n- **endIndex**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของฟีเจอร์เมื่อสิ้นสุดกรอบเวลา ฟีเจอร์ปัจจุบันคือดัชนี `0` ค่าบวกจะแทนฟีเจอร์ที่เกิดขึ้นในอนาคต หลังจากค่าปัจจุบัน เช่น ตำแหน่ง `1` คือค่าถัดไปในอาร์เรย์ เลขติดลบจะแทนฟีเจอร์ที่เกิดขึ้นในอดีต ก่อนฟีเจอร์ปัจจุบัน ตัวอย่าง `-1` คือค่าก่อนหน้าในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Feature](https://developers.arcgis.com/arcade/guide/types/#feature)&gt;"}},"parametersInfo":{"min":2,"max":2}}]},{"id":"text_functions","title":"ฟังก์ชันข้อความ","items":[{"type":"function","name":"concatenate","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#concatenate","description":"รวมค่าเข้าด้วยกัน แล้วส่งคืนค่าข้อความ","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'red/blue/green'\n\n```arcade\nConcatenate(['red', 'blue', 'green'], '/')\n```\n\n","completion":{"label":"Concatenate","detail":"Concatenate(values?, separator?, format?) -> Text","insertText":"Concatenate($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nรวมค่าเข้าด้วยกัน แล้วส่งคืนค่าข้อความ\n\n**พารามิเตอร์**\n\n- **values** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของค่าข้อความที่จะรวม\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`: ชั่วโมงแบบพลเรือน ไม่แพ็ด (1 - 12)  \n  - `hh`: ชั่วโมงแบบพลเรือน แพ็ด (01 - 12)  \n  - `H`: ชั่วโมงแบบทหาร ไม่แพ็ด (0 - 23)  \n  - `HH`: ชั่วโมงแบบทหาร แพ็ด (00 - 23)  \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)"}},"parametersInfo":{"min":0,"max":3}},{"type":"function","name":"count","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#count","description":"ส่งคืนจำนวนอักขระในค่าข้อความ","examples":"\n**ตัวอย่าง**\n\nส่งคืน 13\n\n```arcade\nCount('Graham County')\n```\n\n","completion":{"label":"Count","detail":"Count(value) -> Number","insertText":"Count(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนอักขระในค่าข้อความ\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"find","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#find","description":"ค้นหาลำดับของอักขระภายในค่าข้อความ ไม่รองรับอักขระตัวแทน ค่าที่แจ้งกลับเป็น '-1' หมายถึงไม่พบผลลัพธ์","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 6\n\n```arcade\nFind('380', 'Esri, 380 New York Street', 0)\n```\n\n","completion":{"label":"Find","detail":"Find(searchText, targetText, startPosition?) -> Number","insertText":"Find(${1:searchText_}, ${2:targetText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nค้นหาลำดับของอักขระภายในค่าข้อความ ไม่รองรับอักขระตัวแทน ค่าที่แจ้งกลับเป็น '-1' หมายถึงไม่พบผลลัพธ์\n\n**พารามิเตอร์**\n\n- **searchText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะค้นหา\n- **targetText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะค้นหา\n- **startPosition** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีฐานศูนย์ของอักขระในข้อความที่จะค้นหาจาก\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"fromcharcode","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#fromcharcode","description":"ส่งกลับค่าข้อความที่สร้างจากลำดับของตัวอักขระโค้ด UTF-16","examples":"\n**ตัวอย่าง**\n\nตัวอย่างต่อไปนี้จะคืนค่า 'XYZ'\n\n```arcade\nFromCharCode(88,89,90)\n// returns 'XYZ'\n```\n\nตัวอย่างต่อไปนี้จะส่งคืน '🌉'\n\n```arcade\nFromCharCode(55356, 57097)\n// returns '🌉'\n```\n\n","completion":{"label":"FromCharCode","detail":"FromCharCode(charCode1, [charCode2, ..., charCodeN]?) -> Text","insertText":"FromCharCode(${1:charCode1_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งกลับค่าข้อความที่สร้างจากลำดับของตัวอักขระโค้ด UTF-16\n\n**พารามิเตอร์**\n\n- **charCode1**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขที่แสดงหน่วยรหัส UTF-16 แต่ละหน่วยมีช่วง 0-65535\n- **[charCode2, ..., charCodeN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ลำดับของตัวเลขที่แสดงหน่วยรหัส UTF-16 แต่ละหน่วยมีช่วง 0-65535\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":-1}},{"type":"function","name":"fromcodepoint","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#fromcodepoint","description":"ส่งกลับค่าข้อความที่สร้างจากลำดับของจุดโค้ด UTF-32","examples":"\n**ตัวอย่าง**\n\nตัวอย่างต่อไปนี้จะคืนค่า 'XYZ'\n\n```arcade\nFromCodePoint(88,89,90)\n// returns 'XYZ'\n```\n\nตัวอย่างต่อไปนี้จะส่งคืน '🌉'\n\n```arcade\nFromCodePoint(127753)\n// returns '🌉'\n```\n\n","completion":{"label":"FromCodePoint","detail":"FromCodePoint(codePoint1, [codePoint2, ..., codePoint1N]?) -> Text","insertText":"FromCodePoint(${1:codePoint1_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งกลับค่าข้อความที่สร้างจากลำดับของจุดโค้ด UTF-32\n\n**พารามิเตอร์**\n\n- **codePoint1**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จุดรหัส\n- **[codePoint2, ..., codePoint1N]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รายการจุดรหัส\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":-1}},{"type":"function","name":"guid","bundle":"core","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#guid","description":"ส่งคืน GUID แบบสุ่มในรูปแบบค่าข้อความ","examples":"\n**ตัวอย่าง**\n\nส่งคืนค่าที่คล้ายกับ `{db894515-ed21-4df1-af67-36232256f59a}`\n\n```arcade\nGuid()\n```\n\nส่งคืนค่าที่คล้ายกับ `d00cf4dffb184caeb8ed105b2228c247`\n\n```arcade\nGuid('digits')\n```\n\n","completion":{"label":"Guid","detail":"Guid(guidFormat?) -> Text","insertText":"Guid($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืน GUID แบบสุ่มในรูปแบบค่าข้อความ\n\n**พารามิเตอร์**\n\n- **guidFormat** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - รูปแบบชื่อสำหรับ GUID ค่าเริ่มต้นคือ `digits-hyphen-braces`  \nค่าที่เป็นไปได้: `digits` \\| `digits-hyphen` \\| `digits-hyphen-braces` \\| `digits-hyphen-parentheses`\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":0,"max":1}},{"type":"function","name":"left","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#left","description":"ส่งคืนจำนวนอักขระที่กำหนดจากจุดเริ่มต้นของค่าข้อความ","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'the'\n\n```arcade\nLeft('the quick brown fox', 3)\n```\n\n","completion":{"label":"Left","detail":"Left(value, charCount) -> Text","insertText":"Left(${1:value_}, ${2:charCount_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนอักขระที่กำหนดจากจุดเริ่มต้นของค่าข้อความ\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าที่จะรับอักขระจาก\n- **charCount**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนอักขระที่จะรับจากจุดเริ่มต้นของข้อความ\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"lower","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#lower","description":"เปลี่ยนค่าข้อความเป็นตัวพิมพ์เล็ก","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'hello'\n\n```arcade\nLower('HELLO')\n```\n\n","completion":{"label":"Lower","detail":"Lower(inputText) -> Text","insertText":"Lower(${1:inputText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเปลี่ยนค่าข้อความเป็นตัวพิมพ์เล็ก\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะเปลี่ยนเป็นตัวพิมพ์เล็ก\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"mid","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#mid","description":"รับจำนวนอักขระจากจุดกึ่งกลางของค่าข้อความ","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'quick'\n\n```arcade\nMid('the quick brown fox', 4, 5)\n```\n\n","completion":{"label":"Mid","detail":"Mid(value, startPosition, charCount?) -> Text","insertText":"Mid(${1:value_}, ${2:startPosition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nรับจำนวนอักขระจากจุดกึ่งกลางของค่าข้อความ\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าที่จะรับอักขระจาก หากค่าไม่ใช่ประเภทข้อความ ค่าจะถูกแปลงเป็นข้อความก่อน\n- **startPosition**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตำแหน่งเริ่มต้นที่จะรับข้อความ 0 คือตำแหน่งแรก\n- **charCount** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนอักขระที่จะแยก หากเว้นไว้ จะแยกอักขระจนถึงส่วนท้ายของข้อความ\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"proper","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#proper","description":"แปลงค่าข้อความเป็นตัวพิมพ์ใหญ่ทุกคำในชื่อเรื่อง ตามค่าเริ่มต้น อักขระแรกของทุกคำจะเป็นตัวพิมพ์ใหญ่ ตัวเลือก `firstword` จะใช้ตัวพิมพ์ใหญ่เฉพาะอักขระแรกของคำแรก","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'The Quick Brown Fox'\n\n```arcade\nProper('the quick brown fox', 'everyword')\n```\n\n","completion":{"label":"Proper","detail":"Proper(inputText, applyToText?) -> Text","insertText":"Proper(${1:inputText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงค่าข้อความเป็นตัวพิมพ์ใหญ่ทุกคำในชื่อเรื่อง ตามค่าเริ่มต้น อักขระแรกของทุกคำจะเป็นตัวพิมพ์ใหญ่ ตัวเลือก `firstword` จะใช้ตัวพิมพ์ใหญ่เฉพาะอักขระแรกของคำแรก\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะแปลงเป็นตัวพิมพ์ใหญ่ทุกคำในชื่อเรื่อง\n- **applyToText** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่กำหนดประเภทของการใช้ตัวพิมพ์ใหญ่ที่จะดำเนินการ ตามค่าเริ่มต้น จะใช้ตัวพิมพ์ใหญ่กับอักขระแรกของทุกคำ พารามิเตอร์นี้จะยอมรับหนึ่งในสองค่า: `everyword` หรือ `firstword`\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"replace","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#replace","description":"แทนที่อักขระภายในค่าข้อความ ค่าเริ่มต้นคือการแทนที่ทุกเหตุการณ์","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'the quick red fox'\n\n```arcade\nReplace('the quick brown fox', 'brown', 'red')\n```\n\n","completion":{"label":"Replace","detail":"Replace(value, searchText, replacementText, allOccurrences?) -> Text","insertText":"Replace(${1:value_}, ${2:searchText_}, ${3:replacementText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแทนที่อักขระภายในค่าข้อความ ค่าเริ่มต้นคือการแทนที่ทุกเหตุการณ์\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะทำการแทนที่\n- **searchText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะค้นหา\n- **replacementText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความแทนที่\n- **allOccurrences** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าควรแทนที่ `searchText` ที่พบทั้งหมดภายในข้อความ ค่าเริ่มต้นคือ `true`\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":3,"max":4}},{"type":"function","name":"right","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#right","description":"ส่งคืนจำนวนอักขระที่กำหนดจากจุดสิ้นสุดของค่าข้อความ","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'fox'\n\n```arcade\nRight('the quick brown fox', 3)\n```\n\n","completion":{"label":"Right","detail":"Right(value, charCount) -> Text","insertText":"Right(${1:value_}, ${2:charCount_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนอักขระที่กำหนดจากจุดสิ้นสุดของค่าข้อความ\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะรับอักขระ\n- **charCount**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนอักขระที่จะรับจากจุดสิ้นสุดของค่าข้อความ\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"split","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#split","description":"แบ่งค่าข้อความเป็นอาร์เรย์","examples":"\n**ตัวอย่าง**\n\nส่งคืน '[red,green]'\n\n```arcade\nSplit('red,green,blue,orange', ',', 2)\n```\n\nแบ่งวรรคที่เคาะว่างแต่ละจุดได้ไม่จำกัดจำนวนครั้ง แจ้งกลับอะเรโลกในย่อหน้าดังกล่าว\n\n```arcade\nSplit(paragraph, ' ', -1, true)\n```\n\n","completion":{"label":"Split","detail":"Split(inputText, separatorText, limit?, removeEmpty?) -> Array<Text>","insertText":"Split(${1:inputText_}, ${2:separatorText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแบ่งค่าข้อความเป็นอาร์เรย์\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่จะแบ่ง\n- **separatorText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ตัวคั่นที่ใช้ในการแบ่งข้อความ\n- **limit** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - เลขจำนวนเต็มที่ใช้ระบุการแบ่ง ค่าเริ่มต้นคือ '-1' ซึ่งใช้ระบุจำนวนการแบ่งที่ไม่จำกัด\n- **removeEmpty** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าจะลบค่าว่างออกหรือไม่ ตามค่าเริ่มต้น ส่วนนี้จะเป็น `false`\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt;"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"standardizefilename","bundle":"core","sinceVersion":"1.29","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#standardizefilename","description":"ส่งคืนชื่อไฟล์ที่จัดรูปแบบตามมาตรฐาน โดยอิงตามกฎการแทนอักขระต่อไปนี้ อักขระค่าฟิลด์จะถูกส่งคืนในรูปแบบมาตรฐาน ตามที่กำหนดไว้ด้านล่าง  \n- ฟอร์เวิร์ดสแลช (`/`) &rarr; ไฮเฟน (`-`)  \n- แบ็คสแลช (`\\`) &rarr; ไฮเฟน (`-`)  \n- ขีดคั่นหรือเส้นแนวตั้ง (`|`) &rarr; ไฮเฟน (`-`)  \n- ดอกจัน (`*`) &rarr; เส้นใต้อักขระ (`_`)  \n- น้อยกว่า (`<`) &rarr; เส้นใต้อักขระ (`_`)  \n- มากกว่า (`>`) &rarr; เส้นใต้อักขระ (`_`)  \n- เครื่องหมายคำถาม (`?`) &rarr; เส้นใต้อักขระ (`_`)  \n- โคลอน (`:`) &rarr; จุลภาคตามด้วยเว้นวรรค (`, `)","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar rawFilename = \"USGS:Green River, Utah\";\nreturn StandardizeFilename(rawFilename);\n// Returns a value of \"USGS, Green River, Utah\".\n```\n\n","completion":{"label":"StandardizeFilename","detail":"StandardizeFilename(inputFilename) -> Text","insertText":"StandardizeFilename(${1:inputFilename_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.29](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชื่อไฟล์ที่จัดรูปแบบตามมาตรฐาน โดยอิงตามกฎการแทนอักขระต่อไปนี้ อักขระค่าฟิลด์จะถูกส่งคืนในรูปแบบมาตรฐาน ตามที่กำหนดไว้ด้านล่าง  \n- ฟอร์เวิร์ดสแลช (`/`) &rarr; ไฮเฟน (`-`)  \n- แบ็คสแลช (`\\`) &rarr; ไฮเฟน (`-`)  \n- ขีดคั่นหรือเส้นแนวตั้ง (`|`) &rarr; ไฮเฟน (`-`)  \n- ดอกจัน (`*`) &rarr; เส้นใต้อักขระ (`_`)  \n- น้อยกว่า (`<`) &rarr; เส้นใต้อักขระ (`_`)  \n- มากกว่า (`>`) &rarr; เส้นใต้อักขระ (`_`)  \n- เครื่องหมายคำถาม (`?`) &rarr; เส้นใต้อักขระ (`_`)  \n- โคลอน (`:`) &rarr; จุลภาคตามด้วยเว้นวรรค (`, `)\n\n**พารามิเตอร์**\n\n- **inputFilename**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อไฟล์อินพุทที่จะปรับตามมาตรฐาน\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"standardizeguid","bundle":"core","sinceVersion":"1.20","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#standardizeguid","description":"ส่งคืนสตริง GUID ที่จัดรูปแบบตามมาตรฐาน","examples":"\n**ตัวอย่าง**\n\nแปลง GUID เป็นรูปแบบ `digits`\n\n```arcade\nStandardizeGuid('{4e6f776d-c298-4b4b-86a4-57103b4d0f4a}', 'digits')\n// Returns a value of 4e6f776dc2984b4b86a457103b4d0f4a\n```\n\nแปลง GUID เป็นรูปแบบ `digits-hyphen`\n\n```arcade\nStandardizeGuid('{4e6f776d-c298-4b4b-86a4-57103b4d0f4a}', 'digits-hyphen')\n// Returns a value of 4e6f776d-c298-4b4b-86a4-57103b4d0f4a\n```\n\n","completion":{"label":"StandardizeGuid","detail":"StandardizeGuid(inputGuid, format) -> Text","insertText":"StandardizeGuid(${1:inputGuid_}, ${2:format_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนสตริง GUID ที่จัดรูปแบบตามมาตรฐาน\n\n**พารามิเตอร์**\n\n- **inputGuid**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - GUID อินพุทในรูปแบบใดก็ได้ที่จะปรับตามมาตรฐาน\n- **format**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - รูปแบบที่ระบุชื่อสำหรับ GUID  \nค่าที่เป็นไปได้: `digits` \\| `digits-hyphen` \\| `digits-hyphen-braces` \\| `digits-hyphen-parentheses`\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"text","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#text","description":"แปลงค่าใดๆ เป็นค่าข้อความ สามารถระบุพารามิเตอร์ `format` ตัวเลือกเสริม เพื่ออนุญาตการจัดรูปแบบอินพุทข้อมูลวันที่และตัวเลขได้ ส่งคืน `null` เมื่อไม่สามารถหาการแปลงข้อความที่เทียบเท่ากันได้","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","completion":{"label":"Text","detail":"Text(value, format?) -> Text","insertText":"Text(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงค่าใดๆ เป็นค่าข้อความ สามารถระบุพารามิเตอร์ `format` ตัวเลือกเสริม เพื่ออนุญาตการจัดรูปแบบอินพุทข้อมูลวันที่และตัวเลขได้ ส่งคืน `null` เมื่อไม่สามารถหาการแปลงข้อความที่เทียบเท่ากันได้\n\n**พารามิเตอร์**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่า (เช่น วันที่ ตัวเลข หรือประเภทข้อมูลอื่น) ที่จะแปลงเป็นข้อความ เริ่มตั้งแต่เวอร์ชัน 1.25, อินพุทรูปหลายเหลี่ยมหรือเส้นหลายรูปแบบ อาจส่งคืน JSON ที่มีวัตถุเส้นโค้ง ขณะดำเนินการใน ArcGIS Pro และ ArcGIS Maps SDKs for Native Apps\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - อักขระพิเศษสำหรับการจัดรูปแบบวันที่หรือตัวเลข  \nค่าที่เป็นไปได้:  \n  - `0`: ตัวเลข  \n  - `#`: ตัวเลข ตัดศูนย์ที่นำหน้าและต่อท้ายออก  \n  - `D`: วันของเดือนแบบไม่แพ็ด (1 - 31)  \n  - `DD`: วันของเดือน แบบแพ็ด (01 - 31)  \n  - `DDD`: วันของปีแบบเลขลำดับ (1 - 365)  \n  - `d`: วันของสัปดาห์ (1 - 7)  \n  - `ddd`: วันของสัปดาห์แบบตัวย่อ (เช่น Mon)  \n  - `dddd`: วันของสัปดาห์แบบเต็ม (เช่น Monday)  \n  - `M`: ตัวเลขเดือน (1 - 12)  \n  - `MM`: ตัวเลขเดือน, แพ็ด (01 - 12)  \n  - `MMM`: ชื่อเดือนแบบตัวย่อ (เช่น Jan)  \n  - `MMMM`: ชื่อเดือนแบบเต็ม (เช่น January)  \n  - `Y`: ปีแบบเต็ม  \n  - `YY`: ปีแบบเลขสองตัว  \n  - `h`: ชั่วโมงแบบพลเรือน ไม่แพ็ด (1 - 12)  \n  - `hh`: ชั่วโมงแบบพลเรือน แพ็ด (01 - 12)  \n  - `H`: ชั่วโมงแบบทหาร ไม่แพ็ด (0 - 23)  \n  - `HH`: ชั่วโมงแบบทหาร แพ็ด (00 - 23)  \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)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"tocharcode","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#tocharcode","description":"ส่งกลับตัวเลขระหว่าง 0 ถึง 65535 ซึ่งแสดงถึงหน่วยรหัส UTF-16 ที่ดัชนีที่กำหนด ครึ่งหนึ่งของคู่ตัวแทนที่ไม่ถูกต้องจะถูกลบออกโดยอัตโนมัติ","examples":"\n**ตัวอย่าง**\n\nตัวอย่างต่อไปนี้จะคืนค่า 88 ซึ่งเป็นค่า Unicode สำหรับ X\n\n```arcade\nToCharCode('XYZ')\n// returns 88\n```\n\nตัวอย่างต่อไปนี้จะคืนค่า 89 ซึ่งเป็นค่า Unicode สำหรับ Y\n\n```arcade\nToCharCode('XYZ', 1)\n// returns 89\n```\n\nตัวอย่างต่อไปนี้จะคืนค่า 65535\n\n```arcade\nToCharCode('\\uFFFF\\uFFFE')\n// returns 65535\n```\n\nตัวอย่างต่อไปนี้จะคืนค่า 65535\n\n```arcade\nToCharCode('🌉')\n// returns 55356\n```\n\nตัวอย่างต่อไปนี้จะคืนค่า 57097\n\n```arcade\nToCharCode('🌉', 1)\n// returns 57097\n```\n\n","completion":{"label":"ToCharCode","detail":"ToCharCode(inputText, index?) -> Number","insertText":"ToCharCode(${1:inputText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งกลับตัวเลขระหว่าง 0 ถึง 65535 ซึ่งแสดงถึงหน่วยรหัส UTF-16 ที่ดัชนีที่กำหนด ครึ่งหนึ่งของคู่ตัวแทนที่ไม่ถูกต้องจะถูกลบออกโดยอัตโนมัติ\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะรับค่าหน่วยรหัส UTF-16\n- **index** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนเต็มที่มีค่าอย่างน้อย 0 และไม่เกินจำนวนอักขระของ \"inputText\" โดยค่าเริ่มต้น ค่านี้คือ 0\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"tocodepoint","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#tocodepoint","description":"ส่งกลับตัวเลขที่ไม่ใช่ค่าลบซึ่งแทนค่าจุดโค้ด UTF-32 ของข้อความที่ป้อน หากทำดัชนีในครึ่งแรกของคู่ตัวแทน จะมีการส่งคืนจุดโค้ดทั้งหมด หากทำดัชนีเป็นครึ่งหลังของคู่ ฟังก์ชันนี้จะคืนค่าของครึ่งหลัง ถ้าโค้ดขนาดใหญ่ไม่ใช่อักขระที่ถูกต้อง ฟังก์ชันจะส่งกลับเฉพาะค่าของค่าครึ่งหนึ่งของดัชนี","examples":"\n**ตัวอย่าง**\n\nตัวอย่างต่อไปนี้จะคืนค่า 88 ซึ่งเป็นค่า Unicode สำหรับ X\n\n```arcade\nToCodePoint('XYZ')\n// returns 88\n```\n\nตัวอย่างต่อไปนี้จะคืนค่า 89 ซึ่งเป็นค่า Unicode สำหรับ Y\n\n```arcade\nToCodePoint('XYZ', 1)\n// returns 89\n```\n\nตัวอย่างต่อไปนี้จะคืนค่า 127753\n\n```arcade\nToCodePoint('🌉')\n// returns 127753\n```\n\nตัวอย่างต่อไปนี้จะคืนค่า 57097\n\n```arcade\nToCodePoint('🌉', 1)\n// returns 57097\n```\n\n","completion":{"label":"ToCodePoint","detail":"ToCodePoint(inputText, position?) -> Number","insertText":"ToCodePoint(${1:inputText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งกลับตัวเลขที่ไม่ใช่ค่าลบซึ่งแทนค่าจุดโค้ด UTF-32 ของข้อความที่ป้อน หากทำดัชนีในครึ่งแรกของคู่ตัวแทน จะมีการส่งคืนจุดโค้ดทั้งหมด หากทำดัชนีเป็นครึ่งหลังของคู่ ฟังก์ชันนี้จะคืนค่าของครึ่งหลัง ถ้าโค้ดขนาดใหญ่ไม่ใช่อักขระที่ถูกต้อง ฟังก์ชันจะส่งกลับเฉพาะค่าของค่าครึ่งหนึ่งของดัชนี\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะรับค่าจุดโค้ด UTF-32\n- **position** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตำแหน่งของอักขระใน \"inputText\" ที่จะส่งคืนค่าจุดโค้ด โดยค่าเริ่มต้น ค่านี้คือ 0\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"tohex","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#tohex","description":"แปลงจำนวนเต็มเป็นการแสดงค่าแบบเลขฐานสิบหก","examples":"\n**ตัวอย่าง**\n\nส่งคืน `\"64\"`\n\n```arcade\nToHex(100)\n```\n\nส่งคืนการแสดงค่าแบบเลขฐานสิบหก สำหรับสี royal blue, `\"#4169E1\"`, จากค่า RGB\n\n```arcade\nvar r = ToHex(65); // returns \"41\"\nvar g = ToHex(105); // returns \"69\"\nvar b = ToHex(225); // returns \"E1\"\nConcatenate(\"#\",r,g,b)\n// Returns \"#4169E1\"\n```\n\n","completion":{"label":"ToHex","detail":"ToHex(value) -> Text","insertText":"ToHex(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงจำนวนเต็มเป็นการแสดงค่าแบบเลขฐานสิบหก\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าที่จะแปลงเป็นค่าเลขฐานสิบหก\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"trim","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#trim","description":"ลบเว้นวรรคออกจากจุดเริ่มต้นหรือจุดสิ้นสุดของค่าข้อความอินพุท","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'hello world'\n\n```arcade\nTrim('   hello world')\n```\n\n","completion":{"label":"Trim","detail":"Trim(inputText) -> Text","insertText":"Trim(${1:inputText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nลบเว้นวรรคออกจากจุดเริ่มต้นหรือจุดสิ้นสุดของค่าข้อความอินพุท\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความที่จะตัด\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"upper","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#upper","description":"เปลี่ยนข้อความเป็นตัวพิมพ์ใหญ่","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'HELLO'\n\n```arcade\nUpper('Hello')\n```\n\n","completion":{"label":"Upper","detail":"Upper(inputText) -> Text","insertText":"Upper(${1:inputText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเปลี่ยนข้อความเป็นตัวพิมพ์ใหญ่\n\n**พารามิเตอร์**\n\n- **inputText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าข้อความที่จะเปลี่ยนเป็นตัวพิมพ์ใหญ่\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"urlencode","bundle":"core","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/text_functions/#urlencode","description":"เข้ารหัส URL โดยการแทนที่แต่ละอินสแตนซ์ของบางอักขระด้วยหนึ่ง สอง สาม หรือสี่ลำดับหลีก ซึ่งจะใช้แทนการเข้ารหัสอักขระนั้นๆ ในแบบ UTF-8","examples":"\n**ตัวอย่าง**\n\nเข้ารหัส URL ที่กำหนด\n\n```arcade\nvar urlsource ='arcgis-survey123://?';\nvar params = {\n  itemID:'36ff9e8c13e042a58cfce4ad87f55d19',\n  center: '43.567,-117.380'\n};\nreturn urlsource  + UrlEncode(params);\n//arcgis-survey123://?center=43.567%2C-117.380&itemID=36ff9e8c13e042a58cfce4ad87f55d19\n```\n\n","completion":{"label":"UrlEncode","detail":"UrlEncode(textOrDictionary) -> Text","insertText":"UrlEncode(${1:textOrDictionary_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเข้ารหัส URL โดยการแทนที่แต่ละอินสแตนซ์ของบางอักขระด้วยหนึ่ง สอง สาม หรือสี่ลำดับหลีก ซึ่งจะใช้แทนการเข้ารหัสอักขระนั้นๆ ในแบบ UTF-8\n\n**พารามิเตอร์**\n\n- **textOrDictionary**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - URL ที่จะเข้ารหัส\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}}]},{"id":"math_functions","title":"ฟังก์ชันคณิตศาสตร์","items":[{"type":"function","name":"abs","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#abs","description":"ส่งคืนค่าสัมบูรณ์ของตัวเลข หากอินพุทเป็น `null` จะส่งคืน 0","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 3\n\n```arcade\nAbs(-3)\n```\n\n","completion":{"label":"Abs","detail":"Abs(value) -> Number","insertText":"Abs(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าสัมบูรณ์ของตัวเลข หากอินพุทเป็น `null` จะส่งคืน 0\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"acos","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#acos","description":"ส่งคืนอาร์คโคไซน์ของค่าอินพุทเป็นเรเดียน ในช่วงของศูนย์ถึง PI หากค่าอินพุทอยู่นอกช่วงที่เหมาะสมของ +/- 1 ระบบจะส่งคืน NaN","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 1.266104\n\n```arcade\nAcos(0.3)\n```\n\n","completion":{"label":"Acos","detail":"Acos(value) -> Number","insertText":"Acos(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนอาร์คโคไซน์ของค่าอินพุทเป็นเรเดียน ในช่วงของศูนย์ถึง PI หากค่าอินพุทอยู่นอกช่วงที่เหมาะสมของ +/- 1 ระบบจะส่งคืน NaN\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขระหว่าง -1 และ 1 ที่จะใช้ในการดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"asin","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#asin","description":"ส่งคืนอาร์กไซน์ของค่าอินพุทเป็นเรเดียน ในช่วงของ -PI/2 และ PI/2 หากค่าอินพุทอยู่นอกช่วงที่เหมาะสมของ +/- 1 ระบบจะส่งคืน NaN","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 0.304693\n\n```arcade\nAsin(0.3)\n```\n\n","completion":{"label":"Asin","detail":"Asin(value) -> Number","insertText":"Asin(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนอาร์กไซน์ของค่าอินพุทเป็นเรเดียน ในช่วงของ -PI/2 และ PI/2 หากค่าอินพุทอยู่นอกช่วงที่เหมาะสมของ +/- 1 ระบบจะส่งคืน NaN\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขระหว่าง -1 และ 1 ที่จะใช้ในการดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"atan","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#atan","description":"ส่งคืน arctangent ของค่าอินพุทเป็น radians ในช่วงของ -PI/2 และ PI/2","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 0.785398\n\n```arcade\nAtan(1)\n```\n\n","completion":{"label":"Atan","detail":"Atan(value) -> Number","insertText":"Atan(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืน arctangent ของค่าอินพุทเป็น radians ในช่วงของ -PI/2 และ PI/2\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"atan2","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#atan2","description":"ส่งคืน arctangent ของ quotient ของค่าอินพุทเป็น radians ในช่วงของ -PI และศูนย์ หรือศูนย์และ PI ขึ้นอยู่กับสัญลักษณ์ของอาร์กิวเมนต์","examples":"\n**ตัวอย่าง**\n\nพิมพ์ -2.356194\n\n```arcade\nAtan2(-1, -1)\n```\n\n","completion":{"label":"Atan2","detail":"Atan2(y, x) -> Number","insertText":"Atan2(${1:y_}, ${2:x_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืน arctangent ของ quotient ของค่าอินพุทเป็น radians ในช่วงของ -PI และศูนย์ หรือศูนย์และ PI ขึ้นอยู่กับสัญลักษณ์ของอาร์กิวเมนต์\n\n**พารามิเตอร์**\n\n- **y**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขแสดงพิกัด y\n- **x**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขแสดงพิกัด x\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"average","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#average1","description":"ส่งคืนค่าเฉลี่ยของอาร์เรย์ตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 5\n\n```arcade\nvar values = [0,5,10]\nAverage(values)\n```\n\n","completion":{"label":"Average","detail":"Average(numbers) -> Number","insertText":"Average(${1:numbers_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเฉลี่ยของอาร์เรย์ตัวเลข\n\n**พารามิเตอร์**\n\n- **numbers**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"average","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#average2","description":"ส่งคืนค่าเฉลี่ยของรายการตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 5\n\n```arcade\nAverage(0,5,10)\n```\n\n","completion":{"label":"Average","detail":"Average([number1, ..., numberN]?) -> Number","insertText":"Average($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเฉลี่ยของรายการตัวเลข\n\n**พารามิเตอร์**\n\n- **[number1, ..., numberN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รายการตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":-1}}],{"type":"function","name":"ceil","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#ceil","description":"ส่งคืนค่าอินพุทปัดเศษขึ้นตามจำนวนจุดทศนิยมที่กำหนด","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 2135.1\n\n```arcade\nCeil(2135.0905, 2)\n```\n\n","completion":{"label":"Ceil","detail":"Ceil(value, numPlaces?) -> Number","insertText":"Ceil(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าอินพุทปัดเศษขึ้นตามจำนวนจุดทศนิยมที่กำหนด\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) - จำนวนจุดทศนิยมที่จะปัดเศษ `value` ค่าเริ่มต้นคือ 0 เลขศูนย์ที่ต่อท้ายจะถูกตัดออก\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"constrain","bundle":"core","sinceVersion":"1.2","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#constrain","description":"จำกัดอินพุทที่กำหนด `value` ตามขอบเขตขั้นต่ำและสูงสุด ตัวอย่างเช่น ถ้าค่าอินพุทคือ `10` ขอบเขตล่างคือ` 50` และขีดจำกัดบนคือ `100` ค่า '50' จะถูกส่งคืนมาแทน","examples":"\n**ตัวอย่าง**\n\nส่งคืน 5\n\n```arcade\nConstrain(5, 0, 10)\n```\n\nส่งคืน 0\n\n```arcade\nConstrain(-3, 0, 10)\n```\n\nส่งคืน 10\n\n```arcade\nConstrain(553, 0, 10)\n```\n\n","completion":{"label":"Constrain","detail":"Constrain(value, lowerBound, upperBound) -> Number","insertText":"Constrain(${1:value_}, ${2:lowerBound_}, ${3:upperBound_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.2](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nจำกัดอินพุทที่กำหนด `value` ตามขอบเขตขั้นต่ำและสูงสุด ตัวอย่างเช่น ถ้าค่าอินพุทคือ `10` ขอบเขตล่างคือ` 50` และขีดจำกัดบนคือ `100` ค่า '50' จะถูกส่งคืนมาแทน\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าที่จะจำกัดตามขอบเขต `min` และ `max` ที่กำหนด\n- **lowerBound**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตล่างที่จะจำกัดอินพุท `value` หากค่าที่กำหนดน้อยกว่า `min` จะส่งคืน `min`\n- **upperBound**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตบนที่จะจำกัดอินพุท `value` หากค่าที่กำหนดมากกว่า `max` จะส่งคืน `max`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"cos","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#cos","description":"ส่งคืน cosine ของค่าอินพุทเป็น radian","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 0.540302\n\n```arcade\nCos(1)\n```\n\n","completion":{"label":"Cos","detail":"Cos(value) -> Number","insertText":"Cos(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืน cosine ของค่าอินพุทเป็น radian\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวน radian ที่จะใช้ในการดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"exp","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#exp","description":"ส่งคืนค่าของ e กำลัง x โดยที่ e เป็นฐานของลอการิทึมทั่วไป `2.718281828`","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 7.389056\n\n```arcade\nExp(2)\n```\n\n","completion":{"label":"Exp","detail":"Exp(x) -> Number","insertText":"Exp(${1:x_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าของ e กำลัง x โดยที่ e เป็นฐานของลอการิทึมทั่วไป `2.718281828`\n\n**พารามิเตอร์**\n\n- **x**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - กำลัง หรือจำนวนครั้งการคูณ `e` กับตัวเอง\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"floor","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#floor","description":"ส่งคืนค่าอินพุทที่ปัดเศษลงตามจำนวนจุดทศนิยมที่กำหนด","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 2316.25\n\n```arcade\nFloor(2316.2562, 2)\n```\n\n","completion":{"label":"Floor","detail":"Floor(value, numPlaces?) -> Number","insertText":"Floor(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าอินพุทที่ปัดเศษลงตามจำนวนจุดทศนิยมที่กำหนด\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)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"hash","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#hash","description":"สร้างค่าแฮชโค้ดของตัวแปรที่กำหนด","examples":"\n**ตัวอย่าง**\n\nส่งคืน `1649420691`\n\n```arcade\nHash('text value')\n```\n\n","completion":{"label":"Hash","detail":"Hash(value) -> Number","insertText":"Hash(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; \\| [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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"log","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#log","description":"ส่งคืนลอการิทึมค่าทั่วไป (ฐาน e) ของ x","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 2.302585\n\n```arcade\nLog(10)\n```\n\n","completion":{"label":"Log","detail":"Log(x) -> Number","insertText":"Log(${1:x_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนลอการิทึมค่าทั่วไป (ฐาน e) ของ x\n\n**พารามิเตอร์**\n\n- **x**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"max","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#max1","description":"ส่งคืนค่าสูงสุดจากอาร์เรย์ตัวเลข","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 89\n\n```arcade\nMax([23,56,89])\n```\n\n","completion":{"label":"Max","detail":"Max(numbers) -> Number","insertText":"Max(${1:numbers_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าสูงสุดจากอาร์เรย์ตัวเลข\n\n**พารามิเตอร์**\n\n- **numbers**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลข\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"max","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#max2","description":"ส่งคืนค่าสูงสุดจากรายการตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 120\n\n```arcade\nMax(23,5,120,43,9)\n```\n\n","completion":{"label":"Max","detail":"Max([number1, ..., numberN]?) -> Number","insertText":"Max($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าสูงสุดจากรายการตัวเลข\n\n**พารามิเตอร์**\n\n- **[number1, ..., numberN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รายการของตัวเลข\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":-1}}],[{"type":"function","name":"mean","bundle":"core","sinceVersion":"1.1","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#mean1","description":"ส่งคืนค่าเฉลี่ยของอาร์เรย์ของตัวเลข","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar values = [1,2,3,4,5,6,7,8,9];\nMean(values);\n// returns 5\n```\n\n","completion":{"label":"Mean","detail":"Mean(numbers) -> Number","insertText":"Mean(${1:numbers_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเฉลี่ยของอาร์เรย์ของตัวเลข\n\n**พารามิเตอร์**\n\n- **numbers**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่จะคำนวณค่าเฉลี่ยจาก\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"mean","bundle":"core","sinceVersion":"1.1","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#mean2","description":"ส่งคืนค่าเฉลี่ยของรายการตัวเลข","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nMean(1,2,3,4,5,6,7,8,9);\n// returns 5\n```\n\n","completion":{"label":"Mean","detail":"Mean([number1, ..., numberN]?) -> Number","insertText":"Mean($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเฉลี่ยของรายการตัวเลข\n\n**พารามิเตอร์**\n\n- **[number1, ..., numberN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รายการของตัวเลขที่จะคำนวณค่าเฉลี่ยจาก\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":-1}}],[{"type":"function","name":"min","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#min1","description":"ส่งคืนค่าต่ำสุดในอาร์เรย์ตัวเลขที่กำหนด","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 23\n\n```arcade\nMin([23,56,89])\n```\n\n","completion":{"label":"Min","detail":"Min(numbers) -> Number","insertText":"Min(${1:numbers_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าต่ำสุดในอาร์เรย์ตัวเลขที่กำหนด\n\n**พารามิเตอร์**\n\n- **numbers**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลข\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"min","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#min2","description":"ส่งคืนค่าต่ำสุดในรายการตัวเลขที่กำหนด","examples":"\n**ตัวอย่าง**\n\nพรินท์ 5\n\n```arcade\nMin(23,5,120,43,9)\n```\n\n","completion":{"label":"Min","detail":"Min([number1, ..., numberN]?) -> Number","insertText":"Min($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าต่ำสุดในรายการตัวเลขที่กำหนด\n\n**พารามิเตอร์**\n\n- **[number1, ..., numberN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รายการของตัวเลข\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":-1}}],{"type":"function","name":"number","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#number","description":"แปลงค่าอินพุทเป็นตัวเลข ค่าวันที่จะถูกแปลงเป็นตัวเลขแทนมิลลิวินาทีนับตั้งแต่วันที่ 1 มกราคม 1970 (เช่น Unix epoch)","examples":"\n**ตัวอย่าง**\n\nเปลี่ยนค่าตัวเลขโดยใช้ตัวคั่นกลุ่มที่เหมาะสมสำหรับโลคัลที่มีการดำเนินการนิพจน์\n\n```arcade\nNumber('1,365', ',###') // returns 1365\n```\n\nลบอักขระข้อความออกจากตัวเลข\n\n```arcade\nNumber('abc10def', 'abc##def') // return 10\n```\n\nระบุตัวเลขขั้นต่ำที่ ส่ง 0 เป็นสอง และตัวเลขสูงสุด ส่ง 0 เป็น 4\n\n```arcade\nNumber('10.456','00.00##') // returns 10.456\n```\n\nระบุตัวเลขขั้นต่ำที่ ส่ง 0 เป็นสอง และตัวเลขสูงสุด ส่ง 0 เป็น 4 ด้านซ้ายและด้านขวาของฟังก์ชั่นจะต้องตรงกัน หรือ ส่ง NaN กลับ\n\n```arcade\nNumber('10.4','00.00##') // returns NaN\n```\n\nระบุขนาดของกลุ่มซ้ำ และขนาดของกลุ่มสุดท้ายของค่าอินพุท\n\n```arcade\nNumber('12,12,456', ',##,###') // returns 1212456\n```\n\nถ้ามีเครื่องหมายเป็นค่าลบ จะทำงานเฉพาะที่ระบุคำนำหน้า และคำต่อท้ายเป็นค่าลบ\n\n```arcade\nNumber('-12,23,345', ',##,###;-,##,###') // returns -1223345\n```\n\nหารด้วย 100 สูงสุดไม่เกินทศนิยมสามตำแหน่ง\n\n```arcade\nNumber('99.99%', '#.##%') // 0.9999\n```\n\nส่งคืนตัวเลขมิลลิวินาทีนับตั้งแต่วันที่ 1 มกราคม 1970\n\n```arcade\nNumber(Date(1996,11,10)) // returns 850204800000\n```\n\n","completion":{"label":"Number","detail":"Number(value, pattern?) -> Number","insertText":"Number(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงค่าอินพุทเป็นตัวเลข ค่าวันที่จะถูกแปลงเป็นตัวเลขแทนมิลลิวินาทีนับตั้งแต่วันที่ 1 มกราคม 1970 (เช่น Unix epoch)\n\n**พารามิเตอร์**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่จะแปลงเป็นตัวเลข\n- **pattern** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความแพทเทิร์นการจัดรูปแบบ มีไว้เพื่อแยกวิเคราะห์ตัวเลขที่ได้รับการจัดรูปแบบในบริบทท้องถิ่น จากค่าข้อความเป็นตัวเลข อักขระพิเศษต่อไปนี้จะถูกใช้ในการกำหนดแพทเทิร์น:\n\n  - 0: ตัวเลขบังคับ  \n  - #: ตัวเลขทางเลือก  \n  - %: หารด้วย 100  \n\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"pow","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#pow","description":"ส่งคืนค่าของ x กำลัง y","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 9\n\n```arcade\nPow(3, 2)\n```\n\n","completion":{"label":"Pow","detail":"Pow(x, y) -> Number","insertText":"Pow(${1:x_}, ${2:y_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าของ x กำลัง y\n\n**พารามิเตอร์**\n\n- **x**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าฐาน\n- **y**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - เลขชี้กำลัง ระบุจำนวนครั้งที่จะคูณ `x` กับตัวเอง\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"random","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#random","description":"ส่งคืนตัวเลขสุ่มระหว่าง 0 และ 1","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nRandom()\n```\n\n","completion":{"label":"Random","detail":"Random() -> Number","insertText":"Random($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนตัวเลขสุ่มระหว่าง 0 และ 1\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"round","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#round","description":"ให้ค่านำเข้าปัดเศษเป็นจำนวนทศนิยมที่กำหนด  \n_หมายเหตุ: หากคุณต้องการจัดรูปแบบค่าสำหรับการแสดงผลในป้ายกำกับหรือป็อปอัพ ให้ใช้ฟังก์ชัน `Text()` _","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 2316.26\n\n```arcade\nRound(2316.2562, 2)\n```\n\n","completion":{"label":"Round","detail":"Round(value, numPlaces?) -> Number","insertText":"Round(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nให้ค่านำเข้าปัดเศษเป็นจำนวนทศนิยมที่กำหนด  \n_หมายเหตุ: หากคุณต้องการจัดรูปแบบค่าสำหรับการแสดงผลในป้ายกำกับหรือป็อปอัพ ให้ใช้ฟังก์ชัน `Text()` _\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนที่จะปัดเศษ\n- **numPlaces** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนจุดทศนิยมที่จะปัดเศษค่าตัวเลข ค่าเริ่มต้นคือ `0` เลขศูนย์ที่ต่อท้ายจะถูกตัดออก\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Text()](https://developers.arcgis.com/arcade/function-reference/text_functions/#text)\n"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"sin","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#sin","description":"ส่งคืน sine ของค่าอินพุท","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 0.841741\n\n```arcade\nSin(1)\n```\n\n","completion":{"label":"Sin","detail":"Sin(value) -> Number","insertText":"Sin(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืน sine ของค่าอินพุท\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวน radian ที่จะใช้ในการดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"sqrt","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#sqrt","description":"ส่งคืนค่ารากที่สองของจำนวน","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 3\n\n```arcade\nSqrt(9)\n```\n\n","completion":{"label":"Sqrt","detail":"Sqrt(value) -> Number","insertText":"Sqrt(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่ารากที่สองของจำนวน\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนที่จะคำนวณค่ารากที่สอง\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"stdev","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#stdev1","description":"ก้_Returns the standard deviation (population standard deviation) of an array of numbers____________________________________________ษฺ.","examples":"\n**ตัวอย่าง**\n\nพรินท์ 27.5\n\n```arcade\nStdev([23,56,89,12,45,78])\n```\n\n","completion":{"label":"Stdev","detail":"Stdev(numbers) -> Number","insertText":"Stdev(${1:numbers_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nก้_Returns the standard deviation (population standard deviation) of an array of numbers____________________________________________ษฺ.\n\n**พารามิเตอร์**\n\n- **numbers**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"stdev","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#stdev2","description":"ส่งคืสค่าเบี่ยงเบนมาตรฐาน (ค่าเบี่ยงเบนมาตรฐานประชากร) ของรายการตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 27.5\n\n```arcade\nStdev(23,56,89,12,45,78)\n```\n\n","completion":{"label":"Stdev","detail":"Stdev([number1, ..., numberN]?) -> Number","insertText":"Stdev($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืสค่าเบี่ยงเบนมาตรฐาน (ค่าเบี่ยงเบนมาตรฐานประชากร) ของรายการตัวเลข\n\n**พารามิเตอร์**\n\n- **[number1, ..., numberN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รายการของตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":-1}}],[{"type":"function","name":"sum","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#sum1","description":"ส่งคืนผลรวมของอาร์เรย์ตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 303\n\n```arcade\nSum([23,56,89,12,45,78])\n```\n\n","completion":{"label":"Sum","detail":"Sum(numbers) -> Number","insertText":"Sum(${1:numbers_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผลรวมของอาร์เรย์ตัวเลข\n\n**พารามิเตอร์**\n\n- **numbers**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"sum","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#sum2","description":"ส่งคืนผลรวมของรายการตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 303\n\n```arcade\nSum(23,56,89,12,45,78)\n```\n\n","completion":{"label":"Sum","detail":"Sum([number1, ..., numberN]?) -> Number","insertText":"Sum($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผลรวมของรายการตัวเลข\n\n**พารามิเตอร์**\n\n- **[number1, ..., numberN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - รายการตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":-1}}],{"type":"function","name":"tan","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#tan","description":"ส่งคืน tangent ของมุมเป็น radian","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 0.57389\n\n```arcade\nTan(0.521)\n```\n\n","completion":{"label":"Tan","detail":"Tan(value) -> Number","insertText":"Tan(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืน tangent ของมุมเป็น radian\n\n**พารามิเตอร์**\n\n- **value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนที่จะคำนวณ tangent\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"variance","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#variance1","description":"ส่งคืนผลต่าง (ผลต่างจำนวนประชากร) ของอาร์เรย์ตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 756.25\n\n```arcade\nVariance([12,23,45,56,78,89])\n```\n\n","completion":{"label":"Variance","detail":"Variance(numbers) -> Number","insertText":"Variance(${1:numbers_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผลต่าง (ผลต่างจำนวนประชากร) ของอาร์เรย์ตัวเลข\n\n**พารามิเตอร์**\n\n- **numbers**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"variance","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/math_functions/#variance2","description":"ส่งคืนผลต่าง (ผลต่างจำนวนประชากร) ของรายการตัวเลข","examples":"\n**ตัวอย่าง**\n\nพรินท์ 756.25\n\n```arcade\nVariance(12,23,45,56,78,89)\n```\n\n","completion":{"label":"Variance","detail":"Variance([number1, ..., numberN]?) -> Number","insertText":"Variance($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนผลต่าง (ผลต่างจำนวนประชากร) ของรายการตัวเลข\n\n**พารามิเตอร์**\n\n- **[number1, ..., numberN]** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - อาร์เรย์ของตัวเลขที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":0,"max":-1}}]]},{"id":"dictionary_functions","title":"ฟังก์ชันพจนานุกรม","items":[[{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1","description":"ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่คีย์ในพจนานุกรมไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nDefaultValue จะส่งคืนค่าที่กำหนดไว้\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      value: 0.4,\n      unit: \"inches\"\n    },\n    temperature: {\n      value: 50,\n      unit: \"f\"\n    },\n    conditions: {\n      description: \"Overcast\"\n    }\n  }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is defined, so it is returned\n// returns Jan 24, 2024, 12:00:00 PM system time\n```\n\nDefaultValue จะส่งคืนค่าเริ่มต้น ในกรณีที่ไม่มีค่า ณ คีย์ที่ระบุ\n\n```arcade\nvar data = {\n  time: '',\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      value: 0.4,\n      unit: \"inches\"\n    },\n    temperature: {\n      value: 50,\n      unit: \"f\"\n    },\n    conditions: {\n      description: \"Overcast\"\n    }\n  }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is empty, so the default is returned\n// returns \"No time logged\"\n```\n\nDefaultValue จะส่งคืนค่าเริ่มต้น หากไม่มีคีย์\n\n```arcade\nvar data = {\n  time: ''\n}\n\nDefaultValue(data, \"conditions\", \"n/a\")\n// the conditions key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputDictionary, key, defaultValue) -> Any","insertText":"DefaultValue(${1:inputDictionary_}, ${2:key_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่คีย์ในพจนานุกรมไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - พจนานุกรมหรือไฟล์แนบที่จะตรวจสอบ\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - คีย์ที่จะตรวจสอบ\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืน หากคีย์ไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่า ณ คีย์ที่ระบุ ในกรณีที่กำหนดไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2","description":"ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในพจนานุกรมที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nDefaultValue จะส่งคืนค่าที่กำหนดไว้\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      value: 0.4,\n      unit: \"inches\"\n    },\n    temperature: {\n      value: 50,\n      unit: \"f\"\n    },\n    conditions: {\n      description: \"Overcast\"\n    }\n  }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], \"No time logged\")\n// value of data.weather.precipitation.value is defined, so it is returned\n// returns 0.4\n```\n\nDefaultValue จะส่งคืนค่าเริ่มต้น ในกรณีที่ไม่มีค่า ณ คีย์ที่ระบุ\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      value: null,\n      unit: \"inches\"\n    },\n    temperature: {\n      value: 50,\n      unit: \"f\"\n    },\n    conditions: {\n      description: \"Overcast\"\n    }\n  }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], 0)\n// value of data.weather.precipitation.value is null, so the default is returned\n// returns 0\n```\n\nDefaultValue จะส่งคืนค่าเริ่มต้น หากไม่มีคีย์\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      value: null,\n      unit: \"inches\"\n    },\n    temperature: {\n      value: 50,\n      unit: \"f\"\n    },\n    conditions: {\n      description: \"Overcast\"\n    }\n  }\n}\n\nDefaultValue(data, [\"weather\", \"wind\", \"value\"], \"n/a\")\n// the data.weather.wind key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\nตรวจสอบค่าว่างในอาร์เรย์ภายในพจนานุกรมด้วยคีย์ที่มีอยู่\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  interval: 1,\n  intervalUnit: \"days\",\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n      unit: \"inches\"\n    },\n    temperature: {\n      values: [50, 50, 51, 52, 55, 49, 51],\n      unit: \"f\"\n    },\n  }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"values\", 3], 0)\n// the value data.weather.precipitation.values[3] is null, so the default is returned\n// returns 0\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputDictionary, keys, defaultValue) -> Any","insertText":"DefaultValue(${1:inputDictionary_}, ${2:keys_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในพจนานุกรมที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - พจนานุกรมหรือไฟล์แนบที่จะตรวจสอบ\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของคีย์หรือดัชนีที่จะตรวจสอบในแต่ละระดับของโครงสร้างของคอนเทนเนอร์\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืนหากอย่างน้อยหนึ่งในคีย์หรือดัชนีไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่า ณ คีย์หรือดัชนีที่ระบุ หากกำหนดค่าไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}}],[{"type":"function","name":"dictionary","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#dictionary1","description":"ส่งคืนพจนานุกรมใหม่ โดยอิงตามอาร์กิวเมนต์ที่กำหนด อาร์กิวเมนต์ได้แก่คู่ชื่อ/ค่า เช่น dictionary('field1',val,'field2',val2,...)","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 3\n\n```arcade\nvar d = Dictionary('field1', 1, 'field2', 2)\nreturn d.field1 + d.field2\n```\n\n","completion":{"label":"Dictionary","detail":"Dictionary([name1, value1, ..., nameN, valueN]?) -> Dictionary","insertText":"Dictionary($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพจนานุกรมใหม่ โดยอิงตามอาร์กิวเมนต์ที่กำหนด อาร์กิวเมนต์ได้แก่คู่ชื่อ/ค่า เช่น dictionary('field1',val,'field2',val2,...)\n\n**พารามิเตอร์**\n\n- **[name1, value1, ..., nameN, valueN]** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - คู่ชื่อ/ค่าที่ดำเนินการต่อเนื่อง\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"}},"parametersInfo":{"min":0,"max":-1}},{"type":"function","name":"dictionary","bundle":"core","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#dictionary2","description":"ดีซีเรียไลซ์ข้อความ JSON ในรูปแบบพจนานุกรม Arcade","examples":"\n**ตัวอย่าง**\n\nดีซีเรียไลซ์ JSON ในรูปแบบพจนานุกรม\n\n```arcade\nvar extraInfo = '{\"id\": 1, \"population\": 200, \"city\": \"Spencer, ID\"}'\nvar spencerIDdata = Dictionary(extraInfo)\nspencerIDdata.population // Returns 200\n```\n\n","completion":{"label":"Dictionary","detail":"Dictionary(jsonText) -> Dictionary","insertText":"Dictionary(${1:jsonText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nดีซีเรียไลซ์ข้อความ JSON ในรูปแบบพจนานุกรม Arcade\n\n**พารามิเตอร์**\n\n- **jsonText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - JSON ที่จะแปลงเป็นพจนานุกรม Arcade ส่วนนี้ต้องได้รับการซีเรียไลซ์ในรูปแบบค่าข้อความ\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"dictionary","bundle":"geometry","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#dictionary3","description":"แปลงค่าเรขาคณิตเป็นพจนานุกรม","examples":"\n**ตัวอย่าง**\n\nอัปเดตแอตทริบิวต์ x ของเรขาคณิตจุด\n\n```arcade\n// convert the $feature's geometry to a dictionary\nif (TypeOf(Geometry($feature)) == \"Point\") {\n  var ptDict = Dictionary(Geometry($feature));\n  ptDict.x *= 2; // stretch horizontally\n  // create a new geometry from the updated dictionary\n  return Geometry(ptDict);\n}\n```\n\n","completion":{"label":"Dictionary","detail":"Dictionary(inputGeometry) -> Dictionary","insertText":"Dictionary(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงค่าเรขาคณิตเป็นพจนานุกรม\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตที่จะแปลงเป็นพจนานุกรม Arcade เริ่มจากเวอร์ชัน 1.25, อินพุทรูปหลายเหลี่ยมหรือเส้นหลายแบบอาจมีวัตถุโค้ง ขณะดำเนินการใน ArcGIS Pro และ ArcGIS Maps SDKs for Native Apps\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"dictionary","bundle":"core","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#dictionary4","description":"แปลงฟีเจอร์เป็นพจนานุกรม","examples":"\n**ตัวอย่าง**\n\nแปลงฟีเจอร์เป็นพจนานุกรม\n\n```arcade\n// convert $feature to a dictionary\nvar featureDict = Dictionary($feature);\n```\n\n","completion":{"label":"Dictionary","detail":"Dictionary(inputFeature) -> Dictionary","insertText":"Dictionary(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงฟีเจอร์เป็นพจนานุกรม\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่จะแปลงเป็นพจนานุกรม Arcade\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"dictionary","bundle":"core","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#dictionary5","description":"สร้างสำเนาแบบตื้นหรือลึกของพจนานุกรม","examples":"\n**ตัวอย่าง**\n\nสร้างสำเนาแบบตื้นของพจนานุกรม\n\n```arcade\nvar inputDict = {\n  company: {\n    name: \"Esri\",\n    location: \"Redlands, CA\"\n  },\n  office: \"M123\"\n};\nvar copiedDict = Dictionary(inputDict);\nreturn inputDict.company == copiedDict.company\n// returns true\n// this is a shallow copy of the Dictionary, so the dictionaries share the same references\n```\n\nสร้างสำเนาแบบลึกของพจนานุกรม\n\n```arcade\nvar deepCopy = Dictionary(inputDict, true);\nreturn inputDict.company == deepCopy.company\n// returns false\n// this is a deep copy of the Dictionary, so the dictionaries do NOT share the same references\n```\n\n","completion":{"label":"Dictionary","detail":"Dictionary(inputDictionary, deep?) -> Dictionary","insertText":"Dictionary(${1:inputDictionary_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างสำเนาแบบตื้นหรือลึกของพจนานุกรม\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - พจนานุกรมที่จะคัดลอก\n- **deep** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - เมื่อเป็น `true` จะสร้างสำเนาแบบลึกของพจนานุกรม ซึ่งหมายความว่าคุณสมบัติของพจนานุกรมเอาท์พุท จะไม่ใช้การอ้างอิงเดียวกันกับพจนานุกรมอินพุท ค่าเริ่มต้นคือ `false`\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"dictionary","bundle":"core","sinceVersion":"1.30","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#dictionary6","description":"แปลงว็อกเซลเป็นพจนานุกรม","examples":"\n**ตัวอย่าง**\n\nแปลงว็อกเซลเป็นพจนานุกรม\n\n```arcade\n// convert $voxel to a dictionary\nvar voxelDict = Dictionary($voxel);\n```\n\n","completion":{"label":"Dictionary","detail":"Dictionary(inputVoxel) -> Dictionary","insertText":"Dictionary(${1:inputVoxel_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.30](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงว็อกเซลเป็นพจนานุกรม\n\n**พารามิเตอร์**\n\n- **inputVoxel**: [Voxel](https://developers.arcgis.com/arcade/guide/types/#voxel) - ว็อกเซลที่จะแปลงเป็นพจนานุกรม Arcade\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"fromjson","bundle":"core","sinceVersion":"1.14","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#fromjson","description":"ดีซีเรียไลซ์ข้อความ JSON เป็นประเภทข้อมูล Arcade ที่เทียบเท่ากัน","examples":"\n**ตัวอย่าง**\n\nแปลงข้อความเป็นบูลีน\n\n```arcade\nFromJSON(\"true\")\n// Returns true\n```\n\nแปลงข้อความเป็นตัวเลข\n\n```arcade\nfromJSON(\"731.1\")\n// returns 731.1\n```\n\nแปลงข้อความเป็นพจนานุกรม\n\n```arcade\nvar d = fromJSON('{\"kids\": 3, \"adults\": 4 }')\nd.kids + d.adults\n// returns 7\n```\n\nแปลงข้อความเป็นอาร์เรย์\n\n```arcade\nfromJSON('[\"one\", 2, \"three\", false]')\n// returns [ \"one\", 2, \"three\", false ]\n```\n\nแปลวข้อความเป็นนัล\n\n```arcade\nfromJSON(\"null\")\n// returns null\n```\n\n","completion":{"label":"FromJSON","detail":"FromJSON(jsonText) -> Dictionary,Array<Any>,Text,Boolean,Number","insertText":"FromJSON(${1:jsonText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nดีซีเรียไลซ์ข้อความ JSON เป็นประเภทข้อมูล Arcade ที่เทียบเท่ากัน\n\n**พารามิเตอร์**\n\n- **jsonText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความ JSON ที่จะดีซีเรียไลซ์เป็นประเภทข้อมูล Arcade\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"haskey","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#haskey","description":"ระบุว่าพจนานุกรมมีคีย์อินพุทหรือไม่","examples":"\n**ตัวอย่าง**\n\nพิมพ์ `true`\n\n```arcade\nvar d = Dictionary('Port Hope', 16214,  'Grafton', '<1000', 'Cobourg', 18519);\nHasKey(d, 'Cobourg');\n```\n\n","completion":{"label":"HasKey","detail":"HasKey(inputDictionary, key) -> Boolean","insertText":"HasKey(${1:inputDictionary_}, ${2:key_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าพจนานุกรมมีคีย์อินพุทหรือไม่\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - พจนานุกรมที่จะตรวจสอบคีย์\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - คีย์ที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.20","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1","description":"ระบุว่าพจนานุกรมมีคีย์ที่กำหนดหรือไม่ และคีย์ดังกล่าวมีค่าหรือไม่","examples":"\n**ตัวอย่าง**\n\nพจนานุกรมที่มีคีย์ซึ่งมีค่า\n\n```arcade\nvar d = Dictionary('Port Hope', 16214,  'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nพจนานุกรมที่มีคีย์ซึ่งไม่มีค่า\n\n```arcade\nvar d = Dictionary('Port Hope', 16214,  'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nพจนานุกรมที่ไม่มีคีย์ที่กำหนด\n\n```arcade\nvar d = Dictionary('Port Hope', 16214,  'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nพจนานุกรมที่ไม่มีคีย์ที่กำหนด\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n  // Do something with the value if true\n}\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputDictionary, key) -> Boolean","insertText":"HasValue(${1:inputDictionary_}, ${2:key_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าพจนานุกรมมีคีย์ที่กำหนดหรือไม่ และคีย์ดังกล่าวมีค่าหรือไม่\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - พจนานุกรมหรือไฟล์แนบที่จะตรวจสอบ\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อคีย์หรือฟิลด์ที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2","description":"ตรวจสอบว่าคุณสมบัติที่เนสต์ลึกหลายระดับในพจนานุกรม มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `true` หากคีย์และดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง","examples":"\n**ตัวอย่าง**\n\nตรวจสอบพจนานุกรมด้วยคีย์ซึ่งมีค่าที่เนสต์\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      value: 0.4,\n      unit: \"inches\"\n    },\n    temperature: {\n      value: 50,\n      unit: \"f\"\n    },\n    conditions: {\n      description: \"Overcast\"\n    }\n  }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"value\"])){\n  // if() evaluates to true, thus executing the return\n  return data.weather.precipitation.value;\n}\n```\n\nตรวจสอบค่าในพจนานุกรมด้วยคีย์ที่ไม่มีอยู่\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      value: 0.4,\n      unit: \"inches\"\n    },\n    temperature: {\n      value: 50,\n      unit: \"f\"\n    },\n    conditions: {\n      description: \"Overcast\"\n    }\n  }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 0])){\n  // if() evaluates to false (\"values\" does not exist), thus avoiding the block\n  return data.weather.precipitation.values;\n}\n```\n\nตรวจสอบค่าในอาร์เรย์ภายในพจนานุกรมด้วยคีย์ที่มีอยู่\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  interval: 1,\n  intervalUnit: \"days\",\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n      unit: \"inches\"\n    },\n    temperature: {\n      values: [50, 50, 51, 52, 55, 49, 51],\n      unit: \"f\"\n    },\n  }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 6])){\n  // if() evaluates to true, thus executing the return\n  return data.weather.precipitation.values[6];\n}\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputDictionary, keys) -> Boolean","insertText":"HasValue(${1:inputDictionary_}, ${2:keys_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตรวจสอบว่าคุณสมบัติที่เนสต์ลึกหลายระดับในพจนานุกรม มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `true` หากคีย์และดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - พจนานุกรมหรือไฟล์แนบที่จะตรวจสอบ\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของคีย์หรือดัชนีที่จะตรวจสอบในแต่ละระดับของโครงสร้าง\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}}]]},{"id":"feature_functions","title":"ฟังก์ชันฟีเจอร์","items":[{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#defaultvalue","description":"ส่งคืนค่าเริ่มต้นที่กำหนดไว้ หากไม่มีชื่อฟิลด์ หรือค่า ณ ฟิลด์ที่กำหนดเป็น `null` หรือเป็นค่าข้อความที่ว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nส่งคืน \"n/a\" หากไม่มีคุณลักษณะฟีเจอร์ หรือว่างเปล่า\n\n```arcade\nDefaultValue($feature, \"population\", \"n/a\")\n// Returns the population value if available\n// or n/a if not available\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputFeature, fieldName, defaultValue) -> Any","insertText":"DefaultValue(${1:inputFeature_}, ${2:fieldName_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเริ่มต้นที่กำหนดไว้ หากไม่มีชื่อฟิลด์ หรือค่า ณ ฟิลด์ที่กำหนดเป็น `null` หรือเป็นค่าข้อความที่ว่างเปล่า\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- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืนหากไม่มีชื่อฟิลด์ หรือค่า ณ ฟิลด์ที่กำหนดเป็น `null` หรือเป็นค่าข้อความที่ว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่าสำหรับฟิลด์ที่กำหนด หากกำหนดค่าไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"domain","bundle":"core","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#domain","description":"แจ้งกลับโดเมนที่กำหนดให้กับฟิลด์ที่ระบุของ 'ฟีเจอร์' ที่แจ้ง หาก 'ฟีเจอร์' เป็นของคลาสที่มีประเภทย่อย จะมีการแจ้งกลับโดเมนที่จัดสรรให้กับประเภทย่อยดังกล่าว","examples":"\n**ตัวอย่าง**\n\nโดเมนที่กำหนดให้กับประเภทย่อยของฟีเจอร์\n\n```arcade\nvar d = Domain($feature, \"poleType\")\n// the poleType field has a coded value domain called poleTypes\n// the value of d will be\n// {\n//   type: \"codedValue\" ,\n//   name: \"poleTypes\",\n//   dataType: \"number\",\n//   codedValues: [\n//     { name: \"Unknown\", code: 0 },\n//     { name: \"Wood\", code: 1 },\n//     { name: \"Steel\", code: 2 }\n//   ]\n// }\n```\n\n","completion":{"label":"Domain","detail":"Domain(inputFeature, fieldName) -> Dictionary","insertText":"Domain(${1:inputFeature_}, ${2:fieldName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - ใช้เฉพาะกับโดเมน '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' ค่าสูงสุดของโดเมน"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"domaincode","bundle":"core","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode","description":"ส่งคืนรหัสของคำอธิบายโดเมนที่เชื่อมโยงในฟีเจอร์","examples":"\n**ตัวอย่าง**\n\nพิมพ์รหัสโดเมนของฟิลด์ที่อ้างอิง\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n","completion":{"label":"DomainCode","detail":"DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text","insertText":"DomainCode(${1:inputFeature_}, ${2:fieldName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](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- **value** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ค่าที่จะแปลงกลับเป็นโค้ด\n- **subtype** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - จำนวนหรือชื่อแบบเข้ารหัสของประเภทย่อย ในกรณีที่ฟีเจอร์รองรับการแบ่งประเภทย่อย หากไม่ได้ระบุ จะใช้ประเภทย่อยของฟีเจอร์ปัจจุบัน (หากมี)\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"domainname","bundle":"core","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#domainname","description":"ส่งคืนสิ่งที่ได้ชื่อที่อธิบายสำหรับรหัสโดเมนในฟีเจอร์","examples":"\n**ตัวอย่าง**\n\nพิมพ์คำอธิบายโดเมนสำหรับอ้างอิงฟิลด์\n\n```arcade\nDomainName($feature, 'fieldName')\n```\n\n","completion":{"label":"DomainName","detail":"DomainName(inputFeature, fieldName, code?, subtype?) -> Text","insertText":"DomainName(${1:inputFeature_}, ${2:fieldName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](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- **code** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - โค้ดที่เชื่อมโยงกับชื่อเชิงบรรยาย หากไม่ระบุ ระบบจะส่งกลับค่าฟิลด์ในฟีเจอร์\n- **subtype** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - จำนวนหรือชื่อแบบเข้ารหัสของประเภทย่อย ในกรณีที่ฟีเจอร์รองรับการแบ่งประเภทย่อย หากไม่ได้ระบุ จะใช้ประเภทย่อยของฟีเจอร์ (หากมี)\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"expects","bundle":"core","sinceVersion":"1.15","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#expects","description":"ส่งคำขอแอตทริบิวต์เพิ่มเติมสำหรับฟีเจอร์ที่กำหนด ในบางโปรไฟล์ เช่น การสร้างภาพและติดป้ายกำกับ แอปจะร้องขอเฉพาะแอตทริบิวต์ข้อมูลที่จำเป็นสำหรับการเรนเดอร์แต่ละฟีเจอร์หรือป้ายกำกับ บางนิพจน์มีการอ้างอิงแบบไดนามิกไปยังชื่อฟิลด์ที่มีตัวแปร แทนตัวอักษรข้อความ ซึ่งทำให้เอนจินเรนเดอร์และติดป้ายกำกับ ตรวจจับฟิลด์ที่จำเป็นสำหรับการเรนเดอร์ได้ยาก ฟังก์ชันนี้จะช่วยให้คุณสามารถระบุฟิลด์ที่จำเป็นในรูปแบบรายการได้อย่างเจาะจง และคุณยังสามารถร้องขอซับเซ็ตของฟิลด์ทั้งหมดหรือบางส่วนโดยใช้สัญลักษณ์ตัวแทนได้อีกด้วย เนื่องจากนิพจน์ที่ดำเนินการแบบอิงฟีเจอร์ ควรใช้สัญลักษณ์ตัวแทนด้วยความระมัดระวัง โดยเฉพาะในชั้นข้อมูลที่มีหลายฟีเจอร์ การร้องขอข้อมูลมากเกินไปอาจส่งผลให้ประสิทธิภาพของแอปลดลง","examples":"\n**ตัวอย่าง**\n\nตัวเรนเดอร์ไม่สามารถตรวจพบฟิลด์ที่ร้องขอได้อย่างสะดวก\n\n```arcade\n// Request multiple years of population data if the\n// fields cannot be easily detected by the renderer or labels\nExpects($feature, 'POP_2020', 'POP_2010')\nvar thisYear = 2020;\nvar lastDecade = thisYear - 10;\nreturn $feature['POP_'+thisYear] - $feature['POP_'+lastDecade]\n```\n\nร้องขอข้อมูลทั้งหมดที่ตรงกับแพทเทิร์นในชื่อฟิลด์\n\n```arcade\n// Request all the data beginning with 'POP'. This is\n// necessary because the renderer can't easily detect\n// the required fields based on this expression\nExpects($feature, 'POP*')\n\nvar startYear = 1880;\nvar endYear = 2020;\nvar changes = [];\n\nfor(var y=startYear; y<endYear; y+=10){\n  var startPop = $feature['POP_' + y];\n  var endPop = $feature['POP_' + (y+10)];\n  var change = endPop - startPop;\n  Push(changes, change);\n}\nMax(changes);\n```\n\nร้องขอข้อมูลทั้งหมดสำหรับฟีเจอร์\n\n```arcade\n// Request all fields because the required fields may\n// be based on unknown information like a relative date\nExpects($feature, '*')\n\nvar casesToday = $feature[ 'CASES_' + Text(d, 'MM_DD_Y') ];\nvar casesYesterday = $feature[ 'CASES_' + Text(DateAdd( Today(), -1, 'days', 'MM_DD_Y') ];\n// Change in cases from yesterday\nreturn casesToday - casesYesterday;\n```\n\n","completion":{"label":"Expects","detail":"Expects(inputFeature, field1, [field2, ..., fieldN]?) -> Null","insertText":"Expects(${1:inputFeature_}, ${2:field1_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.15](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- **field1**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะร้องขอสำหรับฟีเจอร์ที่กำหนด แสดงรายการเฉพาะฟิลด์ที่จำเป็นสำหรับการใช้ในนิพจน์ หากจำเป็น คุณสามารถร้องขอฟิลด์ทั้งหมดได้โดยใช้อักขระสัญลักษณ์ตัวแทน `*` อย่างไรก็ตาม ควรหลีกเลี่ยงการดำเนินการนี้ เพื่อป้องกันการโหลดข้อมูลในปริมาณที่ไม่จำเป็น ซึ่งอาจส่งผลลบต่อการทำงานของแอปได้ ค่านี้ต้องเป็นตัวอักษรข้อความ และต้องไม่เป็นตัวแปร\n- **[field2, ..., fieldN]** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - รายการชื่อฟิลด์แบบต่อเนื่องที่จะร้องขอสำหรับฟีเจอร์ที่กำหนด แสดงรายการเฉพาะฟิลด์ที่จำเป็นสำหรับการใช้ในนิพจน์ ค่าเหล่านี้ต้องเป็นตัวอักษรข้อความ และต้องไม่เป็นตัวแปร\n\n**ส่งคืนค่า**: Null"}},"parametersInfo":{"min":2,"max":-1}},[{"type":"function","name":"feature","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#feature1","description":"สร้างฟีเจอร์ใหม่","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nFeature(pointGeometry, 'city_name', 'Spokane', 'population', 210721)\n```\n\n","completion":{"label":"Feature","detail":"Feature(inputGeometry, attribute1, value1, [attribute2, value2, ..., attributeN, valueN]?) -> Feature","insertText":"Feature(${1:inputGeometry_}, ${2:attribute1_}, ${3:value1_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์ใหม่\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตของฟีเจอร์\n- **attribute1**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อของแอตทริบิวต์แรก\n- **value1**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ค่าแรกของแอตทริบิวต์\n- **[attribute2, value2, ..., attributeN, valueN]** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - คู่ชื่อ/ค่าที่ดำเนินการต่อเนื่องสำหรับแต่ละแอตทริบิวต์ในฟีเจอร์\n\n**ส่งคืนค่า**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature)"}},"parametersInfo":{"min":3,"max":-1}},{"type":"function","name":"feature","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#feature2","description":"สร้างฟีเจอร์ใหม่จากสตริง JSON ที่ซีเรียไลซ์","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar JSONString = '{\"geometry\":{\"x\":10,\"y\":20,\"spatialReference\":{\"wkid\":102100}},\"attributes\":{\"hello\":10}}'\nvar ftr1 = Feature(JSONString)\n```\n\n","completion":{"label":"Feature","detail":"Feature(jsonText) -> Feature","insertText":"Feature(${1:jsonText_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์ใหม่จากสตริง JSON ที่ซีเรียไลซ์\n\n**พารามิเตอร์**\n\n- **jsonText**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - JSON ที่ซีเรียไลซ์ซึ่งแสดงฟีเจอร์\n\n**ส่งคืนค่า**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"feature","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#feature3","description":"สร้างฟีเจอร์ใหม่จากเรขาคณิตและพจนานุกรมของแอตทริบิวต์","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar dict = { hello:10 }\nvar p = point({x:10, y:20, spatialReference:{wkid:102100}})\nvar ftr = Feature(p,dict)\n```\n\n","completion":{"label":"Feature","detail":"Feature(inputGeometry, attributes) -> Feature","insertText":"Feature(${1:inputGeometry_}, ${2:attributes_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์ใหม่จากเรขาคณิตและพจนานุกรมของแอตทริบิวต์\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตของฟีเจอร์\n- **attributes**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - พจนานุกรมที่มีแอตทริบิวต์และค่า\n\n**ส่งคืนค่า**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"feature","bundle":"core","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#feature4","description":"สร้างฟีเจอร์ใหม่จากพจนานุกรม","examples":"\n**ตัวอย่าง**\n\nสร้างฟีเจอร์ใหม่จากพจนานุกรม\n\n```arcade\nvar featureDict = {\n  geometry: Point({ x: -97.06138, y: 32.837, spatialReference: { wkid: 3857 } }),\n  attributes: {\n    name1: \"value1\",\n    name2: \"value2\"\n  }\n};\n// create a new feature from a dictionary of geometry and attributes\nvar newFeature = Feature(featureDict);\n```\n\n","completion":{"label":"Feature","detail":"Feature(inputDictionary) -> Feature","insertText":"Feature(${1:inputDictionary_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างฟีเจอร์ใหม่จากพจนานุกรม\n\n**พารามิเตอร์**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - พจนานุกรมที่มีเรขาคณิตฟีเจอร์และแอตทริบิวต์\n\n  - **geometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - เรขาคณิตของฟีเจอร์ หาก `geometry` เป็นพจนานุกรม เรขาคณิตใหม่จะถูกสร้างขึ้นด้วยฟังก์ชัน `Geometry` หาก `geometry` เป็นนัลหรือไม่มีในพจนานุกรม ฟีเจอร์จะถูกสร้างขึ้นด้วยเรขาคณิต `null`\n  - **attributes**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - พจนานุกรมที่มีแอตทริบิวต์และค่า\n\n**ส่งคืนค่า**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"feature","bundle":"core","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#feature5","description":"สร้างสำเนาของฟีเจอร์","examples":"\n**ตัวอย่าง**\n\nสร้างสำเนาของฟีเจอร์\n\n```arcade\nvar copiedFeature = Feature($feature);\n```\n\n","completion":{"label":"Feature","detail":"Feature(inputFeature) -> Feature","insertText":"Feature(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างสำเนาของฟีเจอร์\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่จะคัดลอก\n\n**ส่งคืนค่า**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature)"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"featureinfilter","bundle":"core","sinceVersion":"1.29","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#featureinfilter","description":"ระบุว่าฟีเจอร์ที่กำหนด ถูกรวมไว้ในเงื่อนไข Where ของ SQL ที่ระบุหรือไม่ หากฟีเจอร์ที่ระบุถูกรวมไว้ในเงื่อนไข Where ฟังก์ชันจะส่งคืน `true` หากไม่ จะส่งคืน `false` ฟังก์ชันนี้จะมีประโยชน์สำหรับการทดสอบว่าฟีเจอร์เป็นไปตามเงื่อนไขแบบเจาะจงหรือไม่ หากฟีเจอร์อินพุทเป็น `null` ฟังก์ชันจะส่งคืน `false` หาก `whereClause` เป็น `null` หรือว่างเปล่า ฟังก์ชันจะส่งคืน `true` หากทั้งสองพารามิเตอร์เป็น `null` ฟังก์ชันจะส่งคืน `false`","examples":"\n**ตัวอย่าง**\n\nส่งคืน true หากฟีเจอร์ถูกรวมไว้ในเงื่อนไข Where ของ SQL ที่ระบุ\n\n```arcade\n// The provided feature has a 'magnitude' field with a value of 5.2\nif(FeatureInFilter($feature, 'magnitude >= 5')) {\n  return 'Significant earthquake';\n}\nreturn 'Minor earthquake';\n```\n\n","completion":{"label":"FeatureInFilter","detail":"FeatureInFilter(inputFeature, whereClause) -> Boolean","insertText":"FeatureInFilter(${1:inputFeature_}, ${2:whereClause_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.29](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าฟีเจอร์ที่กำหนด ถูกรวมไว้ในเงื่อนไข Where ของ SQL ที่ระบุหรือไม่ หากฟีเจอร์ที่ระบุถูกรวมไว้ในเงื่อนไข Where ฟังก์ชันจะส่งคืน `true` หากไม่ จะส่งคืน `false` ฟังก์ชันนี้จะมีประโยชน์สำหรับการทดสอบว่าฟีเจอร์เป็นไปตามเงื่อนไขแบบเจาะจงหรือไม่ หากฟีเจอร์อินพุทเป็น `null` ฟังก์ชันจะส่งคืน `false` หาก `whereClause` เป็น `null` หรือว่างเปล่า ฟังก์ชันจะส่งคืน `true` หากทั้งสองพารามิเตอร์เป็น `null` ฟังก์ชันจะส่งคืน `false`\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่จะตรวจสอบ\n- **whereClause**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - เงื่อนไข Where ของ SQL ที่ใช้ในการทดสอบการรวมของฟีเจอร์ เงื่อนไข Where ของ SQL ที่ไม่ถูกต้อง จะส่งผลให้เกิดข้อผิดพลาด ยอมรับ SQL-92 ที่เป็นไปตามมาตรฐาน\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"gdbversion","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#gdbversion","description":"ส่งคืนชื่อของฐานข้อมูลภูมิศาสตร์เวอร์ชันปัจจุบันของข้อมูลสาขาหรือข้อมูลที่กำหนดเวอร์ชัน เมื่อข้อมูลไม่ได้อยู่ในฐานข้อมูลภูมิศาสตร์แบบหลายผู้ใช้ จะส่งคืนค่าข้อความเปล่า","examples":"\n**ตัวอย่าง**\n\nส่งคืนเวอร์ชันฐานข้อมูลภูมิศาสตร์ของฟีเจอร์ทีกำหนด\n\n```arcade\nGdbVersion($feature)\n```\n\n","completion":{"label":"GdbVersion","detail":"GdbVersion(inputFeature) -> Text","insertText":"GdbVersion(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Overview of Versioning](https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/overview-of-versioning-in-arcgis-pro.htm)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"haskey","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#haskey","description":"ระบุว่าฟีเจอร์มีคีย์อินพุทหรือไม่","examples":"\n**ตัวอย่าง**\n\nส่งคืน `true` หากฟีเจอร์มีฟิลด์ที่ชื่อ `temp`\n\n```arcade\nHasKey($feature, 'temp');\n```\n\n","completion":{"label":"HasKey","detail":"HasKey(inputFeature, key) -> Boolean","insertText":"HasKey(${1:inputFeature_}, ${2:key_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](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- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.20","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue","description":"ระบุว่าฟีเจอร์มีฟิลด์ที่กำหนดหรือไม่ และฟิลด์ดังกล่าวมีค่าหรือไม่","examples":"\n**ตัวอย่าง**\n\nส่งคืนค่าเท็จ หากไม่มีคุณลักษณะฟีเจอร์ หรือว่างเปล่า\n\n```arcade\nif(HasValue($feature, \"population\")){\n  return $feature.population / AreaGeodetic($feature)\n}\n// Returns the population density if population is available\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputFeature, fieldName) -> Boolean","insertText":"HasValue(${1:inputFeature_}, ${2:fieldName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าฟีเจอร์มีฟิลด์ที่กำหนดหรือไม่ และฟิลด์ดังกล่าวมีค่าหรือไม่\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่จะตรวจสอบ\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"schema","bundle":"core","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#schema","description":"แจ้งกลับรายละเอียดสคีมาของฟีเจอร์ที่แจ้ง","examples":"","completion":{"label":"Schema","detail":"Schema(inputFeature) -> Dictionary","insertText":"Schema(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **fields**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - ส่งคืนอาร์เรย์ของพจนานุกรมที่บรรยายเกี่ยวกับฟิลด์ใน Feature พจนานุกรมแต่ละชุดจะระบุฟิลด์ `name`, `alias`, `type`, `subtype`, `domain`, `length` และสถานะ `editable` กับ `nullable`\n- **geometryType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทเรขาคณิตสำหรับฟีเจอร์ใน Feature ส่งคืน `esriGeometryNull` สำหรับตารางที่ไม่มีเรขาคณิต  \nค่าที่เป็นไปได้: `esriGeometryPoint`, `esriGeometryLine`, `esriGeometryPolygon`, `esriGeometryNull`\n- **globalIdField**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ฟิลด์ ID ส่วนกลางของฟีเจอร์ แจ้งกลับเป็น `\"\"` หากไม่ได้เปิดใช้ globalId\n- **objectIdField**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ฟิลด์ objectId ของ Feature"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"subtypecode","bundle":"core","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#subtypecode","description":"แจ้งกลับรหัสประเภทย่อยสำหรับฟีเจอร์ที่ระบุ","examples":"\n**ตัวอย่าง**\n\nแจ้งกลับรหัสของประเภทย่อย\n\n```arcade\n// feature has a field named `assetGroup`\n// with the subtype described in the Subtypes function example\nSubtypeCode($feature)  // returns 1\n```\n\n","completion":{"label":"SubtypeCode","detail":"SubtypeCode(inputFeature) -> Number,Text,Date","insertText":"SubtypeCode(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"subtypename","bundle":"core","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#subtypename","description":"แจ้งกลับชื่อประเภทย่อยสำหรับฟีเจอร์ที่ระบุ","examples":"\n**ตัวอย่าง**\n\nแจ้งกลับชื่อของประเภทย่อย\n\n```arcade\n// feature has a field named `assetGroup`\n// with the subtype described in the Subtypes function example\nSubtypeName($feature) // returns \"Single Phase\"\n```\n\n","completion":{"label":"SubtypeName","detail":"SubtypeName(inputFeature) -> Text","insertText":"SubtypeName(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"subtypes","bundle":"core","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/feature_functions/#subtypes","description":"แจ้งกลับพจนานุกรมค่าลงรหัสประเภทย่อย แจ้งกลับเป็น 'null' เมื่อไม่ได้เปิดใช้ประเภทย่อยในชั้นข้อมูลดังกล่าว","examples":"\n**ตัวอย่าง**\n\nแจ้งกลับประเภทย่อยพร้อมค่าลงรหัสจากฟีเจอร์\n\n```arcade\nSubtypes($feature)\n// returns the following dictionary\n// {\n//   subtypeField: 'assetGroup',\n//   subtypes: [\n//     { name: \"Unknown\", code: 0 },\n//     { name: \"Single Phase\", code: 1 },\n//     { name: \"Two Phase\", code: 2 }\n//   ]\n// }\n```\n\n","completion":{"label":"Subtypes","detail":"Subtypes(inputFeature) -> Dictionary","insertText":"Subtypes(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแจ้งกลับพจนานุกรมค่าลงรหัสประเภทย่อย แจ้งกลับเป็น 'null' เมื่อไม่ได้เปิดใช้ประเภทย่อยในชั้นข้อมูลดังกล่าว\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์สำหรับสืบค้นประเภทย่อย\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nแจ้งกลับพจนานุกรมที่ระบุโดยคุณสมบัติต่อไปนี้\n\n- **subtypeField**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ฟิลด์ที่มีประเภทย่อย\n- **subtypes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)&gt; - อะเรพจนานุกรมที่ระบุประเภทย่อย แต่ละพจนานุกรมจะมีคุณสมบัติ `code` ซึ่งมีค่าฟิลด์จริงอยู่ และคุณสมบัติ `name` ที่มีคำอธิบายค่าแบบเป็นมิตรกับผู้ใช้ (เช่น `{ code: 1, name: \"pavement\" }`)"}},"parametersInfo":{"min":1,"max":1}}]},{"id":"geometry_functions","title":"ฟังก์ชันเรขาคณิต","items":[[{"type":"function","name":"angle","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#angle1","description":"ส่งคืนมุมเลขคณิตของเส้นระหว่างสองจุดในรูปแบบองศา (0 - 360) มุมจะถูกวัดในทิศทวนเข็มนาฬิกาแบบสัมพันธ์กับทิศตะวันออก ตัวอย่างเช่น มุม 90 องศาจะหันไปทางทิศเหนือ\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอร์จุดได้แทนเรขาคณิตจุดใด ๆ หรือทั้งสองจุด _หากจุดเหมือนกัน จะส่งคืนมุม 0 องศา_","examples":"\n**ตัวอย่าง**\n\nส่งคืนมุมจากจุดไปยังฟีเจอร์ ในรูปแบบองศา\n\n```arcade\nvar pointA = Point({ \"x\":976259, \"y\":8066511, \"spatialReference\": { \"wkid\": 3857 } });\nAngle(pointA, $feature)\n```\n\n","completion":{"label":"Angle","detail":"Angle(pointA, pointB) -> Number","insertText":"Angle(${1:pointA_}, ${2:pointB_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนมุมเลขคณิตของเส้นระหว่างสองจุดในรูปแบบองศา (0 - 360) มุมจะถูกวัดในทิศทวนเข็มนาฬิกาแบบสัมพันธ์กับทิศตะวันออก ตัวอย่างเช่น มุม 90 องศาจะหันไปทางทิศเหนือ\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอร์จุดได้แทนเรขาคณิตจุดใด ๆ หรือทั้งสองจุด _หากจุดเหมือนกัน จะส่งคืนมุม 0 องศา_\n\n**พารามิเตอร์**\n\n- **pointA**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดหรือฟีเจอร์แรกที่ใช้ในการคำนวณมุม\n- **pointB**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดหรือฟีเจอร์ที่สองที่ใช้ในการคำนวณมุม\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"angle","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#angle2","description":"ส่งคืนมุมเลขชคณิตของเส้นระหว่างสามจุดในรูปแบบองศา (0 - 360) มุมจะถูกวัดรอบ ๆ pointB ในทิศทวนเข็มนาฬิกา จาก pointA ถึง pointC\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอน์จุดแทนหนึ่งในเรขาคณิตจุดหรือทั้งหมดได้ _หากจุดเหมือนกัน จะส่งคืนมุม 0 หรือ 180 องศา (ขึ้นอยู่กับเลขคณิตภายใน)_","examples":"\n**ตัวอย่าง**\n\nส่งคืนมุมระหว่างสองจุดรอบ ๆ ฟีเจอร์ ในรูปแบบองศา\n\n```arcade\nvar pointA = Point({ \"x\":976259, \"y\":8066511, \"spatialReference\": { \"wkid\": 3857 } });\nvar pointC = Point({ \"x\":308654, \"y\":9005421, \"spatialReference\": { \"wkid\": 3857 } });\nAngle(pointA, $feature, pointC)\n```\n\n","completion":{"label":"Angle","detail":"Angle(pointA, pointB, pointC) -> Number","insertText":"Angle(${1:pointA_}, ${2:pointB_}, ${3:pointC_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนมุมเลขชคณิตของเส้นระหว่างสามจุดในรูปแบบองศา (0 - 360) มุมจะถูกวัดรอบ ๆ pointB ในทิศทวนเข็มนาฬิกา จาก pointA ถึง pointC\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอน์จุดแทนหนึ่งในเรขาคณิตจุดหรือทั้งหมดได้ _หากจุดเหมือนกัน จะส่งคืนมุม 0 หรือ 180 องศา (ขึ้นอยู่กับเลขคณิตภายใน)_\n\n**พารามิเตอร์**\n\n- **pointA**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดหรือฟีเจอร์แรกที่ใช้ในการคำนวณมุม\n- **pointB**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดหรือฟีเจอร์ที่สองที่ใช้ในการคำนวณมุม\n- **pointC**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดหรือฟีเจอร์ที่สามที่ใช้ในการคำนวณมุม\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":3,"max":3}}],{"type":"function","name":"area","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#area","description":"ส่งคืนพื้นที่ของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงพื้นที่ของลักษณะภูมิประเทศเป็นตารางเมตร\n\n```arcade\nArea($feature, 'square-meters')\n```\n\n","completion":{"label":"Area","detail":"Area(polygon, unit?) -> Number","insertText":"Area(${1:polygon_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพื้นที่ของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **polygon**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - โพลีกอนหรือฟีเจอร์ที่จะใช้คำนวณพื้นที่เชิงระนาบ\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ก้_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________ษฺ. ก้_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________ษฺ. ก้_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________ษฺ.  \nก้_Possible values: `acres` | `hectares` | `square-centimeters` | `square-decimeters` | `square-feet` | `square-inches` | `square-kilometers` | `square-meters` | `square-miles`  | `square-millimeters` | `square-us-feet` | `square-us-miles`  | `square-yards`_________________________________________________________________________________________________________________________________ษฺ  \n\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [AreaGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#areageodetic)\n* [Available numeric codes for unit parameter](https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7922.html#i-heading-remarks)\n"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"areageodetic","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#areageodetic","description":"ส่งคืนพื้นที่จีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด ส่วนนี้จะเป็นการวัดพื้นที่ที่น่าเชื่อถือว่า `Area()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงพื้นที่บนสัณฐานโลกเป็นตารางเมตร\n\n```arcade\nAreaGeodetic($feature, 'square-meters')\n```\n\n","completion":{"label":"AreaGeodetic","detail":"AreaGeodetic(polygon, unit?, curveType?) -> Number","insertText":"AreaGeodetic(${1:polygon_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพื้นที่จีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด ส่วนนี้จะเป็นการวัดพื้นที่ที่น่าเชื่อถือว่า `Area()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **polygon**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - โพลีกอนหรือฟีเจอร์ที่จะใช้คำนวณพื้นที่จีโอเดติค\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ก้_This may be one of the possible values below, or one of the numeric codes listed in the additional resources section below_______________________________________________________________ษฺ. ก้_For the visualization, labeling, and popup profiles, the default unit is the map's spatial reference____________________________________________________ษฺ. ก้_In other profiles, like field calculation, the default is based on the spatial reference of the data_____________________________________________________ษฺ.  \nก้_Possible values: `acres` | `hectares` | `square-centimeters` | `square-decimeters` | `square-feet` | `square-inches` | `square-kilometers` | `square-meters` | `square-miles`  | `square-millimeters` | `square-us-feet` | `square-us-miles`  | `square-yards`________________________________________________________________________________________________________________________________ษฺ\n- **curveType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้__Since 1.31_ The type of curve to use for the geodetic area calculation_____________________________________ษฺ. ก้_If no value is provided, the default is `Geodesic`____________________________ษฺ.  \nก้_Possible values___________________ษฺ:  \n  ก้_- `Geodesic` - Defined by the shortest distance between two points on an ellipsoid_____________________________________________ษฺ.  \n  ก้_- `GreatElliptic` - Defined by the intersection of a plane that contains the center of the spheroid and the spheroid surface and passes through two points. This is also known as a great circle when a sphere is used. It is not necessarily the shortest path between two points_____________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `Loxodrome` - Defined by the line of constant bearing, or azimuth, between two points. It represents a rhumb-line path on the earth that crosses each meridian at the same acute angle, thus forming a spiral that converges on the north or south pole. The Mercator projection shows loxodromes as straight lines______________________________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `NormalSection` - Defined by the intersection of a plane that passes through two points on the surface of the spheroid and is perpendicular to the surface at the first point. It is not necessarily the shortest path between two points_________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `ShapePreserving` - The segment shape is preserved in the projection where it is defined. This is often used in situations where maintaining the visual representation of a feature is crucial, like when working with boundaries or coastlines___________________________________________________________________________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Area()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#area)\n* [Available numeric codes for unit parameter](https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7922.html#i-heading-remarks)\n"}},"parametersInfo":{"min":1,"max":3}},[{"type":"function","name":"bearing","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#bearing1","description":"ส่งคืนมุมทางภูมิศาสตร์ของเส้นระหว่างสองจุดในรูปแบบองศา (0 - 360) แบริ่งจะถูกวัดในทิศตามเข็มนาฬิกาแบบสัมพันธ์กับทิศเหนือ เช่น แบริง 225 องศาจะแทนการกำหนดทิศทางตะวันตกเฉียงใต้\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอน์จุดแทนหนึ่งในเรขาคณิตจุดหรือทั้งสองได้ _หากจุดเหมือนกัน จะส่งคืนมุม 0_","examples":"\n**ตัวอย่าง**\n\nส่งคืนแบริงจากจุดถึงฟีเจอร์ ในรูปแบบองศา\n\n```arcade\nvar pointA = Point({ \"x\":976259, \"y\":8066511, \"spatialReference\": { \"wkid\": 3857 } });\nBearing(pointA,$feature)\n```\n\n","completion":{"label":"Bearing","detail":"Bearing(pointA, pointB) -> Number","insertText":"Bearing(${1:pointA_}, ${2:pointB_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนมุมทางภูมิศาสตร์ของเส้นระหว่างสองจุดในรูปแบบองศา (0 - 360) แบริ่งจะถูกวัดในทิศตามเข็มนาฬิกาแบบสัมพันธ์กับทิศเหนือ เช่น แบริง 225 องศาจะแทนการกำหนดทิศทางตะวันตกเฉียงใต้\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอน์จุดแทนหนึ่งในเรขาคณิตจุดหรือทั้งสองได้ _หากจุดเหมือนกัน จะส่งคืนมุม 0_\n\n**พารามิเตอร์**\n\n- **pointA**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดแรกที่ใช้ในการคำนวณแบริ่ง\n- **pointB**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่สองที่ใช้ในการคำนวณแบริ่ง\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"bearing","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#bearing2","description":"ส่งคืนมุมทางภูมิศาสตร์ของเส้นระหว่างสามจุดในรูปแบบองศา (0 - 360) แบริงจะถูกวัดรอบๆ pointB ในทิศตามเข็มนาฬิกาจาก pointA ถึง pointC\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอร์จุดได้แทนเรขาคณิตจุดใด ๆ หรือทั้งหมดได้ _หากจุดเหมือนกัน จะส่งคืนมุม 0 หรือ 180 องศา (ขึ้นอยู่กับเลขคณิตภายใน)_","examples":"\n**ตัวอย่าง**\n\nส่งคืนแบริงระหว่างสองจุดรอบ ๆ ฟีเจอร์ ในรูปแบบองศา\n\n```arcade\nvar pointA = Point({ \"x\":976259, \"y\":8066511, \"spatialReference\": { \"wkid\": 3857 } });\nvar pointC = Point({ \"x\":308654, \"y\":9005421, \"spatialReference\": { \"wkid\": 3857 } });\nBearing(pointA,$feature,pointC)\n```\n\n","completion":{"label":"Bearing","detail":"Bearing(pointA, pointB, pointC) -> Number","insertText":"Bearing(${1:pointA_}, ${2:pointB_}, ${3:pointC_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนมุมทางภูมิศาสตร์ของเส้นระหว่างสามจุดในรูปแบบองศา (0 - 360) แบริงจะถูกวัดรอบๆ pointB ในทิศตามเข็มนาฬิกาจาก pointA ถึง pointC\n\nจะพิจารณาเฉพาะระนาบ x-y ในการวัด จะไม่สนใจพิกัด z ใด ๆ สามารถใช้ฟีเจอร์จุดได้แทนเรขาคณิตจุดใด ๆ หรือทั้งหมดได้ _หากจุดเหมือนกัน จะส่งคืนมุม 0 หรือ 180 องศา (ขึ้นอยู่กับเลขคณิตภายใน)_\n\n**พารามิเตอร์**\n\n- **pointA**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดแรกที่ใช้ในการคำนวณแบริ่ง\n- **pointB**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่สองที่ใช้ในการคำนวณแบริ่ง\n- **pointC**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่สามที่ใช้ในการคำนวณแบริ่ง\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":3,"max":3}}],{"type":"function","name":"buffer","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#buffer","description":"แสดงผลบัฟเฟอร์ในเชิงระนาบ (หรือแบบยูคลิด (Euclidean)) ตามระยะทางเฉพาะเจาะจงรอบรูปทรงเรขาคณิตที่นำเข้า นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงรูปหลายเหลี่ยมที่หมายถึงบัฟเฟอร์ 1/2-ไมล์ รอบรูปทรงเรขาคณิตที่นำเข้า\n\n```arcade\nBuffer($feature, 0.5, 'miles')\n```\n\n","completion":{"label":"Buffer","detail":"Buffer(inputGeometry, distance, unit?) -> Polygon","insertText":"Buffer(${1:inputGeometry_}, ${2:distance_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแสดงผลบัฟเฟอร์ในเชิงระนาบ (หรือแบบยูคลิด (Euclidean)) ตามระยะทางเฉพาะเจาะจงรอบรูปทรงเรขาคณิตที่นำเข้า นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\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ค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [BufferGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#buffergeodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"buffergeodetic","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#buffergeodetic","description":"ส่งคืนบัฟเฟอร์สัณฐานโลกตามระยะทางที่กำหนดรอบรูปทรงเรขาคณิตอินพุต นี่คือการวัดแบบจีโอเดสิค ซึ่งจะคำนวณระยะทางบนรูปอีลิปซอยด์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงรูปหลายเหลี่ยมที่หมายถึงบัฟเฟอร์ 1/2-ไมล์ รอบรูปทรงเรขาคณิตที่นำเข้า\n\n```arcade\nBufferGeodetic($feature, 0.5, 'miles')\n```\n\n","completion":{"label":"BufferGeodetic","detail":"BufferGeodetic(inputGeometry, distance, unit?, curveType?) -> Polygon","insertText":"BufferGeodetic(${1:inputGeometry_}, ${2:distance_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนบัฟเฟอร์สัณฐานโลกตามระยะทางที่กำหนดรอบรูปทรงเรขาคณิตอินพุต นี่คือการวัดแบบจีโอเดสิค ซึ่งจะคำนวณระยะทางบนรูปอีลิปซอยด์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะบัฟเฟอร์\n- **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ค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n- **curveType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้__Since 1.31_ The type of curve to use for the geodetic buffer calculation______________________________________ษฺ. ก้_If no value is provided, the default is `Geodesic`____________________________ษฺ.  \nก้_Possible values___________________ษฺ:  \n  ก้_- `Geodesic` - Defined by the shortest distance between two points on an ellipsoid_____________________________________________ษฺ.  \n  ก้_- `GreatElliptic` - Defined by the intersection of a plane that contains the center of the spheroid and the spheroid surface and passes through two points. This is also known as a great circle when a sphere is used. It is not necessarily the shortest path between two points_____________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `Loxodrome` - Defined by the line of constant bearing, or azimuth, between two points. It represents a rhumb-line path on the earth that crosses each meridian at the same acute angle, thus forming a spiral that converges on the north or south pole. The Mercator projection shows loxodromes as straight lines______________________________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `NormalSection` - Defined by the intersection of a plane that passes through two points on the surface of the spheroid and is perpendicular to the surface at the first point. It is not necessarily the shortest path between two points_________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `ShapePreserving` - The segment shape is preserved in the projection where it is defined. This is often used in situations where maintaining the visual representation of a feature is crucial, like when working with boundaries or coastlines___________________________________________________________________________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Buffer()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#buffer)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"centroid","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#centroid","description":"ส่งคืนจุดศูนย์กลางของเรขาคณิตอินพุท","examples":"\n**ตัวอย่าง**\n\nแสดงจุดศูนย์กลางของรูปหลายเหลี่ยมตามที่กำหนดให้\n\n```arcade\nCentroid($feature)\n```\n\nส่งคืนจุดศูนย์กลางของโพลีกอนริงที่กำหนด\n\n```arcade\nvar ringPoints = Geometry($feature).rings[0];\nCentroid(ringPoints);\n```\n\nส่งคืนจุดศูนย์กลางของรูปหลายเหลี่ยมหรือเส้นหลายรูปแบบที่กำหนด แล้วตรวจสอบให้แน่ใจว่าค่าดังกล่าวอยู่ภายในเรขาคณิตอินพุท\n\n```arcade\nCentroid($feature, 'labelPoint')\n```\n\n","completion":{"label":"Centroid","detail":"Centroid(polygon, algorithm?) -> Point","insertText":"Centroid(${1:polygon_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจุดศูนย์กลางของเรขาคณิตอินพุท\n\n**พารามิเตอร์**\n\n- **polygon**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - โพลีกอนหรืออาร์เรย์ของจุดที่ใช้ในการสร้างโพลีกอน\n- **algorithm** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _เริ่มตั้งแต่ 1.29_ วิธีการระบุตำแหน่งของจุดศูนย์กลาง ค่าที่เป็นไปได้:\n\n  - `geometric`: (ค่าเริ่มต้น) ส่งคืนจุดศูนย์กลางที่แท้จริงของเรขาคณิต จุดศูนย์กลางเรขาคณิตสำหรับอาร์เรย์ของจุด จะส่งคืนค่าเฉลี่ยของจุดทั้งหมด โดยที่สำหรับรูปหลายเหลี่ยม จุดศูนย์กลางเรขาคณิตจะแทนพื้นที่ของรูปทรง สำหรับรูปหลายเหลี่ยมแบบไม่ปกติ จุดศูนย์กลางเรขาคณิตอาจไม่อยู่ภายในรูปหลายเหลี่ยมโดยตรง สำหรับเส้นหลายรูปแบบ จุดศูนย์กลางเรขาคณิตอาจไม่อยู่บนเส้นโดยตรง\n\n  - `labelPoint`: สำหรับรูปหลายเหลี่ยม ตรวจสอบให้แน่ใจว่าจุดศูนย์กลางที่ส่งคืนจากฟังก์ชันนี้ อยู่ภายในรูปหลายเหลี่ยมโดยตรง สำหรับเส้นหลายรูปแบบ ตรวจสอบให้แน่ใจว่าจุดศูนย์กลางนั้นอยู่บนเส้นโดยตรง\n\n**ส่งคืนค่า**: [Point](https://developers.arcgis.com/arcade/guide/types/#point)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"clip","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#clip","description":"รูปทรงเรขาคณิตที่ถูกขริบจากรูปทรงเรขาคณิตเป้าหมายตามลักษณะเปลือกหุ้ม\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงพื้นที่ของรูปทรงเรขาคณิตที่ถูกคลิปออก\n\n```arcade\nvar envelope = Extent({ ... });\nArea(Clip($feature, envelope), 'square-miles');\n```\n\n","completion":{"label":"Clip","detail":"Clip(inputGeometry, envelope) -> Geometry","insertText":"Clip(${1:inputGeometry_}, ${2:envelope_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nรูปทรงเรขาคณิตที่ถูกขริบจากรูปทรงเรขาคณิตเป้าหมายตามลักษณะเปลือกหุ้ม\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะตัด\n- **envelope**: [Extent](https://developers.arcgis.com/arcade/guide/types/#extent) - ส่วนขยายที่ใช้ในการตัด `geometry`\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"contains","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#contains","description":"หากในรูปทรงเรขาคณิตยังมีรูปทรงเรขาคณิตอื่นอีก ให้ระบุด้วย\n\nก้_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________ษฺ. ก้_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงถ้ามีฟีเจอร์อยู่ในรูปหลายเหลี่ยมที่กำหนดให้\n\n```arcade\nvar container = Polygon({ ... });\nContains(containerGeometry, $feature);\n```\n\n","completion":{"label":"Contains","detail":"Contains(containerGeometry, insideGeometry) -> Boolean","insertText":"Contains(${1:containerGeometry_}, ${2:insideGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nหากในรูปทรงเรขาคณิตยังมีรูปทรงเรขาคณิตอื่นอีก ให้ระบุด้วย\n\nก้_**Be aware that using `$feature` as input to this function will yield results only as precise as the view's scale resolution________________________________________________________________ษฺ. ก้_Therefore values returned from expressions using this function may change after zooming between scales.**______________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **containerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่ทดสอบหาความสัมพันธ์ 'contains' กับ `insideGeometry` มองเรขาคณิตนี้เป็นสิ่งที่อาจเป็น 'container' ของ `insideGeometry`\n- **insideGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตถูกทดสอบหาความสัมพันธ์ของ 'within' กับ `containerGeometry`\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Contains](https://esri.github.io/geometry-api-java/doc/Contains.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"convertdirection","bundle":"geometry","sinceVersion":"1.13","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#convertdirection","description":"สามารถตีความมุมได้หลากหลาย และสามารถใช้เพื่อแสดงตัวเลข ข้อความ หรือเวลฟอร์มอาร์เรย์ ฟังก์ชันนี้จะแปลงการแสดงข้อมูลรูปแบบหนึ่งเป็นอีกแบบ\n\nค่าอินพุทถูกบรรยายด้วยพจนานุกรมที่ระบุประเภทของมุมและ ประเภทของทิศทาง หาก `angleType` และ `directionType` ไม่เหมาะสำหรับอินพุท การแปลงจะล้มเหลว\n\nค่าเอาท์พุทที่ต้องการ จะถูกบรรยายโดยพจนานุมกรมที่ระบุประเภทเอาท์พุท ประเภทมุม, ประเภททิศทาง และรูปแบบทางเลือกสำหรับเอาท์พุทข้อความ\n\nหากประเภทเอาท์พุทเป็น `value`:  \n - อาร์เรย์จะถูกส่งคืนสำหรับประเภทมุม `dms` หรือประเภททิศทาง `quadrant`  \n - ตัวเลขจะถูกส่คืนสำหรับกรณีอื่นทั้งหมด\n\nหากประเภทเอาท์พุทเป็น `text`, แพ็ดดิงเริ่มต้นและตัวคั่นจะถูกนำมาใช้ ยกเว้น ในกรณีที่มีการระบุคุณสมบัติทางเลือก `format`  \n`format` จะควบคุมลำดับ การเว้นระยะ แพ็ดดิง และตัวคั่นในข้อความเอาท์พุท  \nชุดอักขระสำหรับอักขระตัวระบุรูปแบบก่อนจุดทศนิยมใช้ระบุแพดดิ้งขั้นต่ำ (เช่น 'DDD -> 000')  \nสตริงของอักขระจัดรูปแบบที่อยู่หลังจุดทศนิยม จะระบุถึงความแม่นยำ (เช่น `D.DD -> 0.00`)\n\nอักขระ `format` ที่รองรับ:  \n- `D` - องศา  \n- `R` - เรเดียน  \n- `G` - เกรเดียน  \n- `d` - องศา DMS  \n- `m` - ลิปดา DMS  \n- `s` - ฟิลิปดา DMS  \n- `P` - เส้นเมริเดียนแบบยาว (เช่น `North` กับ `South`)  \n- `p` - เส้นเมริเดียนแบบสั้น (เช่น `N` กับ `S`)  \n- `B` - ทิศทางแบบยาว (เช่น `East` กับ `West`)  \n- `b` - ทิศทางแบบสั้น (เช่น `E` กับ `W`)  \n- `[ ]` - อักขระ Escape  \n\n\nสำหรับการจัดรูปแบบ `dms` หากไม่ได้ใช้งาน `s` จะส่งผลให้ `m` ถูกปัดเศษเป็นลิปดาที่ใเกล้เคียงที่สุด และหาก 'm' ไม่ได้ใช้ 'd' จะถูกปัดเศษ","examples":"\n**ตัวอย่าง**\n\nตัวอย่างกรณีที่ 'outputType' เป็น 'value'\n\n```arcade\nConvertDirection( 30, {directionType:'North', angleType: 'Degrees'}, {directionType:'Quadrant', angleType: 'DMS', outputType: 'value'})\n// returns ['N', 30, 0, 0, 'E']\n \nConvertDirection( 25.99, {directionType:'North', angleType : 'Gradians'}, {directionType:'North', outputType: 'value', angleType : 'Gradians'})\n// returns 25.99\n \nConvertDirection( 1, {directionType:'North', angleType: 'DEGREES'}, {directionType: 'Quadrant', angleType: 'Degrees', outputType: 'value'})\n// returns ['N',1,'E']\n \nConvertDirection( 0.9, {directionType: 'North', angleType: 'degrees'}, {directionType:'North', angleType: 'gradians', outputType: 'value'})\n// returns 1.0 \n \nConvertDirection( 180.0, {directionType:'North', angleType: 'degrees'}, {directionType:'North', angleType: 'radians', outputType : 'value'})\n// returns PI\n```\n\nตัวอย่างกรณีที่ 'outputType' เป็น 'text'\n\n```arcade\nConvertDirection( 25.34, {directionType: 'North', angleType: 'DEGREES'}, {directionType:'North', outputType: 'text', format: 'DDDD.D'})\n// returns '0025.3'\n \nConvertDirection( 25.34, {directionType: 'North', angleType: 'DEGREES'}, {directionType:'North', outputType: 'text', format: 'R'})\n// returns '0'\n \nConvertDirection( 25.34, {directionType: 'North', angleType: 'DEGREES'}, {directionType:'North', outputType: 'text', format: '[DD.DD]'})\n// returns 'DD.DD'\n \nConvertDirection( 25.34, {directionType:'North', angleType: 'DEGREES'}, {directionType:'quadrant', outputType: 'text', format: 'P B'})\n// returns 'North East'\n \nConvertDirection( [001,01,59.99], {directionType:'North', angleType: 'DMS'}, {directionType:'North', angleType: 'DMS', outputType: 'text', format: 'dddA mm[B] ssC'})\n// returns '001A 02B 00C'\n```\n\n","completion":{"label":"ConvertDirection","detail":"ConvertDirection(input, inputSpec, outputSpec) -> Array<Number|Text>,Number,Text","insertText":"ConvertDirection(${1:input_}, ${2:inputSpec_}, ${3:outputSpec_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.13](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสามารถตีความมุมได้หลากหลาย และสามารถใช้เพื่อแสดงตัวเลข ข้อความ หรือเวลฟอร์มอาร์เรย์ ฟังก์ชันนี้จะแปลงการแสดงข้อมูลรูปแบบหนึ่งเป็นอีกแบบ\n\nค่าอินพุทถูกบรรยายด้วยพจนานุกรมที่ระบุประเภทของมุมและ ประเภทของทิศทาง หาก `angleType` และ `directionType` ไม่เหมาะสำหรับอินพุท การแปลงจะล้มเหลว\n\nค่าเอาท์พุทที่ต้องการ จะถูกบรรยายโดยพจนานุมกรมที่ระบุประเภทเอาท์พุท ประเภทมุม, ประเภททิศทาง และรูปแบบทางเลือกสำหรับเอาท์พุทข้อความ\n\nหากประเภทเอาท์พุทเป็น `value`:  \n - อาร์เรย์จะถูกส่งคืนสำหรับประเภทมุม `dms` หรือประเภททิศทาง `quadrant`  \n - ตัวเลขจะถูกส่คืนสำหรับกรณีอื่นทั้งหมด\n\nหากประเภทเอาท์พุทเป็น `text`, แพ็ดดิงเริ่มต้นและตัวคั่นจะถูกนำมาใช้ ยกเว้น ในกรณีที่มีการระบุคุณสมบัติทางเลือก `format`  \n`format` จะควบคุมลำดับ การเว้นระยะ แพ็ดดิง และตัวคั่นในข้อความเอาท์พุท  \nชุดอักขระสำหรับอักขระตัวระบุรูปแบบก่อนจุดทศนิยมใช้ระบุแพดดิ้งขั้นต่ำ (เช่น 'DDD -> 000')  \nสตริงของอักขระจัดรูปแบบที่อยู่หลังจุดทศนิยม จะระบุถึงความแม่นยำ (เช่น `D.DD -> 0.00`)\n\nอักขระ `format` ที่รองรับ:  \n- `D` - องศา  \n- `R` - เรเดียน  \n- `G` - เกรเดียน  \n- `d` - องศา DMS  \n- `m` - ลิปดา DMS  \n- `s` - ฟิลิปดา DMS  \n- `P` - เส้นเมริเดียนแบบยาว (เช่น `North` กับ `South`)  \n- `p` - เส้นเมริเดียนแบบสั้น (เช่น `N` กับ `S`)  \n- `B` - ทิศทางแบบยาว (เช่น `East` กับ `West`)  \n- `b` - ทิศทางแบบสั้น (เช่น `E` กับ `W`)  \n- `[ ]` - อักขระ Escape  \n\n\nสำหรับการจัดรูปแบบ `dms` หากไม่ได้ใช้งาน `s` จะส่งผลให้ `m` ถูกปัดเศษเป็นลิปดาที่ใเกล้เคียงที่สุด และหาก 'm' ไม่ได้ใช้ 'd' จะถูกปัดเศษ\n\n**พารามิเตอร์**\n\n- **input**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text) - การนำเสนอแบริ่งแบบต้นฉบับ ประเภท \"ข้อมูลขาเข้า\" และค่าของ 'inputSpec' เป็นตัวกำหนดการจัดแบ่งข้อมูลที่ป้อน\n- **inputSpec**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - มีข้อมูลเกี่ยวกับการแปลความหมายข้อมูลขาเข้า\n\n  - **angleType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุหน่วยมุมของข้อมูลขาเข้า ค่าที่รองรับ: `DEGREES`, `DMS`, `RADIANS`, `GONS`, `GRADIANS`\n  - **directionType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุเส้นเมริเดียนแบริ่งข้อมูลขาเข้าและทิศทาง ค่าที่รองรับ: `NORTH`, `SOUTH`, `POLAR`, `QUADRANT`\n- **outputSpec**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - มีข้อมูลเกี่ยวกับการกำหนดรูปแบบข้อมูลขาออก\n\n  - **outputType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทข้อมูลขาออกของส่วนควบคุม ค่าที่รองรับ: `value`, `text`\n  - **angleType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - บรรยายหน่วยมุมเอาท์พุท ค่าที่รองรับ: `DEGREES`, `DMS`, `RADIANS`, `GONS`, `GRADIANS`\n  - **directionType**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ระบุเส้นเมริเดียนแบริ่งข้อมูลขาออกและทิศทาง ค่าที่รองรับ: `NORTH`, `SOUTH`, `POLAR`, `QUADRANT`\n  - **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - การกำหนดรูปแบบข้อความของส่วนควบคุม ใช้ได้เฉพาะเมื่อ `outputType` เป็น `text`\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"convexhull","bundle":"geometry","sinceVersion":"1.19","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#convexhull","description":"คำนวณคอนเว็กซ์ฮัลล์ของเรขาคณิต คอนเว็กซ์ฮัลล์คือคอนเว็กซ์โพลีกอนที่เล็กที่สุด ซึ่งอยู่ล้อมรอบเรขาคณิต โดยปกติฮัลล์จะเป็นโพลีกอน แต่ก็สามารถเป็นโพลีไลน์หรือจุดได้ในกรณีที่มีการลดรูป\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**","examples":"\n**ตัวอย่าง**\n\nส่งคืนจำนวนเวอร์เท็กซ์ในเรขาคณิตคอนเว็กซ์ฮัลล์ของเรขาคณิตของฟีเจอร์ปัจจุบัน\n\n```arcade\nCount(ConvexHull(Geometry($feature)).Rings[0])\n```\n\nส่งคืนคอนเว็กซ์ฮัลล์ของเรขาคณิต ซึ่งมีส่วนเว้า (ที่คอนเว็กซ์ฮัลล์จะไม่สนใจ)\n\n```arcade\nvar pacman_like_shape = Polygon({\n       \"rings\": [[[1, 2], [2, 0], [1, -2], [-1, -2], [-2, -1], [-1, -1.5], [0, -1.5], [-2, 1], [-1, 2]]],\n       \"spatialReference\": { \"wkid\": 3857 }\n});\nreturn ConvexHull(pacman_like_shape).rings[0];\n// Returns the geometry [[1,2],[2,0],[1,-2],[-1,-2],[-2,-1],[-2,1],[-1,2],[1,2]]\n```\n\n","completion":{"label":"ConvexHull","detail":"ConvexHull(inputGeometry) -> Geometry","insertText":"ConvexHull(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.19](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\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"crosses","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#crosses","description":"ก้_Indicates if one geometry crosses another geometry___________________________ษฺ.\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงถ้าฟีเจอร์ไขว้กับรูปหลายเหลี่ยมที่กำหนดให้\n\n```arcade\nvar geom2 = Polygon({ ... });\nCrosses($feature, geom2);\n```\n\n","completion":{"label":"Crosses","detail":"Crosses(geometry1, geometry2) -> Boolean","insertText":"Crosses(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nก้_Indicates if one geometry crosses another geometry___________________________ษฺ.\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตที่ตัดผ่าน\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตถูกรูปทรงเรขาคณิตอื่นไขว้อยู่\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Crosses](https://esri.github.io/geometry-api-java/doc/Crosses.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"cut","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#cut","description":"แยกโพลีไลน์หรือโพลีกอนอินพุต ในตำแหน่งที่ตัดกับโพลีไลน์ สำหรับโพลีไลน์ ส่วนที่ตัดด้านซ้ายทั้งหมดจะถูกจัดกลุ่มไว้กับรูปทรงเรขาคณิตแรก ส่วนที่ตัดด้านขวาและส่วนที่ตัดโดยบังเอิญจะถูกจัดกลุ่มไว้กับรูปทรงเรขาคณิตที่สอง แต่ละส่วนที่ตัดโดยไม่มีการระบุ รวมทั้งส่วนใด ๆ ที่ไม่ถูกตัด จะได้รับการเอาท์พุทเป็นโพลีไลน์แยกต่างหาก\n\nสำหรับโพลีกอน ส่วนที่ตัดด้านซ้ายทั้งหมดจะถูกจัดกลุ่มไว้กับโพลีกอนแรก ส่วนที่ตัดด้านขวาทั้งหมดจะถูกจัดกลุ่มไว้กับโพลีกอนที่สอง และแต่ละส่วนที่ตัดโดยไม่มีการระบุ รวมทั้งส่วนใดๆ ที่เหลืออยู่ภายหลังการตัด จะได้รับการเอาท์พุทเป็นโพลีกอนแยกต่างหาก หากไม่ส่งคืนการตัดใดๆ เลย อาร์เรย์จะว่างเปล่า การตัดโดยไม่มีการระบุจะเกิดขึ้นเฉพาะเมื่อการเกิดตัดด้านซ้ายหรือการตัดด้านขวาขึ้น และมีส่วนที่เหลือภายหลังการตัด หรือการตัดนั้นเชื่อมโยงอยู่กับด้านซ้ายหรือด้านขวาของตัวตัด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nตัดรูปทรงเรขาคณิตของลักษณะภูมิประเทศด้วยเส้นโพลีไลน์ที่กำหนดให้\n\n```arcade\nvar cutter = Polyline({ ... });\nCut($feature, cutter));\n```\n\n","completion":{"label":"Cut","detail":"Cut(polylineOrPolygon, cutter) -> Array<Geometry>","insertText":"Cut(${1:polylineOrPolygon_}, ${2:cutter_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแยกโพลีไลน์หรือโพลีกอนอินพุต ในตำแหน่งที่ตัดกับโพลีไลน์ สำหรับโพลีไลน์ ส่วนที่ตัดด้านซ้ายทั้งหมดจะถูกจัดกลุ่มไว้กับรูปทรงเรขาคณิตแรก ส่วนที่ตัดด้านขวาและส่วนที่ตัดโดยบังเอิญจะถูกจัดกลุ่มไว้กับรูปทรงเรขาคณิตที่สอง แต่ละส่วนที่ตัดโดยไม่มีการระบุ รวมทั้งส่วนใด ๆ ที่ไม่ถูกตัด จะได้รับการเอาท์พุทเป็นโพลีไลน์แยกต่างหาก\n\nสำหรับโพลีกอน ส่วนที่ตัดด้านซ้ายทั้งหมดจะถูกจัดกลุ่มไว้กับโพลีกอนแรก ส่วนที่ตัดด้านขวาทั้งหมดจะถูกจัดกลุ่มไว้กับโพลีกอนที่สอง และแต่ละส่วนที่ตัดโดยไม่มีการระบุ รวมทั้งส่วนใดๆ ที่เหลืออยู่ภายหลังการตัด จะได้รับการเอาท์พุทเป็นโพลีกอนแยกต่างหาก หากไม่ส่งคืนการตัดใดๆ เลย อาร์เรย์จะว่างเปล่า การตัดโดยไม่มีการระบุจะเกิดขึ้นเฉพาะเมื่อการเกิดตัดด้านซ้ายหรือการตัดด้านขวาขึ้น และมีส่วนที่เหลือภายหลังการตัด หรือการตัดนั้นเชื่อมโยงอยู่กับด้านซ้ายหรือด้านขวาของตัวตัด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **polylineOrPolygon**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะตัด\n- **cutter**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - โพลีไลน์ที่ใช้ในการตัด `geometry`\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)&gt;"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1","description":"ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่คีย์ในเรขาคณิตไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nจุดที่มีค่า z\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nจุดที่ไม่มีค่า z\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputGeometry, key, defaultValue) -> Any","insertText":"DefaultValue(${1:inputGeometry_}, ${2:key_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่คีย์ในเรขาคณิตไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตอินพุทที่จะตรวจสอบ\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - คีย์ที่จะตรวจสอบ\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืน หากคีย์ไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่า ณ คีย์ที่ระบุ ในกรณีที่กำหนดไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2","description":"ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในคุณสมบัติที่เนสต์ของเรขาคณิตไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nวงแหวน, พิกัด, และค่า x มีอยู่ทั้งหมด และมีค่า\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n  rings: [[\n    Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n  ]],\n  hasZ: true,\n  spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"z\"], 1000)\n// returns 100\n```\n\nวงแหวนไม่มีอยู่\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n  rings: [[\n    Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n  ]],\n  hasZ: true,\n  spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",2,0,\"z\"], 1000)\n// returns 1000\n```\n\nมีวงแหวนและพิกัด แต่ไม่มีค่า m\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n  rings: [[\n    Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n  ]],\n  hasZ: true,\n  spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"m\"], 100)\n// returns 100\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputGeometry, keys, defaultValue) -> Any","insertText":"DefaultValue(${1:inputGeometry_}, ${2:keys_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่อย่างน้อยหนึ่งในคีย์ในคุณสมบัติที่เนสต์ของเรขาคณิตไม่มีอยู่ หรือค่า ณ คีย์ที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตอินพุทที่จะตรวจสอบ\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของคีย์หรือดัชนีที่จะตรวจสอบในแต่ละระดับของโครงสร้างของคอนเทนเนอร์\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืนหากอย่างน้อยหนึ่งในคีย์หรือดัชนีไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่า ณ คีย์หรือดัชนีที่ระบุ หากกำหนดค่าไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}}],{"type":"function","name":"densify","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#densify","description":"อัดแน่นข้อมูลทางเรขาคณิตโดยการแทรกเวอร์เท็กซ์เพื่อจัดทำส่วนต่าง ๆ ที่ไม่เกินกว่าช่วงที่กำหนดไว้\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนเรขาคณิตหนาแน่นที่ความยาวเซกเมนต์สูงสุด 10 ม.\n\n```arcade\nvar maxLength = 10;\nDensify($feature, maxLength, 'meters');\n```\n\n","completion":{"label":"Densify","detail":"Densify(inputGeometry, maxSegmentLength, unit?) -> Geometry","insertText":"Densify(${1:inputGeometry_}, ${2:maxSegmentLength_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nอัดแน่นข้อมูลทางเรขาคณิตโดยการแทรกเวอร์เท็กซ์เพื่อจัดทำส่วนต่าง ๆ ที่ไม่เกินกว่าช่วงที่กำหนดไว้\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเชิงเรขาคณิตขาเข้าที่จะอัดแน่น\n- **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ค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [DensifyGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#densifygeodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"densifygeodetic","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#densifygeodetic","description":"สร้างจีโอเดสิคระหว่างแต่ละเวอรเท็กซ์ของเรขาคณิตอินพุท และเพิ่มความหนาแน่นเรขาคณิตเอาท์พุท ด้วยเวอร์เท็กซ์เพิ่มเติม เพื่อสร้างเซกเมนต์ที่ไม่ยาวเกินช่วงที่กำหนด\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**","examples":"\n**ตัวอย่าง**\n\nส่งคืนเรขาคณิตหนาแน่นที่ความยาวเซกเมนต์สูงสุด 10000\n\n```arcade\nDensifyGeodetic($feature, 10000, 'meters');\n```\n\n","completion":{"label":"DensifyGeodetic","detail":"DensifyGeodetic(inputGeometry, maxSegmentLength, unit?, curveType?) -> Geometry","insertText":"DensifyGeodetic(${1:inputGeometry_}, ${2:maxSegmentLength_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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ค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n- **curveType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้__Since 1.31_ The type of curve to use for the geodetic densify calculation_______________________________________ษฺ. ก้_If no value is provided, the default is `Geodesic`____________________________ษฺ.  \nก้_Possible values___________________ษฺ:  \n  ก้_- `Geodesic` - Defined by the shortest distance between two points on an ellipsoid_____________________________________________ษฺ.  \n  ก้_- `GreatElliptic` - Defined by the intersection of a plane that contains the center of the spheroid and the spheroid surface and passes through two points. This is also known as a great circle when a sphere is used. It is not necessarily the shortest path between two points_____________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `Loxodrome` - Defined by the line of constant bearing, or azimuth, between two points. It represents a rhumb-line path on the earth that crosses each meridian at the same acute angle, thus forming a spiral that converges on the north or south pole. The Mercator projection shows loxodromes as straight lines______________________________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `NormalSection` - Defined by the intersection of a plane that passes through two points on the surface of the spheroid and is perpendicular to the surface at the first point. It is not necessarily the shortest path between two points_________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `ShapePreserving` - The segment shape is preserved in the projection where it is defined. This is often used in situations where maintaining the visual representation of a feature is crucial, like when working with boundaries or coastlines___________________________________________________________________________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Densify()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#densify)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"difference","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#difference","description":"ประมวลความแตกต่างของรูปทรงเรขาคณิตสองรูปในเชิงโทโพโลยี รูปทรงเรขาคณิตผลลัพธ์จะมาจาก `inputGeometry` ไม่ใช่ `subtractor` ขนาดของ `subtractor` จะต้องเท่ากับหรือมากกว่า `inputGeometry`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nลบพื้นที่รูปหลายเหลี่ยมออกจากฟีเจอร์\n\n```arcade\nvar subtractor = Polygon({ ... });\nDifference($feature, subtractor);\n```\n\n","completion":{"label":"Difference","detail":"Difference(inputGeometry, subtractor) -> Geometry","insertText":"Difference(${1:inputGeometry_}, ${2:subtractor_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nประมวลความแตกต่างของรูปทรงเรขาคณิตสองรูปในเชิงโทโพโลยี รูปทรงเรขาคณิตผลลัพธ์จะมาจาก `inputGeometry` ไม่ใช่ `subtractor` ขนาดของ `subtractor` จะต้องเท่ากับหรือมากกว่า `inputGeometry`\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- **subtractor**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่ถูกลบมาจาก `geometry`\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"disjoint","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#disjoint","description":"หากมีรูปทรงเรขาคณิตไม่ต่อเนื่อง (ไม่มีส่วนที่ซ้อนกันในทางใดทางหนึ่ง) กับรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงหากรูปทรงเรขาคณิตไม่มีส่วนที่ซ้อนกัน\n\n```arcade\nvar geom2 = Polygon({ ... });\nDisjoint($feature, geom2);\n```\n\n","completion":{"label":"Disjoint","detail":"Disjoint(geometry1, geometry2) -> Boolean","insertText":"Disjoint(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nหากมีรูปทรงเรขาคณิตไม่ต่อเนื่อง (ไม่มีส่วนที่ซ้อนกันในทางใดทางหนึ่ง) กับรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตฐานที่ผ่านการทดสอบหาความสัมพันธ์ 'disjoint' ถึง `geometry2`\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตเปรียบเทียบที่ผ่านการทดสอบความสัมพันธ์ 'disjoint' ถึง `geometry1`\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Disjoint](https://esri.github.io/geometry-api-java/doc/Disjoint.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"distance","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distance","description":"ส่งคืนระยะทางเชิงระนาบระหว่างสองรูปทรงเรขาคณิตในหน่วยวัดที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงระยะทางเชิงระนาบระหว่างรูปทรงเรขาคณิตสองรูปในหน่วยเมตร\n\n```arcade\nvar geom2 = Point({ ... });\nDistance($feature, geom2, 'meters')\n```\n\n","completion":{"label":"Distance","detail":"Distance(geometry1, geometry2, unit?) -> Number","insertText":"Distance(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนระยะทางเชิงระนาบระหว่างสองรูปทรงเรขาคณิตในหน่วยวัดที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - เรขาคณิตที่ใช้ในการวัดระยะทางจาก `geometry2`\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - เรขาคณิตที่ใช้ในการวัดระยะทางจาก `geometry1`\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ส่วนนี้อาจเป็นหนึ่งในค่าที่เป็นไปได้ด้านล่าง หรือหนึ่งในรหัสตัวเลขที่แสดงรายการในส่วนทรัพยากรเพิ่มเติมด้านล่าง สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [DistanceGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancegeodetic)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"distancegeodetic","bundle":"geometry","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancegeodetic","description":"คำนวณระยะทางที่สั้นที่สุดระหว่างสองจุด ตามแนววงกลมใหญ่\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","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","completion":{"label":"DistanceGeodetic","detail":"DistanceGeodetic(point1, point2, unit?, curveType?) -> Number","insertText":"DistanceGeodetic(${1:point1_}, ${2:point2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nคำนวณระยะทางที่สั้นที่สุดระหว่างสองจุด ตามแนววงกลมใหญ่\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`\n- **point2**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่ใช้ในการวัดระยะทางจาก `point1`\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ส่วนนี้อาจเป็นหนึ่งในค่าที่เป็นไปได้ด้านล่าง หรือหนึ่งในรหัสตัวเลขที่แสดงรายการในส่วนทรัพยากรเพิ่มเติมด้านล่าง สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n- **curveType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้__Since 1.31_ The type of curve to use for the geodetic distance calculation_______________________________________ษฺ. ก้_If no value is provided, the default is `Geodesic`____________________________ษฺ.  \nก้_Possible values___________________ษฺ:  \n  ก้_- `Geodesic` - Defined by the shortest distance between two points on an ellipsoid_____________________________________________ษฺ.  \n  ก้_- `GreatElliptic` - Defined by the intersection of a plane that contains the center of the spheroid and the spheroid surface and passes through two points. This is also known as a great circle when a sphere is used. It is not necessarily the shortest path between two points_____________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `Loxodrome` - Defined by the line of constant bearing, or azimuth, between two points. It represents a rhumb-line path on the earth that crosses each meridian at the same acute angle, thus forming a spiral that converges on the north or south pole. The Mercator projection shows loxodromes as straight lines______________________________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `NormalSection` - Defined by the intersection of a plane that passes through two points on the surface of the spheroid and is perpendicular to the surface at the first point. It is not necessarily the shortest path between two points_________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `ShapePreserving` - The segment shape is preserved in the projection where it is defined. This is often used in situations where maintaining the visual representation of a feature is crucial, like when working with boundaries or coastlines___________________________________________________________________________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Distance()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distance)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"distancetocoordinate","bundle":"geometry","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate","description":"ส่งคืนพิกัดตามเส้นอินพุท โดยอิงตามระยะทางที่กำหนด จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ ระยะทางที่กำหนด ระยะทางไม่รวมช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น หากไม่พบระยะทางตามเส้นอินพุท ผลลัพธ์จะเป็น `null`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนพิกัดของโพลีไลน์อินพุท โดยอิงตามค่าระยะทางที่กำหนด\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n","completion":{"label":"DistanceToCoordinate","detail":"DistanceToCoordinate(inputLine, inputDistance) -> Dictionary","insertText":"DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพิกัดตามเส้นอินพุท โดยอิงตามระยะทางที่กำหนด จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ ระยะทางที่กำหนด ระยะทางไม่รวมช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น หากไม่พบระยะทางตามเส้นอินพุท ผลลัพธ์จะเป็น `null`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เส้นหรือเส้นทางซึ่งจะค้นหาพิกัดจาก เมื่อใช้ฟีเจอร์เป็นอินพุท เรขาคณิตของฟีเจอร์ต้องเป็นโพลีไลน์\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางที่ใช้ในการค้นหาพิกัดตาม `inputLine` จากจุดเริ่มต้นของเส้น จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ ระยะทางที่กำหนด ระยะทางไม่รวมช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น \n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้ หากไม่พบระยะทางตามเส้นอินพุท ผลลัพธ์จะเป็น `null`\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - พิกัดของจุดตาม `inputLine` อิงตามค่าระยะทางที่กำหนด\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ในกรณีของอินพุทโพลีไลน์ จะได้แก่ดัชนีของเส้นทางที่ `coordinate` อยู่\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนี (สัมพันธ์กับเส้นทาง) ของเซกเมนต์เส้น ซึ่ง `coordinate` อยู่ หาก `coordinate` แสดงเวอร์เท็กซ์ของเส้นอินพุท `segmentId` จะส่งคืนดัชนีของเวอร์เท็กซ์ก่อนหน้า หาก `coordinate` เป็นเวอร์เท็กซ์แรกของ `inputLine` ค่าของ `segmentId` จะเป็น `0`"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"envelopeintersects","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#envelopeintersects","description":"ระบุว่าส่วนหุ้ม (หรือขอบเขต) ของหนึ่งเรขาคณิตตัดกับส่วนหุ้มของอีกหนึ่งเรขาคณิตหรือไม่ ในกราฟิกด้านล่าง ไฮไลท์สีแดงจะระบุถึงสถานการณ์ที่ฟังก์ชันจะส่งคืน `true`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงหากรูปทรงเรขาคณิตมีส่วนที่ซ้อนกัน\n\n```arcade\nvar geom2 = Polygon({ ... });\nEnvelopeIntersects($feature, geom2);\n```\n\n","completion":{"label":"EnvelopeIntersects","detail":"EnvelopeIntersects(geometry1, geometry2) -> Boolean","insertText":"EnvelopeIntersects(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าส่วนหุ้ม (หรือขอบเขต) ของหนึ่งเรขาคณิตตัดกับส่วนหุ้มของอีกหนึ่งเรขาคณิตหรือไม่ ในกราฟิกด้านล่าง ไฮไลท์สีแดงจะระบุถึงสถานการณ์ที่ฟังก์ชันจะส่งคืน `true`\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตถูกทดสอบหาความสัมพันธ์การซ้อนกันกับรูปทรงเรขาคณิต\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตถูกรูปทรงเรขาคณิตอื่นทับซ้อนอยู่\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"equals","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#equals","description":"ระบุว่ารูปทรงเรขาคณิตสองรูปนั้นเท่ากัน หรือมีความเทียบเท่าในเชิงภูมิศาสตร์ ตามการอ้างอิงเชิงพื้นที่และความคลาดเคลื่อนของข้อมูลที่กำหนด สามารถพิจารณาว่ารูปทรงเรขาคณิตสองรูปเท่ากันได้ โดยไม่จำเป็นต้องเป็นโคลนของกันและกัน\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `Geometry($feature)`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงหากรูปทรงเรขาคณิตเท่ากัน\n\n```arcade\nvar geom2 = Point({ ... });\nEquals(Geometry($feature), geom2);\n```\n\n","completion":{"label":"Equals","detail":"Equals(geometry1, geometry2) -> Boolean","insertText":"Equals(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่ารูปทรงเรขาคณิตสองรูปนั้นเท่ากัน หรือมีความเทียบเท่าในเชิงภูมิศาสตร์ ตามการอ้างอิงเชิงพื้นที่และความคลาดเคลื่อนของข้อมูลที่กำหนด สามารถพิจารณาว่ารูปทรงเรขาคณิตสองรูปเท่ากันได้ โดยไม่จำเป็นต้องเป็นโคลนของกันและกัน\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `Geometry($feature)`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตอินพุทแรก\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตอินพุทที่สอง\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Equals](https://esri.github.io/geometry-api-java/doc/Equals.html)\n"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"extent","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#extent1","description":"สร้างวัตถุขอบเขตจากพจนานุกรม","examples":"\n**ตัวอย่าง**\n\nสร้างวัตถุขอบเขต\n\n```arcade\nExtent({\n  xMax: -95.34,\n  xMin: -97.06138,\n  yMax: 32.837,\n  yMin: 12.003,\n  hasM: false,\n  hasZ: false,\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Extent","detail":"Extent(geometryDefinition) -> Extent","insertText":"Extent(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุขอบเขตจากพจนานุกรม\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตขอบเขต\n\n  - **xMax**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตบน หรือพิกัด x ของเรขาคณิตที่ใหญ่ที่สุดเท่าที่จะเป็นไปได้\n  - **xMin**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตล่าง หรือพิกัด x ของเรขาคณิตที่เล็กที่สุดเท่าที่จะเป็นไปได้\n  - **yMax**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตบน หรือพิกัด y ของเรขาคณิตที่ใหญ่ที่สุดเท่าที่จะเป็นไปได้\n  - **yMin**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตล่าง หรือพิกัด y ของเรขาคณิตที่เล็กที่สุดเท่าที่จะเป็นไปได้\n  - **mMax**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตบน หรือค่า m ของเรขาคณิตที่ใหญ่ที่สุดเท่าที่จะเป็นไปได้ หากตั้งค่านี้ คุณจะต้องตั้งค่า `hasM` เป็น `true`\n  - **mMin**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตล่าง หรือค่า m ของเรขาคณิตที่เล็กที่สุดเท่าที่จะเป็นไปได้ หากตั้งค่านี้ คุณจะต้องตั้งค่า `hasM` เป็น `true`\n  - **zMax**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตบน หรือค่า z ของเรขาคณิตที่ใหญ่ที่สุดเท่าที่จะเป็นไปได้ หากตั้งค่านี้ คุณจะต้องตั้งค่า `hasZ` เป็น `true`\n  - **zMin**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ขอบเขตล่าง หรือค่า z ของเรขาคณิตที่เล็กที่สุดเท่าที่จะเป็นไปได้ หากตั้งค่านี้ คุณจะต้องตั้งค่า `hasZ` เป็น `true`\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Extent](https://developers.arcgis.com/arcade/guide/types/#extent)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"extent","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#extent2","description":"ส่งคืนขอบเขตของอินพุทฟีเจอร์ โพลิกอน โพลีไลน์ หรือมัลติพอยน์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนขอบเขตของฟีเจอร์\n\n```arcade\nExtent($feature);\n```\n\n","completion":{"label":"Extent","detail":"Extent(inputGeometry) -> Extent","insertText":"Extent(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนขอบเขตของอินพุทฟีเจอร์ โพลิกอน โพลีไลน์ หรือมัลติพอยน์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์หรือเรขาคณิตที่จะรับขอบเขตจาก\n\n**ส่งคืนค่า**: [Extent](https://developers.arcgis.com/arcade/guide/types/#extent)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"extent","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#extent3","description":"สร้างวัตถุขอบเขตจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุส่วนขยาย","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","completion":{"label":"Extent","detail":"Extent(jsonDefinition) -> Extent","insertText":"Extent(${1:jsonDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุขอบเขตจากข้อความ 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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ArcGIS REST API JSON specification for Envelope objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#ENVELOPE)\n"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"generalize","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#generalize","description":"ลดจำนวนเวอร์เท็กซ์ในข้อมูลเราขาคณิตขาเข้าตามค่าเบี่ยงเบนที่ระบุ ข้อมูลเชิงเรขาคณิตระบุจุดหนึ่งจุดหรือหลายจุดจะไม่มีการเปลี่ยนแปลงใด ๆ ส่วนขยายจะถูกแปลงเป็นโพลิกอนและปรับเป็นข้อมูลทั่วไป\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแจ้งกลับเป็นข้อมูลเชิงเรขาคณิตขาเข้าเวอร์ชั่นปรับทั่วไป\n\n```arcade\n// Removes vertices so segments are no more than 100 meters from the original geometry\nGeneralize($feature, 100, true, 'meters')\n```\n\n","completion":{"label":"Generalize","detail":"Generalize(inputGeometry, maxDeviation, removeDegenerateParts?, maxDeviationUnit?) -> Geometry","insertText":"Generalize(${1:inputGeometry_}, ${2:maxDeviation_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nลดจำนวนเวอร์เท็กซ์ในข้อมูลเราขาคณิตขาเข้าตามค่าเบี่ยงเบนที่ระบุ ข้อมูลเชิงเรขาคณิตระบุจุดหนึ่งจุดหรือหลายจุดจะไม่มีการเปลี่ยนแปลงใด ๆ ส่วนขยายจะถูกแปลงเป็นโพลิกอนและปรับเป็นข้อมูลทั่วไป\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเชิงเรขาคณิตขาเข้าจะถูกปรับเป็นข้อมูลทั่วไป\n- **maxDeviation**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่าเบี่ยงเบนสูงสุดที่อนุญาตจากข้อมูลเรขาคณิตที่ปรับเป็นทั่วไปเป็นข้อมูลเชิงเรขาคณิตดั้งเดิม\n- **removeDegenerateParts** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - หากกำหนดเป็น 'true' ส่วนที่จะเสื่อมสลายของข้อมูลเชิงเรขาคณิตจะถูกลบจากข้อมูลขาออก (อาจไม่เหมาะสำหรับภาพวาด)\n- **maxDeviationUnit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดสำหรับ maxDeviation ค่าเริ่มต้นสำหรับหน่วยข้อมูลเรขาคณิตขาเข้า  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"geometry","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#geometry","description":"สร้างวัตถุ Geometry จากข้อความ JSON หรือพจนานุกรมแบบซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุเรขาคณิต ฟังก์ชันนี้อาจส่งคืนรูปทรงเรขาคณิตของฟีเจอร์อินพุตด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","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","completion":{"label":"Geometry","detail":"Geometry(inputFeature) -> Geometry","insertText":"Geometry(${1:inputFeature_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุ 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 ที่จะสร้างวัตถุรขาคณิต เริ่มตั้งแต่เวอร์ชัน 1.25, ข้อความอินพุท JSON หรือข้อกำหนดดิกชันนารีสำหรับรูปหลายเหลี่ยมหรือเส้นหลายรูปอบบ อาจมีวัตถุโค้ง ขณะดำเนินการใน ArcGIS Pro และ ArcGIS Maps SDKs for Native Apps\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ArcGIS REST API JSON specification for Geometry objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm)\n"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1","description":"ระบุว่าเรขาคณิตมีค่า ณ คีย์หรือดัชนีที่กำหนดหรือไม่","examples":"\n**ตัวอย่าง**\n\nจุดที่มีค่า z\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n  return HasValue(Geometry($feature), \"z\")\n  // returns true\n}\n```\n\nโพลีกอนด้วยคีย์ที่ไม่มีอยู่\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n  return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n  // returns false\n}\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputGeometry, key) -> Boolean","insertText":"HasValue(${1:inputGeometry_}, ${2:key_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าเรขาคณิตมีค่า ณ คีย์หรือดัชนีที่กำหนดหรือไม่\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตที่จะตรวจสอบ\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อคีย์หรือคุณสมบัติที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2","description":"ตรวจสอบว่าคุณสมบัติหรือดัชนีที่เนสต์ลึกหลายระดับในเรขาคณิต มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `true` หากคีย์และดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง","examples":"\n**ตัวอย่าง**\n\nวงแหวน, พิกัด, และค่า x มีอยู่ทั้งหมด และมีค่า\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n  rings: [[\n    Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n  ]],\n  hasZ: true,\n  spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,0,\"x\"])){\n  // if() evaluates to true, thus executing the return\n  return shape.rings[0][0].x;\n  // returns -97.06138\n}\n```\n\nวงแหวนไม่มีอยู่\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n  rings: [[\n    Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n  ]],\n  hasZ: true,\n  spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",2,0,\"x\"])){\n  // if() evaluates to false, thus not executing the return\n  return shape.rings[2][0].x;\n  // polygon only has one ring; there is not a third ring\n}\n```\n\nมีวงแหวนและพิกัด แต่ไม่มีค่า m\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n  rings: [[\n    Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n    Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n  ]],\n  hasZ: true,\n  spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,3,\"m\"])){\n  // if() evaluates to false, thus not executing the return\n  return shape.rings[0][3].m;\n  // there is a coordinate at this location, but it does not have an m value\n}\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputGeometry, keys) -> Boolean","insertText":"HasValue(${1:inputGeometry_}, ${2:keys_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตรวจสอบว่าคุณสมบัติหรือดัชนีที่เนสต์ลึกหลายระดับในเรขาคณิต มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่า ณ แต่ละระดับ ส่งคืน `true` หากคีย์และดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - พจนานุกรมหรือฟีเจอร์ที่จะตรวจสอบ\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของคีย์หรือดัชนีที่จะตรวจสอบในแต่ละระดับของโครงสร้าง\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}}],{"type":"function","name":"intersection","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersection","description":"สร้างส่วนซ้อนกันตามทฤษฎีเรื่องเซต ระหว่างรูปทรงเรขาคณิตสองรูปแล้วแสดงรูปทรงเรขาคณิตใหม่\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงพื้นที่บริเวณที่ซ้อนกันไปยังรูปทรงเรขาคณิตทั้งสองรูป\n\n```arcade\nvar geom2 = Polygon({ ... });\nArea(Intersection($feature, geom2), 'square-miles');\n```\n\n","completion":{"label":"Intersection","detail":"Intersection(geometry1, geometry2) -> Geometry","insertText":"Intersection(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างส่วนซ้อนกันตามทฤษฎีเรื่องเซต ระหว่างรูปทรงเรขาคณิตสองรูปแล้วแสดงรูปทรงเรขาคณิตใหม่\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะตัดกับ `geometry2`\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะตัดกับ `geometry1`\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"intersects","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersects","description":"หากรูปทรงเรขาคณิตซ้อนกันกับรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงหากรูปทรงเรขาคณิตมีส่วนที่ซ้อนกัน\n\n```arcade\nvar geom2 = Polygon({ ... });\nIntersects($feature, geom2);\n```\n\n","completion":{"label":"Intersects","detail":"Intersects(geometry1, geometry2) -> Boolean","insertText":"Intersects(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nหากรูปทรงเรขาคณิตซ้อนกันกับรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตถูกทดสอบการตัดกันของความสัมพันธ์กับ `geometry2`\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตถูกรูปทรงเรขาคณิตอื่นทับซ้อนอยู่\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Intersects](https://esri.github.io/geometry-api-java/doc/Intersects.html)\n"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"isselfintersecting","bundle":"geometry","sinceVersion":"1.8","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#isselfintersecting","description":"ระบุว่าอินพุทรูปทรงเรขาคณิตมีวงแหวน พาธ หรือจุด ที่ตัดหรือข้ามผ่านส่วนอื่นๆ ของรูปทรงเรขาคณิตหรือไม่ เช่น โพลีไลน์ฟีเจอร์เดี่ยวที่พาธตัดกันและกัน หรือโพลีกอนที่มีวงแหวนซึ่งตัดกับตัวเอง จะส่งคืนค่า `จริง` ","examples":"\n**ตัวอย่าง**\n\nส่งคืน true หากพาธของโพลีไลน์ตัดกันเอง\n\n```arcade\nvar polyline = Polyline({ ... });\nIsSelfIntersecting(polyline);\n```\n\n","completion":{"label":"IsSelfIntersecting","detail":"IsSelfIntersecting(inputGeometry) -> Boolean","insertText":"IsSelfIntersecting(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.8](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าอินพุทรูปทรงเรขาคณิตมีวงแหวน พาธ หรือจุด ที่ตัดหรือข้ามผ่านส่วนอื่นๆ ของรูปทรงเรขาคณิตหรือไม่ เช่น โพลีไลน์ฟีเจอร์เดี่ยวที่พาธตัดกันและกัน หรือโพลีกอนที่มีวงแหวนซึ่งตัดกับตัวเอง จะส่งคืนค่า `จริง` \n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - โพลีกอน โพลีไลน์ หรือเรขาคณิตหลายจุดที่จะทดสอบหาการตัดกับตัวเอง\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"issimple","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#issimple","description":"ระบุว่าข้อมูลเชิงเรขาคณิตที่ระบุมีความสอดคล้องทางโทโพโลจี้หรือไม่\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืน true หากเรขาคณิตเป็นโทโพโลจีแบบซิมเปิล\n\n```arcade\nIsSimple($feature);\n```\n\n","completion":{"label":"IsSimple","detail":"IsSimple(inputGeometry) -> Boolean","insertText":"IsSimple(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าข้อมูลเชิงเรขาคณิตที่ระบุมีความสอดคล้องทางโทโพโลจี้หรือไม่\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเชิงเรขาคณิตขาเข้า\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"length","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length","description":"ส่งคืนความยาวของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงความยาวในเชิงระนาบของฟีเจอร์เป็นกิโลเมตร\n\n```arcade\nLength($feature, 'kilometers')\n```\n\n","completion":{"label":"Length","detail":"Length(inputGeometry, unit?) -> Number","insertText":"Length(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนความยาวของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดเชิงระนาบด้วยระบบคาร์ทีเซียนในทางคณิตศาสตร์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - รูปทรงเรขาคณิตหรือรูปทรงเรขาคณิตอื่น ๆ ที่คำนวณความยาวในเชิงระนาบ\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ส่วนนี้อาจเป็นหนึ่งในค่าที่เป็นไปได้ด้านล่าง หรือหนึ่งในรหัสตัวเลขที่แสดงรายการในส่วนทรัพยากรเพิ่มเติมด้านล่าง สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"length3d","bundle":"geometry","sinceVersion":"1.14","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length3d","description":"ส่งคืนความยาวเชิงระนาบ (เช่น Cartesian) ของเรขาคณิตอินพุทหรือฟีเจอร์ โดยพิจารณาความสูงหรือข้อมูล Z ร่วมด้วย เรขาคณิตที่ป้อนในฟังก์ชันนี้ จะต้องได้รับการกำหนดระบบพิกัดแนวระนาบ หากการอ้างอิงเชิงพื้นที่ไม่ได้ระบุค่าสำหรับหน่วย Z ผลลัพธ์จะถูกส่งกลับเป็นเมตร โปรดทราบว่าไม่ใช่ทุกไคลเอ็นต์ (เช่น ชุด 3.x ของ ArcGIS API สำหรับ JavaScript) ที่รองรับ การขอค่า Z แม้ว่าข้อมูลจะมีข้อมูล Z อยู่ก็ตาม\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนความยาวเชิงระนาบ 3D ของฟีเจอร์ ในหน่วยของการอ้างอิงเชิงพื้นที่ของบริบทที่ดำเนินการนิพจน์\n\n```arcade\nLength3D($feature)\n```\n\nส่งคืนความยาวเชิงระนาบ 3D ของฟีเจอร์ในหน่วยฟุต\n\n```arcade\nLength3D($feature, 'feet')\n```\n\n","completion":{"label":"Length3D","detail":"Length3D(inputGeometry, unit?) -> Number","insertText":"Length3D(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนความยาวเชิงระนาบ (เช่น Cartesian) ของเรขาคณิตอินพุทหรือฟีเจอร์ โดยพิจารณาความสูงหรือข้อมูล Z ร่วมด้วย เรขาคณิตที่ป้อนในฟังก์ชันนี้ จะต้องได้รับการกำหนดระบบพิกัดแนวระนาบ หากการอ้างอิงเชิงพื้นที่ไม่ได้ระบุค่าสำหรับหน่วย Z ผลลัพธ์จะถูกส่งกลับเป็นเมตร โปรดทราบว่าไม่ใช่ทุกไคลเอ็นต์ (เช่น ชุด 3.x ของ ArcGIS API สำหรับ JavaScript) ที่รองรับ การขอค่า Z แม้ว่าข้อมูลจะมีข้อมูล Z อยู่ก็ตาม\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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - เรขาคณิตหรือฟีเจอร์สำหรับคำนวณความยาวระนาบในพื้นที่ 3 มิติ\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ส่วนนี้อาจเป็นหนึ่งในค่าที่เป็นไปได้ด้านล่าง หรือหนึ่งในรหัสตัวเลขที่แสดงรายการในส่วนทรัพยากรเพิ่มเติมด้านล่าง สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [LengthGeodetic()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic)\n* [Length()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"lengthgeodetic","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic","description":"ส่งคืนความยาวจีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงความยาวบนสันฐานโลกของลักษณะภูมิประเทศ (feature) เป็นกิโลเมตร\n\n```arcade\nLengthGeodetic($feature, 'kilometers')\n```\n\n","completion":{"label":"LengthGeodetic","detail":"LengthGeodetic(inputGeometry, unit?, curveType?) -> Number","insertText":"LengthGeodetic(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนความยาวจีโอเดติกของรูปทรงเรขาคณิตอินพุท หรือฟีเจอร์ในหน่วยที่กำหนด นี่คือการวัดความยาวที่น่าเชื่อถือกว่า `Length()` เนื่องจากมีการพิจารณาถึงความโค้งบนแผ่นดินด้วย\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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - รูปทรงเรขาคณิตที่จะคำนวณความยาวจีโอเดติค\n- **unit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดของค่าที่ส่งคืน ส่วนนี้อาจเป็นหนึ่งในค่าที่เป็นไปได้ด้านล่าง หรือหนึ่งในรหัสตัวเลขที่แสดงรายการในส่วนทรัพยากรเพิ่มเติมด้านล่าง สำหรับการแสดงภาพ ติดป้ายกำกับ และโปรไฟล์ป็อปอัพ หน่วยเริ่มต้นคือการอ้างอิงเชิงพื้นที่ของแผนที่ ในโปรไฟล์อื่นๆ เช่น การคำนวณฟิลด์ ค่าเริ่มต้นจะอิงตามการอ้างอิงเชิงพื้นที่ของข้อมูล  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n- **curveType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ก้__Since 1.31_ The type of curve to use for the geodetic length calculation______________________________________ษฺ. ก้_If no value is provided, the default is `Geodesic`____________________________ษฺ.  \nก้_Possible values___________________ษฺ:  \n  ก้_- `Geodesic` - Defined by the shortest distance between two points on an ellipsoid_____________________________________________ษฺ.  \n  ก้_- `GreatElliptic` - Defined by the intersection of a plane that contains the center of the spheroid and the spheroid surface and passes through two points. This is also known as a great circle when a sphere is used. It is not necessarily the shortest path between two points_____________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `Loxodrome` - Defined by the line of constant bearing, or azimuth, between two points. It represents a rhumb-line path on the earth that crosses each meridian at the same acute angle, thus forming a spiral that converges on the north or south pole. The Mercator projection shows loxodromes as straight lines______________________________________________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `NormalSection` - Defined by the intersection of a plane that passes through two points on the surface of the spheroid and is perpendicular to the surface at the first point. It is not necessarily the shortest path between two points_________________________________________________________________________________________________________________________ษฺ.  \n  ก้_- `ShapePreserving` - The segment shape is preserved in the projection where it is defined. This is often used in situations where maintaining the visual representation of a feature is crucial, like when working with boundaries or coastlines___________________________________________________________________________________________________________________________ษฺ.\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Length()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length)\n* [Length3d()](https://developers.arcgis.com/arcade/function-reference/geometry_functions/#length3d)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":1,"max":3}},{"type":"function","name":"measuretocoordinate","bundle":"geometry","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate","description":"ส่งคืนพิกัดแรกตามเส้นอินพุท อิงตามการวัดที่กำหนด หรือค่า m หากไม่พบการวัดตามเส้นอินพุท ผลลัพธ์จะเป็น `null` จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ การวัดที่กำหนด การวัดไม่มีช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนพิกัดของโพลีไลน์อินพุท โดยอิงตามค่าการวัดที่กำหนด\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n","completion":{"label":"MeasureToCoordinate","detail":"MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary","insertText":"MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพิกัดแรกตามเส้นอินพุท อิงตามการวัดที่กำหนด หรือค่า m หากไม่พบการวัดตามเส้นอินพุท ผลลัพธ์จะเป็น `null` จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ การวัดที่กำหนด การวัดไม่มีช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เส้นหรือเส้นทางซึ่งจะค้นหาพิกัดจาก เส้นอินพุทต้องมี `hasM` เป็น `true` หาก `hasM` เป็น `false`, จะส่งคืน `null` เมื่อใช้ฟีเจอร์เป็นอินพุท เรขาคณิตของฟีเจอร์ต้องเป็นโพลีไลน์\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - การวัด หรือค่า m ที่จะค้นหาพิกัดตาม `inputLine` จากจุดเริ่มต้นของเส้น จะพิจารณาส่วนทั้งหมดของเส้น ขณะพยายามค้นหาพิกัด ณ การวัดที่กำหนด การวัดไม่มีช่องว่างระหว่างเส้นทาง (หรือส่วนต่างๆ ) ของเส้น\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้ หากไม่พบการวัดตามเส้นอินพุท ผลลัพธ์จะเป็น `null`\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - พิกัดแรกของจุดตาม `inputLine` อิงตามค่าการวัดที่กำหนด\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากจุดเริ่มต้นของ `inputLine` ที่วัดตามเส้นไปยัง `coordinate` ในโพลีไลน์ที่เส้นทางไม่เชื่อมต่อกัน ค่า `distanceAlong` จะไม่รวมระยะทางของช่องว่างระหว่างเวอร์เท็กซ์เริ่มต้นและสิ้นสุดของเส้นทาง\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ในกรณีของอินพุทโพลีไลน์ จะได้แก่ดัชนีของเส้นทางที่ `coordinate` อยู่\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนี (สัมพันธ์กับเส้นทาง) ของเซกเมนต์เส้น ซึ่ง `coordinate` อยู่ หาก `coordinate` แสดงเวอร์เท็กซ์ของเส้นอินพุท `segmentId` จะส่งคืนดัชนีของเวอร์เท็กซ์ก่อนหน้า หาก `coordinate` เป็นเวอร์เท็กซ์แรกของ `inputLine` ค่าของ `segmentId` จะเป็น `0`"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"multiparttosinglepart","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#multiparttosinglepart","description":"แปลงรูปทรงเรขาคณิตแบบหลายส่วน ไปเป็นรูปทรงเรขาคณิตแบบแยกกัน\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงอาร์เรย์) ของรูปทรงเรขาคณิตแบบเดี่ยว จากรูปทรงเรขาคณิตแบบหลายส่วน\n\n```arcade\nvar allParts = MultiPartToSinglePart($feature)\n```\n\n","completion":{"label":"MultiPartToSinglePart","detail":"MultiPartToSinglePart(inputGeometry) -> Array<Geometry>","insertText":"MultiPartToSinglePart(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแปลงรูปทรงเรขาคณิตแบบหลายส่วน ไปเป็นรูปทรงเรขาคณิตแบบแยกกัน\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตแบบหลายส่วน ที่แตกไปเป็นส่วนเดี่ยวๆ\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)&gt;"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"multipoint","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#multipoint1","description":"สร้างวัตถุมัลติพอยน์จากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของค่าเป็นพิกัด","examples":"\n**ตัวอย่าง**\n\nสร้างมัลติพอยน์โดยใช้เฉพาะพิกัด x, y\n\n```arcade\nMultipoint({\n  points: [\n    [-97.06138,32.837],\n    [-97.06133,32.836],\n    [-97.06124,32.834],\n    [-97.06127,32.832],\n    [-97.06138,32.837]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างมัลติพอยน์ด้วยค่า m\n\n```arcade\nMultipoint({\n  hasM: true,\n  points: [\n    [-97.06138,32.837,0],\n    [-97.06133,32.836,15],\n    [-97.06124,32.834,30],\n    [-97.06127,32.832,50],\n    [-97.06138,32.837,0]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างมัลติพอยน์ด้วยค่า z\n\n```arcade\nMultipoint({\n  hasZ: true,\n  points: [\n    [-97.06138,32.837,1000],\n    [-97.06133,32.836,1500],\n    [-97.06124,32.834,1000],\n    [-97.06127,32.832,500],\n    [-97.06138,32.837,1000]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างมัลติพอยน์ด้วยค่า z และ m\n\n```arcade\nMultipoint({\n  hasM: true,\n  hasZ: true,\n  points: [\n    [-97.06138,32.837,1000,0],\n    [-97.06133,32.836,1500,15],\n    [-97.06124,32.834,1000,30],\n    [-97.06127,32.832,500,50],\n    [-97.06138,32.837,1000,0]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Multipoint","detail":"Multipoint(geometryDefinition) -> Multipoint","insertText":"Multipoint(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุมัลติพอยน์จากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของค่าเป็นพิกัด\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตมัลติพอยน์จาก\n\n  - **points**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของพิกัดที่แทนตำแหน่งจุด\n\n    - **singlePoint**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่แทนจุดเดียวหรือพิกัด รายการแรกในอาร์เรย์ที่แทนพิกัด x องค์ประกอบที่สองที่แทนพิกัด y องค์ประกอบที่สามที่แทนพิกัด m หาก `hasM` เป็นจริง และ `hasZ` เป็นเท็จ หรือ องค์ประกอบที่สามที่แทนพิกัด z หากทั้ง `hasZ` และ `hasM` เป็นจริง องค์ประกอบที่สามที่แทนพิกัด z และองค์ประกอบที่สี่ที่แทนพิกัด m\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Multipoint](https://developers.arcgis.com/arcade/guide/types/#multipoint)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"multipoint","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#multipoint2","description":"สร้างวัตถุมัลติพอยน์จากพจนานุกรม โดยใช้อาร์เรย์ของวัตถุจุด","examples":"\n**ตัวอย่าง**\n\nสร้างมัลติพอยน์โดยใช้เฉพาะพิกัด x, y\n\n```arcade\nMultipoint({\n  points: [\n    Point({ x: -97.06138, y: 32.837, spatialReference: { wkid: 3857 } }),\n    Point({ x: -97.06133, y: 32.836, spatialReference: { wkid: 3857 } }),\n    Point({ x: -97.06124, y: 32.834, spatialReference: { wkid: 3857 } }),\n    Point({ x: -97.06127, y: 32.832, spatialReference: { wkid: 3857 } }),\n    Point({ x: -97.06138, y: 32.837, spatialReference: { wkid: 3857 } })\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Multipoint","detail":"Multipoint(geometryDefinition) -> Multipoint","insertText":"Multipoint(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุมัลติพอยน์จากพจนานุกรม โดยใช้อาร์เรย์ของวัตถุจุด\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตมัลติพอยน์จาก\n\n  - **points**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - อาร์เรย์ของวัตถุจุด\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Multipoint](https://developers.arcgis.com/arcade/guide/types/#multipoint)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"multipoint","bundle":"geometry","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#multipoint3","description":"สร้างวัตถุมัลติพอยน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุมัลติพอยน์","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","completion":{"label":"Multipoint","detail":"Multipoint(jsonDefinition) -> Multipoint","insertText":"Multipoint(${1:jsonDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ArcGIS REST API JSON specification for Multipoint objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#MULTIPOINT)\n"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"nearestcoordinate","bundle":"geometry","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#nearestcoordinate","description":"ส่งคืนพิกัดที่ใกล้ที่สุด (ไม่ใช่เวอร์เท็กซ์) ของเรขาคณิตอินพุท ไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะมีระยะทางระนาบที่สั้นที่สุด จากจุดค้นหาไปยังพิกัดที่ใกล้ที่สุด หากจุดค้นหาตัดกับเรขาคณิตอินพุท จุดค้นหาจะถูกส่งคืนเป็นผลลัพธ์ที่มีระยะทางศูนย์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","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","completion":{"label":"NearestCoordinate","detail":"NearestCoordinate(inputGeometry, searchPoint) -> Dictionary","insertText":"NearestCoordinate(${1:inputGeometry_}, ${2:searchPoint_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพิกัดที่ใกล้ที่สุด (ไม่ใช่เวอร์เท็กซ์) ของเรขาคณิตอินพุท ไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะมีระยะทางระนาบที่สั้นที่สุด จากจุดค้นหาไปยังพิกัดที่ใกล้ที่สุด หากจุดค้นหาตัดกับเรขาคณิตอินพุท จุดค้นหาจะถูกส่งคืนเป็นผลลัพธ์ที่มีระยะทางศูนย์\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะรับพิกัดที่ใกล้ที่สุดจาก\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่จะค้นหาพิกัดที่ใกล้ที่สุดของ `inputGeometry` จาก\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - พิกัดที่ใกล้ที่สุดจาก `inputGeometry` ไปยัง `searchPoint`\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากพิกัดที่ใกล้ที่สุดไปยัง `searchPoint` ค่านี้จะแสดงระยะทางที่ใกล้ที่สุดระหว่าง `inputGeometry` และ `searchPoint`\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ความสัมพันธ์เชิงพื้นที่ระหว่าง `searchPoint` และเซกเมนต์ของ `inputGeometry` ที่ไปถึงพิกัดที่ใกล้ที่สุด ค่าที่เป็นไปได้: \n\n`left` - `searchPoint` อยู่ทางด้านซ้ายของ `inputGeometry`\n\n`right` - `searchPoint` อยู่ทางด้านขวาของ `inputGeometry`\n\n`straddle` - `searchPoint` คร่อม หรืออยู่ด้านบนของ `inputGeometry`"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"nearestvertex","bundle":"geometry","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#nearestvertex","description":"ส่งคืนเวอร์เท็กซ์ที่ใกล้ที่สุดของเรขาคณิตอินพุทไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะรวมระยะทางระนาบจากจุดค้นหาไปยังเวอร์เท็กซ์ที่ใกล้ที่สุด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","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 = NearestVertex(nearestBuilding, $feature);\n\nreturn result.distance;\n\n// or\n\nreturn result.coordinate;\n```\n\n","completion":{"label":"NearestVertex","detail":"NearestVertex(inputGeometry, searchPoint) -> Dictionary","insertText":"NearestVertex(${1:inputGeometry_}, ${2:searchPoint_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเวอร์เท็กซ์ที่ใกล้ที่สุดของเรขาคณิตอินพุทไปยังจุดค้นหา พจนานุกรมที่ส่งคืน จะรวมระยะทางระนาบจากจุดค้นหาไปยังเวอร์เท็กซ์ที่ใกล้ที่สุด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะรับเวอร์เท็กซ์ที่ใกล้ที่สุดจาก\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - จุดที่จะค้นหาเวอร์เท็กซ์ที่ใกล้ที่สุดของ `inputGeometry` จาก\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - ตำแหน่งจุดที่แสดงเวอร์เท็กซ์ที่ใกล้ที่สุดจาก `inputGeometry` ไปยัง `searchPoint`\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากเวอร์เท็กซ์ที่ใกล้ที่สุดของเรขาคณิตอินพุทไปยัง `searchPoint`\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ความสัมพันธ์เชิงพื้นที่ระหว่าง `searchPoint` และเซกเมนต์ของ `inputGeometry` ที่ไปถึงเวอร์เท็กซ์ที่ใกล้ที่สุด ค่าที่เป็นไปได้: \n\n`left` - `searchPoint` อยู่ทางด้านซ้ายของ `inputGeometry`\n\n`right` - `searchPoint` อยู่ทางด้านขวาของ `inputGeometry`\n\n`straddle` - `searchPoint` คร่อม หรืออยู่ด้านบนของ `inputGeometry`"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"offset","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#offset","description":"จัดทำข้อมูลเชิงเรขาคณิตที่เป็นระยะเชิงระนาบคงที่จากข้อมูลเชิงเรขาคณิตขาเข้า ซึ่งจะคล้าย ๆ กับการทำบัฟเฟอร์ แต่จะมีผลลัพธ์เพียงฝั่งเดียว\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนเรขาคณิตออฟเซ็ต\n\n```arcade\nOffset($feature, 10, 'meters', 'square');\n```\n\n","completion":{"label":"Offset","detail":"Offset(inputGeometry, offsetDistance, offsetUnit?, joinType?, bevelRatio?, flattenError?) -> Geometry","insertText":"Offset(${1:inputGeometry_}, ${2:offsetDistance_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nจัดทำข้อมูลเชิงเรขาคณิตที่เป็นระยะเชิงระนาบคงที่จากข้อมูลเชิงเรขาคณิตขาเข้า ซึ่งจะคล้าย ๆ กับการทำบัฟเฟอร์ แต่จะมีผลลัพธ์เพียงฝั่งเดียว\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเชิงเรขาคณิตสำหรับชดเชย ไม่รองรับเรขาคณิตแบบจุด\n- **offsetDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางเชิงระนาบเพื่อชดเชยจากข้อมูลเชิงเรขาคณิตขาเข้า หาก `offsetDistance > 0`, ข้อมูลเรขาคณิตชดเชยจะถูกกำหนดโครงสร้างทางด้านขวาของข้อมูลเชิงเรขาคณิตขาเข้า หาก `offsetDistance = 0`, จะไม่มีการเปลี่ยนแปลงในข้อมูลเชิงเรขาคณิต ไม่เช่นนั้นจะมีการจัดโครงสร้างไว้ด้านซ้าย ทิศทางของพาธหรือหรือวงแหวนของเรขาคณิตอินพุท จะกำหนดว่าด้านใดของเรขาคณิตถือเป็นด้านขวา และด้านใดถือเป็นด้านซ้าย สำหรับโพลิกอนแบบง่าย การวางตำแหน่งของวงแหวนด้านนอกจะเป็นไปตามเข็มนาฬิกา ส่วนวงแหวนด้านในจะทวนเข็มนาฬิกา ทางด้านขวาของโพลิกอนพื้นฐานจะอยู่ภายในเสมอ\n- **offsetUnit** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - หน่วยวัดสำหรับ 'offsetDistance' ค่าเริ่มต้นสำหรับหน่วยข้อมูลเรขาคณิตขาเข้า  \nค่าที่เป็นไปได้: `centimeters` | `decimeters` | `inches` | `feet` | `kilometers` | `meters` | `miles` | `millimeters` | `nautical-miles` | `us-feet` | `us-miles` | `yards`\n- **joinType** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ประเภทการผสาน ค่าที่เป็นไปได้ได้แก่ `round`, `bevel`, `miter` หรือ `square`\n- **bevelRatio** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้ในกรณีที่ `joinType = 'miter'`; `bevelRatio` คูณด้วยระยะทางชดเชย และ ผลลัพธ์ดังกล่าวจะเป็นตัวกำหนดระยะตำแหน่งจุดตัดชดเชยก่อนที่จะมีการปรับมุม\n- **flattenError** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ใช้ในกรณีที่ `joinType = 'round'`; `flattenError` จะกำหนดระยะทางสูงสุดของส่วนย่อยที่เกิดขึ้นเทียบกับเส้นโค้งทรงกลมจริง อัลกอริทึมจะไม่จัดทำเวอร์เท็กซ์มากกว่า 180 รายการสำหรับการผสานแต่ละรอบ\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":2,"max":6}},{"type":"function","name":"overlaps","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#overlaps","description":"หากรูปทรงเรขาคณิตทับกันกับรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงหากรูปทรงเรขาคณิตทับกัน\n\n```arcade\nvar geom2 = Polygon({ ... });\nOverlaps($feature, geom2);\n```\n\n","completion":{"label":"Overlaps","detail":"Overlaps(geometry1, geometry2) -> Boolean","insertText":"Overlaps(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nหากรูปทรงเรขาคณิตทับกันกับรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตฐานที่ถูกทดสอบหาความสัมพันธ์ 'overlaps' กับ `geometry2`\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตฐานถูกทดสอบหาความสัมพันธ์ของ 'overlaps (ทับกัน)' กับ `geometry1`\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Overlaps](https://esri.github.io/geometry-api-java/doc/Overlaps.html)\n"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"point","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#point1","description":"สร้างวัตถุจุดจากพจนานุกรม","examples":"\n**ตัวอย่าง**\n\nสร้างจุดโดยใช้เฉพาะพิกัด x, y\n\n```arcade\nPoint({\n  x: -97.06138,\n  y: 32.837,\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างจุดด้วยค่า m\n\n```arcade\nPoint({\n  hasM: true,\n  x: -97.06138,\n  y: 32.837,\n  m: 15,\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างจุดด้วยค่า z\n\n```arcade\nPoint({\n  hasZ: true,\n  x: -97.06138,\n  y: 32.837,\n  z: 1500,\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างจุดด้วยค่า z และ m\n\n```arcade\nPoint({\n  hasM: true,\n  hasZ: true,\n  x: -97.06138,\n  y: 32.837,\n  z: 1500,\n  m: 15,\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Point","detail":"Point(geometryDefinition) -> Point","insertText":"Point(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุจุดจากพจนานุกรม\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตจุด\n\n  - **x**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - พิกัด x (ลองจิจูด) ของตำแหน่งจุด\n  - **y**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - พิกัด y (ละติจูด) ของตำแหน่งจุด\n  - **m**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่า m (วัด) ของตำแหน่งจุด หากระบุค่า m คุณจะต้องตั้งค่า `hasM` เป็น `true`\n  - **z**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ค่า z (ระดับความสูงหรือความสูง) ของตำแหน่งจุด หากระบุค่า z คุณจะต้องตั้งค่า `hasZ` เป็น `true`\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Point](https://developers.arcgis.com/arcade/guide/types/#point)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"point","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#point2","description":"สร้างวัตถุจุดจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุจุด","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","completion":{"label":"Point","detail":"Point(jsonDefinition) -> Point","insertText":"Point(${1:jsonDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุจุดจากข้อความ 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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ArcGIS REST API JSON specification for Point objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#POINT)\n"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"pointtocoordinate","bundle":"geometry","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate","description":"ส่งคืนพิกัดที่ใกล้ที่สุด และระยะทางไปยังพิกัดดังกล่าวของจุดค้นหาถึงเส้นอินพุท\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนระยะทางไปยังพิกัดที่ใกล้ที่สุด ตามโพลีไลน์อินพุท อิงตามตำแหน่งที่คลิกเพื่อเปิดป็อปอัพ\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n  result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n","completion":{"label":"PointToCoordinate","detail":"PointToCoordinate(inputLine, searchPoint) -> Dictionary","insertText":"PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนพิกัดที่ใกล้ที่สุด และระยะทางไปยังพิกัดดังกล่าวของจุดค้นหาถึงเส้นอินพุท\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เส้นหรือเส้นทางที่จะรับพิกัดที่ใกล้ที่สุดจาก เมื่อใช้ฟีเจอร์เป็นอินพุท เรขาคณิตของฟีเจอร์ต้องเป็นโพลีไลน์\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - จุดที่จะค้นหาพิกัดที่ใกล้ที่สุดของ `inputLine`\n\n**ส่งคืนค่า**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)  \nส่งคืนพจนานุกรมที่มีคุณสมบัติต่อไปนี้\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - พิกัดจุดที่แสดงพิกัดที่ใกล้ที่สุดตาม `inputLine` ถึง `searchPoint` หาก `hasZ` เป็น `false` ใน `searchPoint`, จะดำเนินการค้นหาในพิกัด x/y และประมาณค่าในช่วงค่า z\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจาก `searchPoint` ถึง `coordinate`\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ระยะทางระนาบจากจุดเริ่มต้นของ `inputLine` ที่วัดตามเส้นไปยัง `coordinate` ในโพลีไลน์ที่เส้นทางไม่เชื่อมต่อกัน ค่า `distanceAlong` จะไม่รวมระยะทางของช่องว่างระหว่างเวอร์เท็กซ์เริ่มต้นและสิ้นสุดของเส้นทาง\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ในกรณีของอินพุทโพลีไลน์ จะได้แก่ดัชนีของเส้นทางที่ `coordinate` อยู่\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนี (สัมพันธ์กับเส้นทาง) ของเซกเมนต์เส้น ซึ่ง `coordinate` อยู่ หาก `coordinate` แสดงเวอร์เท็กซ์ของเส้นอินพุท `segmentId` จะส่งคืนดัชนีของเวอร์เท็กซ์ก่อนหน้า หาก `coordinate` เป็นเวอร์เท็กซ์แรกของ `inputLine` ค่าของ `segmentId` จะเป็น `0`"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"polygon","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polygon1","description":"สร้างวัตถุโพลีกอนจากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของค่าเป็นพิกัด","examples":"\n**ตัวอย่าง**\n\nสร้างโพลีกอนโดยใช้เฉพาะพิกัด x, y\n\n```arcade\n// Creates a Polygon with 2 rings\nPolygon({\n  rings: [\n    [\n      [-97.06138,32.837],\n      [-97.06133,32.836],\n      [-97.06124,32.834],\n      [-97.06127,32.832],\n      [-97.06138,32.837]\n    ],\n    [\n      [-97.06326,32.759],\n      [-97.06298,32.755],\n      [-97.06326,32.759]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างโพลีกอนด้วยค่า m\n\n```arcade\n// Creates a Polygon with 1 ring\nPolygon({\n  hasM: true,\n  rings: [\n    [\n      [-97.06138,32.837,0],\n      [-97.06133,32.836,15],\n      [-97.06124,32.834,30],\n      [-97.06127,32.832,50],\n      [-97.06138,32.837,0]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างโพลีกอนด้วยค่า z\n\n```arcade\n// Creates a Polygon with 1 ring\nPolygon({\n  hasZ: true,\n  rings: [\n    [\n      [-97.06138,32.837,1000],\n      [-97.06133,32.836,1500],\n      [-97.06124,32.834,1000],\n      [-97.06127,32.832,500],\n      [-97.06138,32.837,1000]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างโพลีกอนด้วยค่า z และ m\n\n```arcade\n// Creates a Polygon with 1 ring\nPolygon({\n  hasM: true,\n  hasZ: true,\n  rings: [\n    [\n      [-97.06138,32.837,1000,0],\n      [-97.06133,32.836,1500,15],\n      [-97.06124,32.834,1000,30],\n      [-97.06127,32.832,500,50],\n      [-97.06138,32.837,1000,0]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Polygon","detail":"Polygon(geometryDefinition) -> Polygon","insertText":"Polygon(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุโพลีกอนจากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของค่าเป็นพิกัด\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตโพลีกอนจาก\n\n  - **rings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของวงแหวน (หรือรูปทรง) โดยที่แต่ละวงแหวนจะเป็นอาร์เรย์ของเวอร์เท็กซ์\n\n    - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเวอร์เท็กซ์ในวงแหวน วงแหวนทั้งหมดควรปิดอยู่ ซึ่งหมายความว่าเวอร์เท็กซ์แรกของแต่ละวงแหวนควรเหมือนกับเวอร์เท็กซ์สุดท้ายเสมอ ควรกำหนดค่าเวอร์เท็กซ์ในลำดับตามเข็มนาฬิกา วงแหวนที่มีเวอร์เท็กซ์ซึ่งกำหนดค่าในลำดับทวนเข็มนาฬิกา จะส่งผลให้เกิดรูโพลีกอน\n\n      - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่แทนเวอร์เท็กซ์เดียวหรือพิกัดในวงแหวน รายการแรกในอาร์เรย์ที่แทนพิกัด x องค์ประกอบที่สองที่แทนพิกัด y องค์ประกอบที่สามที่แทนพิกัด m หาก `hasM` เป็นจริง และ `hasZ` เป็นเท็จ หรือ องค์ประกอบที่สามที่แทนพิกัด z หากทั้ง `hasZ` และ `hasM` เป็นจริง องค์ประกอบที่สามที่แทนพิกัด z และองค์ประกอบที่สี่ที่แทนพิกัด m\n  - **curveRings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - _นับตั้งแต่เวอร์ชัน 1.25 ใน ArcGIS Pro and ArcGIS Maps SDKs for Native Apps_ อาร์เรย์ของวงแหวน (หรือรูปทรง) ที่อาจมีเส้นโค้ง\n\n    - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเวอร์เท็กซ์หรือวัตถุเส้นโค้งในวงแหวน วงแหวนทั้งหมดควรปิดอยู่ ซึ่งหมายความว่าเวอร์เท็กซ์แรกของแต่ละวงแหวนควรเหมือนกับเวอร์เท็กซ์สุดท้ายเสมอ ควรกำหนดค่าเวอร์เท็กซ์ในลำดับตามเข็มนาฬิกา วงแหวนที่มีเวอร์เท็กซ์ซึ่งกำหนดค่าในลำดับทวนเข็มนาฬิกา จะส่งผลให้เกิดรูโพลีกอน แต่ละรายการในอาร์เรย์ อาจเป็นเวอร์เท็กซ์หรือวัตถุเส้นโค้งได้\n\n      - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่แทนเวอร์เท็กซ์เดียวหรือพิกัดในวงแหวน รายการแรกในอาร์เรย์ที่แทนพิกัด x องค์ประกอบที่สองที่แทนพิกัด y องค์ประกอบที่สามที่แทนพิกัด m หาก `hasM` เป็นจริง และ `hasZ` เป็นเท็จ หรือ องค์ประกอบที่สามที่แทนพิกัด z หากทั้ง `hasZ` และ `hasM` เป็นจริง องค์ประกอบที่สามที่แทนพิกัด z และองค์ประกอบที่สี่ที่แทนพิกัด m\n      - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - วัตถุเส้นโค้งที่แทนเซกเมนต์ของวงแหวน วัตถุเส้นโค้งมีคุณสมบัติต่อไปนี้:\n\n        - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - กำหนดเส้นโค้งวงรีหรือวงกลม เส้นโค้งวงกลมมีสี่องค์ประกอบในอาร์เรย์ เส้นโค้งวงรีจะต้องมี 7 องค์ประกอบ\n        - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - แทนเส้นโค้งคิวบิก Bézier ส่วนนี้จะถูกกำหนดค่าด้วยอาร์เรย์ของสามอาร์เรย์ที่แทนหนึ่งเอนด์พอยน์และสองจุดควบคุม\n        - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - คุณสมบัติ c จะแทนเส้นโค้งวงกลมเปิด ส่วนนี้จะถูกกำหนดค่าในรูปแบบอาร์เรย์ของสองค่าความเที่ยงสองเท่า ซึ่งแสดงพิกัด x และ y ของศูนย์กลางวงกลม\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"polygon","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polygon2","description":"สร้างวัตถุโพลีกอนจากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของจุดเป็นพิกัด","examples":"\n**ตัวอย่าง**\n\nสร้างโพลีกอนโดยใช้เฉพาะพิกัด x, y\n\n```arcade\n// Creates a Polygon with 2 rings\nPolygon({\n  rings: [\n    [\n      Point({ x: -97.06138, y: 32.837, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06133, y: 32.836, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06124, y: 32.834, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06127, y: 32.832, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06138, y: 32.837, spatialReference: { wkid: 3857 } })\n    ],\n    [\n      Point({ x: -97.06326, y: 32.759, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06298, y: 32.755, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06326, y: 32.759, spatialReference: { wkid: 3857 } })\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Polygon","detail":"Polygon(geometryDefinition) -> Polygon","insertText":"Polygon(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุโพลีกอนจากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของจุดเป็นพิกัด\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตโพลีกอนจาก\n\n  - **rings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของวงแหวน (หรือรูปทรง) โดยที่แต่ละวงแหวนจะเป็นอาร์เรย์ของวัตถุจุด\n\n    - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - อาร์เรย์ของจุดที่แทนวงแหวน วงแหวนทั้งหมดควรปิดอยู่ ซึ่งหมายความว่าจุดแรกของแต่ละวงแหวนควรเหมือนกับจุดสุดท้ายในวงแหวนเสมอ ควรกำหนดค่าจุดในลำดับตามเข็มนาฬิกา วงแหวนที่มีเวอร์เท็กซ์ซึ่งกำหนดค่าในลำดับทวนเข็มนาฬิกา จะส่งผลให้เกิดรูโพลีกอน\n  - **curveRings**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - _นับตั้งแต่เวอร์ชัน 1.25 ใน ArcGIS Pro and ArcGIS Maps SDKs for Native Apps_ อาร์เรย์ของวงแหวน (หรือรูปทรง) ที่อาจมีเส้นโค้ง\n\n    - **ring**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเวอร์เท็กซ์หรือวัตถุเส้นโค้งในวงแหวน วงแหวนทั้งหมดควรปิดอยู่ ซึ่งหมายความว่าเวอร์เท็กซ์แรกของแต่ละวงแหวนควรเหมือนกับเวอร์เท็กซ์สุดท้ายเสมอ ควรกำหนดค่าเวอร์เท็กซ์ในลำดับตามเข็มนาฬิกา วงแหวนที่มีเวอร์เท็กซ์ซึ่งกำหนดค่าในลำดับทวนเข็มนาฬิกา จะส่งผลให้เกิดรูโพลีกอน แต่ละรายการในอาร์เรย์ อาจเป็นเวอร์เท็กซ์หรือวัตถุเส้นโค้งได้\n\n      - **vertex**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - จุดที่แสดงเวอร์เท็กซ์เดี่ยวหรือพิกัดในวงแหวน\n      - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - วัตถุเส้นโค้งที่แทนเซกเมนต์ของวงแหวน วัตถุเส้นโค้งมีคุณสมบัติต่อไปนี้:\n\n        - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - กำหนดเส้นโค้งวงรีหรือวงกลม เส้นโค้งวงกลมมีสี่องค์ประกอบในอาร์เรย์ เส้นโค้งวงรีจะต้องมี 7 องค์ประกอบ\n        - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - แทนเส้นโค้งคิวบิก Bézier ส่วนนี้จะถูกกำหนดค่าด้วยอาร์เรย์ของสามอาร์เรย์ที่แทนหนึ่งเอนด์พอยน์และสองจุดควบคุม\n        - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - คุณสมบัติ c จะแทนเส้นโค้งวงกลมเปิด ส่วนนี้จะถูกกำหนดค่าในรูปแบบอาร์เรย์ของสองค่าความเที่ยงสองเท่า ซึ่งแสดงพิกัด x และ y ของศูนย์กลางวงกลม\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"polygon","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polygon3","description":"สร้างวัตถุโพลีกอนจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลิกอน ข้อความ JSON อาจมีวัตถุเส้นโค้งใน ArcGIS Pro และ ArcGIS Maps SDKs for Native Apps เริ่มตั้งแต่เวอร์ชัน 1.25","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","completion":{"label":"Polygon","detail":"Polygon(jsonDefinition) -> Polygon","insertText":"Polygon(${1:jsonDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุโพลีกอนจากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลิกอน ข้อความ JSON อาจมีวัตถุเส้นโค้งใน ArcGIS Pro และ ArcGIS Maps SDKs for Native Apps เริ่มตั้งแต่เวอร์ชัน 1.25\n\n**พารามิเตอร์**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - JSON ที่จะสร้างวัตถุเรขาคณิตโพลีกอน\n\n**ส่งคืนค่า**: [Polygon](https://developers.arcgis.com/arcade/guide/types/#polygon)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ArcGIS REST API JSON specification for Polygon objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#POLYGON)\n"}},"parametersInfo":{"min":1,"max":1}}],[{"type":"function","name":"polyline","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polyline1","description":"สร้างวัตถุโพลีไลน์จากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของค่าเป็นพิกัด","examples":"\n**ตัวอย่าง**\n\nสร้างโพลีไลน์โดยใช้เฉพาะพิกัด x, y\n\n```arcade\n// Creates a Polyline with 2 paths\nPolyline({\n  paths: [\n    [\n      [-97.06138,32.837],\n      [-97.06133,32.836],\n      [-97.06124,32.834],\n      [-97.06127,32.832]\n    ],\n    [\n      [-97.06326,32.759],\n      [-97.06298,32.755]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างโพลีไลน์ด้วยค่า m\n\n```arcade\n// Creates a Polyline with 1 path\nPolyline({\n  hasM: true,\n  paths: [\n    [\n      [-97.06138,32.837,0],\n      [-97.06133,32.836,15],\n      [-97.06124,32.834,30],\n      [-97.06127,32.832,50]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างโพลีไลน์ด้วยค่า z\n\n```arcade\n// Creates a Polyline with 1 path\nPolyline({\n  hasZ: true,\n  paths: [\n    [\n      [-97.06138,32.837,1000],\n      [-97.06133,32.836,1500],\n      [-97.06124,32.834,1000],\n      [-97.06127,32.832,500]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\nสร้างโพลีไลน์ด้วยค่า z และ m\n\n```arcade\n// Creates a Polyline with 1 path\nPolyline({\n  hasM: true,\n  hasZ: true,\n  paths: [\n    [\n      [-97.06138,32.837,1000,0],\n      [-97.06133,32.836,1500,15],\n      [-97.06124,32.834,1000,30],\n      [-97.06127,32.832,500,50]\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Polyline","detail":"Polyline(geometryDefinition) -> Polyline","insertText":"Polyline(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุโพลีไลน์จากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของค่าเป็นพิกัด\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตโพลีไลน์จาก\n\n  - **paths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเส้นทาง (หรือส่วนของเส้น) โดยที่แต่ละเส้นทางจะเป็นอาร์เรย์ของเวอร์เท็กซ์\n\n    - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเวอร์เท็กซ์ในส่วนของเส้น หรือเส้นทาง\n\n      - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่แทนเวอร์เท็กซ์เดียวหรือพิกัดในส่วนของเส้น รายการแรกในอาร์เรย์ที่แทนพิกัด x องค์ประกอบที่สองที่แทนพิกัด y องค์ประกอบที่สามที่แทนพิกัด m หาก `hasM` เป็นจริง และ `hasZ` เป็นเท็จ หรือ องค์ประกอบที่สามที่แทนพิกัด z หากทั้ง `hasZ` และ `hasM` เป็นจริง องค์ประกอบที่สามที่แทนพิกัด z และองค์ประกอบที่สี่ที่แทนพิกัด m\n  - **curvePaths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - _นับตั้งแต่เวอร์ชัน 1.25 ใน ArcGIS Pro and ArcGIS Maps SDKs for Native Apps_ อาร์เรย์ของเส้นทาง (หรือเซกเมนต์เส้น) ที่อาจมีเส้นโค้ง\n\n    - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเวอร์เท็กซ์หรือวัตถุเส้นโค้งในเส้นทาง\n\n      - **vertex**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number)&gt; - อาร์เรย์ของตัวเลขที่แทนเวอร์เท็กซ์เดียวหรือพิกัดในส่วนของเส้น รายการแรกในอาร์เรย์ที่แทนพิกัด x องค์ประกอบที่สองที่แทนพิกัด y องค์ประกอบที่สามที่แทนพิกัด m หาก `hasM` เป็นจริง และ `hasZ` เป็นเท็จ หรือ องค์ประกอบที่สามที่แทนพิกัด z หากทั้ง `hasZ` และ `hasM` เป็นจริง องค์ประกอบที่สามที่แทนพิกัด z และองค์ประกอบที่สี่ที่แทนพิกัด m\n      - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - วัตถุเส้นโค้งที่แสดงเซกเมนต์ของเส้นทาง วัตถุเส้นโค้งมีคุณสมบัติต่อไปนี้:\n\n        - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - กำหนดเส้นโค้งวงรีหรือวงกลม เส้นโค้งวงกลมมีสี่องค์ประกอบในอาร์เรย์ เส้นโค้งวงรีจะต้องมี 7 องค์ประกอบ\n        - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - แทนเส้นโค้งคิวบิก Bézier ส่วนนี้จะถูกกำหนดค่าด้วยอาร์เรย์ของสามอาร์เรย์ที่แทนหนึ่งเอนด์พอยน์และสองจุดควบคุม\n        - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - คุณสมบัติ c จะแทนเส้นโค้งวงกลมเปิด ส่วนนี้จะถูกกำหนดค่าในรูปแบบอาร์เรย์ของสองค่าความเที่ยงสองเท่า ซึ่งแสดงพิกัด x และ y ของศูนย์กลางวงกลม\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"polyline","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polyline2","description":"สร้างวัตถุโพลีไลน์จากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของจุดเป็นพิกัด","examples":"\n**ตัวอย่าง**\n\nสร้างโพลีไลน์โดยใช้เฉพาะพิกัด x, y\n\n```arcade\n// Creates a Polyline with 2 paths\nPolyline({\n  paths: [\n    [\n      Point({ x: -97.06138, y: 32.837, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06133, y: 32.836, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06124, y: 32.834, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06127, y: 32.832, spatialReference: { wkid: 3857 } })\n    ],\n    [\n      Point({ x: -97.06326, y: 32.759, spatialReference: { wkid: 3857 } }),\n      Point({ x: -97.06298, y: 32.755, spatialReference: { wkid: 3857 } })\n    ]\n  ],\n  spatialReference: { wkid: 3857 }\n});\n```\n\n","completion":{"label":"Polyline","detail":"Polyline(geometryDefinition) -> Polyline","insertText":"Polyline(${1:geometryDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุโพลีไลน์จากพจนานุกรมโดยใช้เฉพาะอาร์เรย์ของจุดเป็นพิกัด\n\n**พารามิเตอร์**\n\n- **geometryDefinition**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - คุณสมบัติที่จะสร้างวัตถุเรขาคณิตโพลีไลน์จาก\n\n  - **paths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเส้นทาง (หรือส่วนของเส้น) โดยที่แต่ละเส้นทางจะเป็นอาร์เรย์ของวัตถุจุด\n\n    - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - อาร์เรย์ของจุดที่แทนส่วนของเส้น หรือเส้นทาง\n  - **curvePaths**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - _นับตั้งแต่เวอร์ชัน 1.25 ใน ArcGIS Pro and ArcGIS Maps SDKs for Native Apps_ อาร์เรย์ของเส้นทาง (หรือเซกเมนต์เส้น) ที่อาจมีเส้นโค้ง\n\n    - **path**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของเวอร์เท็กซ์หรือวัตถุเส้นโค้งในเส้นทาง\n\n      - **vertex**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - จุดที่แสดงเวอร์เท็กซ์ในเส้นทาง\n      - **curve**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - วัตถุเส้นโค้งที่แสดงเซกเมนต์ของเส้นทาง วัตถุเส้นโค้งมีคุณสมบัติต่อไปนี้:\n\n        - **a**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - กำหนดเส้นโค้งวงรีหรือวงกลม เส้นโค้งวงกลมมีสี่องค์ประกอบในอาร์เรย์ เส้นโค้งวงรีจะต้องมี 7 องค์ประกอบ\n        - **b**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - แทนเส้นโค้งคิวบิก Bézier ส่วนนี้จะถูกกำหนดค่าด้วยอาร์เรย์ของสามอาร์เรย์ที่แทนหนึ่งเอนด์พอยน์และสองจุดควบคุม\n        - **c**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - คุณสมบัติ c จะแทนเส้นโค้งวงกลมเปิด ส่วนนี้จะถูกกำหนดค่าในรูปแบบอาร์เรย์ของสองค่าความเที่ยงสองเท่า ซึ่งแสดงพิกัด x และ y ของศูนย์กลางวงกลม\n  - **hasM**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า m หรือไม่\n  - **hasZ**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - ระบุว่าเรขาคณิตมีค่า z หรือไม่\n  - **spatialReference**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - การอ้างอิงเชิงพื้นที่ของเรขาคณิต\n\n    - **wkid**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ID ที่ทราบดีของระบบพิกัดทางภูมิศาสตร์หรือแนวระนาบ ซึ่งกำหนดการอ้างอิงที่จะวาดเรขาคณิต\n\n**ส่งคืนค่า**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Curve objects](https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/#curve-objects)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"polyline","bundle":"geometry","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#polyline3","description":"สร้างวัตถุโพลีไลน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลีไลน์ ข้อความ JSON อาจมีวัตถุเส้นโค้งใน ArcGIS Pro และ ArcGIS Maps SDKs for Native Apps เริ่มตั้งแต่เวอร์ชัน 1.25","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","completion":{"label":"Polyline","detail":"Polyline(jsonDefinition) -> Polyline","insertText":"Polyline(${1:jsonDefinition_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุโพลีไลน์จากข้อความ JSON ที่ซีเรียไลซ์ สคีมา JSON ต้องเป็นไปตามข้อมูลจำเพาะ ArcGIS REST API JSON ของวัตถุโพลีไลน์ ข้อความ JSON อาจมีวัตถุเส้นโค้งใน ArcGIS Pro และ ArcGIS Maps SDKs for Native Apps เริ่มตั้งแต่เวอร์ชัน 1.25\n\n**พารามิเตอร์**\n\n- **jsonDefinition**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ข้อความ JSON ที่จะสร้างวัตถุเรขาคณิตโพลีไลน์\n\n**ส่งคืนค่า**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ArcGIS REST API JSON specification for Polyline objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#POLYLINE)\n"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"relate","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#relate","description":"ระบุว่า ความสัมพันธ์กันแบบ DE-9IM ที่กำหนดให้ไว้สำหรับรูปทรงเรขาคณิตสองรูปเป็น `true` หรือไม่\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืน true หากความสัมพันธ์ของเรขาคณิตอินพุทตรงกัน\n\n```arcade\nRelate($feature, geometry2, 'TTTFFTFFT')\n```\n\n","completion":{"label":"Relate","detail":"Relate(geometry1, geometry2, relation) -> Boolean","insertText":"Relate(${1:geometry1_}, ${2:geometry2_}, ${3:relation_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่า ความสัมพันธ์กันแบบ DE-9IM ที่กำหนดให้ไว้สำหรับรูปทรงเรขาคณิตสองรูปเป็น `true` หรือไม่\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเรขาคณิตแรกสำหรับชุดความสัมพันธ์\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเรขาคณิตที่สองสำหรับชุดความสัมพันธ์\n- **relation**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ความสัมพันธ์เชิงโครงสร้าง Dimensionally Extended 9 Intersection Model (DE-9IM) (เข้ารหัสเป็นค่าข้อความ) เพื่อสอบเทียบกับความสัมพันธ์ของข้อมูลเชิงเรขาคณิตทั้งสองชุด ข้อความนี้มีผลการทดสอบของจุดตัดแต่ละจุดที่แสดงในโครงสร้าง DE-9IM ผลลัพธ์แต่ละรายการจะเป็นอักขระหนึ่งตัวในข้อความ และอาจแสดงเป็นตัวเลข (ขนาดสูงสุดที่แจ้ง: 0,1,2) ค่าบูลีน (T หรือ F) หรืออักขระพราง (สำหรับละเว้นผลลัพธ์: '\\\\*')\n\nเช่น รหัสข้อความ DE-9IM ต่อไปนี้จะใช้ได้สำหรับทดสอบว่าข้อมูลเรขาคณิตของโพลิกอนมีข้อมูลเชิงเรขาคณิตของบรรทัดรายการครบถ้วนหรือไม่: TTTFFTFFT (บูลีน), 'T\\\\*\\\\*\\\\*\\\\*\\\\*\\\\*FF\\\\*' (ละเว้นจุดตัดที่ไม่เกี่ยวข้อง) หรือ '102FF\\\\*FF\\\\*' (รูปแบบขนาด) แต่ละส่วนจะแจ้งผลลัพธ์เหมือน ๆ กัน\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"ringisclockwise","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#ringisclockwise","description":"ระบุว่าจุดในวงแหวนโพลีกอนนั้นเรียงลำดับในทิศทางตามเข็มนาฬิกาหรือไม่","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\n// $feature is a polygon feature\nvar polygonRings = Geometry($feature).rings;\nIIf(RingIsClockwise(polygonRings[0]), 'correct polygon', 'incorrect direction')\n```\n\n","completion":{"label":"RingIsClockwise","detail":"RingIsClockwise(points) -> Boolean","insertText":"RingIsClockwise(${1:points_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าจุดในวงแหวนโพลีกอนนั้นเรียงลำดับในทิศทางตามเข็มนาฬิกาหรือไม่\n\n**พารามิเตอร์**\n\n- **points**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; - อาร์เรย์ของจุดในวงแหวนโพลีกอน\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"rotate","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#rotate","description":"หมุนข้อมูลเชิงเรขาคณิตทวนเข็มนาฬิกาตามองศาที่ระบุ หมุนรอบ ๆ จุดศูนย์กลางหรือจุดหมุนที่กำหนด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนอินพุทฟีเจอร์ที่หมุนรอบจุดศูนย์กลาง 90 องศา\n\n```arcade\nRotate($feature, 90)\n```\n\n","completion":{"label":"Rotate","detail":"Rotate(inputGeometry, angle, rotationOrigin?) -> Geometry","insertText":"Rotate(${1:inputGeometry_}, ${2:angle_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nหมุนข้อมูลเชิงเรขาคณิตทวนเข็มนาฬิกาตามองศาที่ระบุ หมุนรอบ ๆ จุดศูนย์กลางหรือจุดหมุนที่กำหนด\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเชิงเรขาคณิตที่จะหมุน\n- **angle**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - มุมหมุนเป็นองศา\n- **rotationOrigin** (_Optional_): [Point](https://developers.arcgis.com/arcade/guide/types/#point) - จุดที่จะหมุนข้อมูลเชิงเรขาคณิต ค่าเริ่มต้นจนถึงจุดศูนย์กลางของข้อมูลเชิงเรขาคณิต\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"setgeometry","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#setgeometry","description":"กำหนดหรือแทนที่รูปทรงเรขาคณิตบนฟีเจอร์ที่ผู้ใช้กำหนด โปรดทราบว่าฟีเจอร์ที่อ้างอิงในรูปแบบตัวแปรสากลจะเป็นแบบไม่เปลี่ยนแปลง หมายความว่ารูปทรงเรขาคณิตของฟีเจอร์เหล่านี้จะไม่สามารถเปลี่ยนแปลงได้\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nกำหนดรูปทรงเรขาคณิตบนฟีเจอร์ใหม่\n\n```arcade\nvar pointFeature = Feature(Point( ... ), 'name', 'buffer centroid');\nvar mileBuffer = BufferGeodetic(Geometry(pointFeature), 1, 'mile');\nSetGeometry(pointFeature, mileBuffer);\n```\n\n","completion":{"label":"SetGeometry","detail":"SetGeometry(inputFeature, inputGeometry) -> Null","insertText":"SetGeometry(${1:inputFeature_}, ${2:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nกำหนดหรือแทนที่รูปทรงเรขาคณิตบนฟีเจอร์ที่ผู้ใช้กำหนด โปรดทราบว่าฟีเจอร์ที่อ้างอิงในรูปแบบตัวแปรสากลจะเป็นแบบไม่เปลี่ยนแปลง หมายความว่ารูปทรงเรขาคณิตของฟีเจอร์เหล่านี้จะไม่สามารถเปลี่ยนแปลงได้\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ฟีเจอร์ที่จะอัปเดตเรขาคณิต\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - เรขาคณิตที่จะตั้งค่าบนฟีเจอร์อินพุท\n\n**ส่งคืนค่า**: Null"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"simplify","bundle":"geometry","sinceVersion":"1.11","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#simplify","description":"ปรับกระบวนการของข้อมูลเชิงเรขาคณิตให้ซับซ้อนน้อยลง ซึ่งจะเป็นการเปลี่ยนแปลงเรขาคณิตที่กำหนด เพื่อให้สอดคล้องตามหลักโทโพโลจี\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nส่งคืนเรขาคณิตของฟีเจอร์แบบลดความซับซ้อน\n\n```arcade\nSimplify($feature);\n```\n\n","completion":{"label":"Simplify","detail":"Simplify(inputGeometry) -> Geometry","insertText":"Simplify(${1:inputGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.11](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nปรับกระบวนการของข้อมูลเชิงเรขาคณิตให้ซับซ้อนน้อยลง ซึ่งจะเป็นการเปลี่ยนแปลงเรขาคณิตที่กำหนด เพื่อให้สอดคล้องตามหลักโทโพโลจี\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - ข้อมูลเชิงเรขาคณิตที่จะปรับลดความซับซ้อน\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"symmetricdifference","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#symmetricdifference","description":"ประมวลความแตกต่างรูปทรงเรขาคณิตสองรูปในเชิงผลต่างสมมาตร ผลต่างสมมาตรจะรวมถึงส่วนรูปทรงเรขาคณิตของทั้งสองรูปที่ไม่มีส่วนร่วมกันด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงเส้นโพลีไลน์ ที่หมายถึงพื้นที่ที่รูปทรงเรขาคณิตทั้งสองรูปทับกัน\n\n```arcade\nvar geom2 = Polygon({ ... });\nSymmetricDifference($feature, geom2);\n```\n\n","completion":{"label":"SymmetricDifference","detail":"SymmetricDifference(leftGeometry, rightGeometry) -> Geometry","insertText":"SymmetricDifference(${1:leftGeometry_}, ${2:rightGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nประมวลความแตกต่างรูปทรงเรขาคณิตสองรูปในเชิงผลต่างสมมาตร ผลต่างสมมาตรจะรวมถึงส่วนรูปทรงเรขาคณิตของทั้งสองรูปที่ไม่มีส่วนร่วมกันด้วย\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **leftGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - อินสแตนซ์เรขาคณิตที่จะเปรียบเทียบกับ `rightGeometry` ในการดำเนินงาน XOR\n- **rightGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - อินสแตนซ์เรขาคณิตที่จะเปรียบเทียบกับ `leftGeometry` ในการดำเนินงาน XOR\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"touches","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#touches","description":"ก้_Indicates if one geometry touches another geometry___________________________ษฺ.\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงหากรูปทรงเรขาคณิตสัมผัสกัน\n\n```arcade\nvar geom2 = Polygon({ ... });\nTouches($feature, geom2);\n```\n\n","completion":{"label":"Touches","detail":"Touches(geometry1, geometry2) -> Boolean","insertText":"Touches(${1:geometry1_}, ${2:geometry2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nก้_Indicates if one geometry touches another geometry___________________________ษฺ.\n\nเรขาคณิต _Feature ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตที่ใช้ทดสอบหาความสัมพันธ์ 'touches' กับ `geometry2`\n- **geometry2**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตที่ใช้ทดสอบหาความสัมพันธ์ของ 'touches (สัมผัส)' กับ `geometry1`\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Touches](https://esri.github.io/geometry-api-java/doc/Touches.html)\n"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"union","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#union1","description":"สร้างยูเนียนของรูปทรงเรขาคณิตหรือฟีเจอร์ตามทฤษฎีเกี่ยวกับเซ็ตในอาร์เรย์อินพุท แล้วส่งคืนรูปทรงเรขาคณิตเดียว อินพุตทั้งหมดจะต้องเป็นรูปทรงเรขาคณิตประเภทเดียวกัน และมีการอ้างอิงเชิงพื้นที่เหมือนกัน\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar geom2 = Polygon({ ... });\nUnion([ $feature, geom2 ]);\n```\n\n","completion":{"label":"Union","detail":"Union(geometries) -> Geometry","insertText":"Union(${1:geometries_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างยูเนียนของรูปทรงเรขาคณิตหรือฟีเจอร์ตามทฤษฎีเกี่ยวกับเซ็ตในอาร์เรย์อินพุท แล้วส่งคืนรูปทรงเรขาคณิตเดียว อินพุตทั้งหมดจะต้องเป็นรูปทรงเรขาคณิตประเภทเดียวกัน และมีการอ้างอิงเชิงพื้นที่เหมือนกัน\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**\n\n**พารามิเตอร์**\n\n- **geometries**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)&gt; \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Feature](https://developers.arcgis.com/arcade/guide/types/#feature)&gt; - อาร์เรย์ของเรขาคณิต หรืออาร์เรย์ของฟีเจอร์ที่จะรวมเป็นเรขาคณิตเดียว ซึ่งอาจเป็นเรขาคณิตจำนวนเท่าใดก็ได้\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"union","bundle":"geometry","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#union2","description":"สร้างยูเนียนของรูปทรงเรขาคณิตตามทฤษฎีเกี่ยวกับเซ็ต แล้วส่งคืนรูปทรงเรขาคณิตเดียว อินพุตทั้งหมดจะต้องเป็นรูปทรงเรขาคณิตประเภทเดียวกัน และมีการอ้างอิงเชิงพื้นที่เหมือนกัน\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar geom2 = Polygon({ ... });\nvar geom3 = Polygon({ ... });\nvar geom4 = Polygon({ ... });\nUnion(Geometry($feature), geom2, geom3, geom4);\n```\n\n","completion":{"label":"Union","detail":"Union(geometry1, [geometry2, ..., geometryN]?) -> Geometry","insertText":"Union(${1:geometry1_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างยูเนียนของรูปทรงเรขาคณิตตามทฤษฎีเกี่ยวกับเซ็ต แล้วส่งคืนรูปทรงเรขาคณิตเดียว อินพุตทั้งหมดจะต้องเป็นรูปทรงเรขาคณิตประเภทเดียวกัน และมีการอ้างอิงเชิงพื้นที่เหมือนกัน\n\n**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**\n\n**พารามิเตอร์**\n\n- **geometry1**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - เรขาคณิตที่จะรวมเป็นเรขาคณิตเดียว กับเรขาคณิตอื่นๆ\n- **[geometry2, ..., geometryN]** (_Optional_): [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รายการเรขาคณิตหรือฟีเจอร์ที่ดำเนินการต่อเนื่อง ซึ่งจะรวมเป็นเรขาคณิตเดียว ซึ่งอาจเป็นเรขาคณิตจำนวนเท่าใดก็ได้\n\n**ส่งคืนค่า**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry)"}},"parametersInfo":{"min":1,"max":-1}}],{"type":"function","name":"within","bundle":"geometry","sinceVersion":"1.7","link":"https://developers.arcgis.com/arcade/function-reference/geometry_functions/#within","description":"หากรูปทรงเรขาคณิตอยู่ภายในรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ","examples":"\n**ตัวอย่าง**\n\nแสดงค่าจริงถ้าฟีเจอร์ อยู่ภายในรูปหลายเหลี่ยมที่กำหนดให้\n\n```arcade\nvar outerGeom = Polygon({ ... });\nWithin($feature, outerGeom);\n```\n\n","completion":{"label":"Within","detail":"Within(innerGeometry, outerGeometry) -> Boolean","insertText":"Within(${1:innerGeometry_}, ${2:outerGeometry_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.7](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nหากรูปทรงเรขาคณิตอยู่ภายในรูปทรงเรขาคณิตอื่น ให้ระบุด้วย\n\nก้__Feature geometries in the visualization and labeling profiles________________________________ษฺ ก้_are generalized according to the view's scale resolution to improve drawing performance_____________________________________________ษฺ. ก้_Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts_______________________________________________________ษฺ ก้_will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry.______________________________________________________________ษฺ\n\n**พารามิเตอร์**\n\n- **innerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตฐานที่ถูกทดสอบหาความสัมพันธ์ ''within' กับ `outerGeometry`\n- **outerGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - รูปทรงเรขาคณิตเปรียบเทียบ ที่ถูกทดสอบหาความสัมพันธ์ของ 'contains' กับ `innerGeometry`\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Within](https://esri.github.io/geometry-api-java/doc/Within.html)\n"}},"parametersInfo":{"min":2,"max":2}}]},{"id":"logical_functions","title":"ฟังก์ชันลอจิก","items":[{"type":"function","name":"boolean","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#boolean","description":"ความพยายามในการแปลงที่กำหนดค่าที่ไม่ใช่แบบบูลเป็นค่าบูลีน ยกตัวอย่างเช่นค่าข้อความ 'true' จะกลายเป็น `true`","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\n// returns `true`\nBoolean('true')\n```\n\n\n\n```arcade\n// returns `false`. A value of 1 would return `true`\nBoolean(0)\n```\n\n\n\n```arcade\n// returns `false`\nBoolean('hello')\n```\n\n","completion":{"label":"Boolean","detail":"Boolean(value) -> Boolean","insertText":"Boolean(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nความพยายามในการแปลงที่กำหนดค่าที่ไม่ใช่แบบบูลเป็นค่าบูลีน ยกตัวอย่างเช่นค่าข้อความ 'true' จะกลายเป็น `true`\n\n**พารามิเตอร์**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ข้อความหรือค่าตัวเลขจะถูกแปลงเป็นแบบบูล\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"decode","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode","description":"ประเมินนิพจน์กับค่าของข้อมูล และเปรียบเทียบกับค่าจากผลลัพธ์ตามลำดับของพารามิเตอร์ หากนิพจน์ประเมินผลเป็นค่าที่ตรงกัน จะส่งคืนค่าพารามิเตอร์ภายหลัง หากไม่พบค่าที่ตรงกัน จะส่งคืนค่า `default` ซึ่งจะคล้ายกับคำสั่งสลับ/เคส","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\n// returns a meaningful value when a field contains coded values\nvar code = $feature.codedValue;\nvar decodedValue = Decode(code, 1, 'Residential', 2, 'Commercial', 3, 'Mixed', 'Other');\n```\n\n","completion":{"label":"Decode","detail":"Decode(expression, [compare1, return1, ..., compareN, returnN], default) -> Any","insertText":"Decode(${1:expression_}, ${2:[compare1, return1, ..., compareN, returnN]_}, ${3:default_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nประเมินนิพจน์กับค่าของข้อมูล และเปรียบเทียบกับค่าจากผลลัพธ์ตามลำดับของพารามิเตอร์ หากนิพจน์ประเมินผลเป็นค่าที่ตรงกัน จะส่งคืนค่าพารามิเตอร์ภายหลัง หากไม่พบค่าที่ตรงกัน จะส่งคืนค่า `default` ซึ่งจะคล้ายกับคำสั่งสลับ/เคส\n\n**พารามิเตอร์**\n\n- **expression**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - นิพจน์ Arcade ที่ต้องประเมินตามค่าที่สามารถเปรียบเทียบกับค่าเคสที่ระบุได้\n- **[compare1, return1, ..., compareN, returnN]**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ชุดของคู่ค่าเปรียบเทียบและค่าส่งคืน\n- **default**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าเริ่มต้นที่จะส่งคืน หากไม่มีค่าเปรียบเทียบที่ตรงกัน สามารถเป็นค่าประเภทใดก็ได้\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่าส่งคืนที่ตรงกัน หากไม่พบค่าที่ตรงกัน จะส่งคืนค่า `default`"}},"parametersInfo":{"min":3,"max":-1}},{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#defaultvalue","description":"แจ้งกลับค่าเริ่มต้นที่ระบุหากพบค่าเปล่า","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\n// If a feature has no value in the POP_2000 field\n// then 'no data' is returned\nDefaultValue($feature.POP_2000, 'no data')\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(value, defaultValue) -> Any","insertText":"DefaultValue(${1:value_}, ${2:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nแจ้งกลับค่าเริ่มต้นที่ระบุหากพบค่าเปล่า\n\n**พารามิเตอร์**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าอินพุทที่จะเปรียบเทียบกับ `null` หรือ `''` สามารถเป็นค่าประเภทใดก็ได้ แต่ถ้าค่านี้เป็นอาร์เรย์ว่างแล้วอาร์เรย์ที่ว่างเปล่าจะถูกส่งคืน\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ส่งคืนค่านี้ หาก `value` ที่ระบุว่างเปล่า ประเภทข้อมูลสำหรับ 'defaultValue' จะต้องตรงกับประเภทข้อมูลของ 'value'\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nหาก 'value' ว่างเปล่า จะมีการแจ้งกลับเป็น 'defaultValue' ไม่เช่นนั้นจะมีการแจ้งกลับเป็นค่า 'value'"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"equals","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals","description":"ระบุว่าสองค่าเท่ากันหรือไม่ ประเภทวัตถุ (เช่น อาร์เรย์ ฟีเจอร์ พจนานุกรม เรขาคณิต) ส่งคืนค่า จริง เฉพาะเมื่อเป็นวัตถุประเภทเดียวกัน","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","completion":{"label":"Equals","detail":"Equals(value1, value2) -> Boolean","insertText":"Equals(${1:value1_}, ${2:value2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"iif","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#iif","description":"ส่งคืนค่าที่กำหนด หากนิพจน์ตามเงื่อนไขถูกประเมินว่าเป็น `true` และส่งคืนค่าทางเลือก หากประเมินเงื่อนไขเป็น `false`","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\n// returns 'below' if the value is less than 1,000,000.\n// if the value is more than 1,000,000, then returns 'above'\nvar population = $feature.POP_2007;\nIIf(population < 1000000, 'below', 'above');\n```\n\n","completion":{"label":"IIf","detail":"IIf(condition, trueValue, falseValue) -> Any","insertText":"IIf(${1:condition_}, ${2:trueValue_}, ${3:falseValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าที่กำหนด หากนิพจน์ตามเงื่อนไขถูกประเมินว่าเป็น `true` และส่งคืนค่าทางเลือก หากประเมินเงื่อนไขเป็น `false`\n\n**พารามิเตอร์**\n\n- **condition**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - นิพจน์ตรรกะที่ต้องประเมินเป็น `true` หรือ `false`\n- **trueValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่จะส่งคืนหาก `condition` ถูกประเมินเป็น `true` สามารถเป็นค่าประเภทใดก็ได้\n- **falseValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่จะส่งคืน หาก `condition` ถูกประเมินเป็น `false` สามารถเป็นค่าประเภทใดก็ได้\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nหาก `condition` เป็น `true` จะส่งคืน `trueValue` มิเช่นนั้น จะส่งคืนค่า `falseValue`"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"isempty","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#isempty","description":"ผลลัพธ์ `true` ถ้าค่าที่ระบุคือ` null` หรือข้อความที่ว่างเปล่า (เช่น `''`) ส่งคืน `false` สำหรับกรณีอื่นๆ ทั้งหมด รวมถึงอาร์เรย์และดิกชันนารีที่ว่าง","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\n// Returns true\nIsEmpty(null)\n```\n\n\n\n```arcade\n// Returns false\nIsEmpty('hello world')\n```\n\n","completion":{"label":"IsEmpty","detail":"IsEmpty(value) -> Boolean","insertText":"IsEmpty(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nผลลัพธ์ `true` ถ้าค่าที่ระบุคือ` null` หรือข้อความที่ว่างเปล่า (เช่น `''`) ส่งคืน `false` สำหรับกรณีอื่นๆ ทั้งหมด รวมถึงอาร์เรย์และดิกชันนารีที่ว่าง\n\n**พารามิเตอร์**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่ใช้ เมื่อเปรียบเทียบกับ `null` หรือ` '' ` สามารถเป็นค่าประเภทใดก็ได้\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"isnan","bundle":"core","sinceVersion":"1.5","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#isnan","description":"ระบุว่าค่าอินพุตไม่ใช่ตัวเลข (NaN) ใช่หรือไม่ จะถือว่าตัวเลขเป็น NaN ในหนึ่งในสถานการณ์ต่อไปนี้: - `0/0` - `Infinity / Infinity` - `Infinity * 0` - การดำเนินการใดๆ ที่ NaN เป็นตัวดำเนินการ - การแคสท์ข้อความที่ไม่ใช่ตัวเลข หรือ `undefined` เป็นตัวเลข","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\n// Returns true\nIsNan(Infinity / Infinity)\n```\n\n\n\n```arcade\n// Returns false\nIsNan('4')\n```\n\n","completion":{"label":"IsNan","detail":"IsNan(value) -> Boolean","insertText":"IsNan(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.5](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าค่าอินพุตไม่ใช่ตัวเลข (NaN) ใช่หรือไม่ จะถือว่าตัวเลขเป็น NaN ในหนึ่งในสถานการณ์ต่อไปนี้: - `0/0` - `Infinity / Infinity` - `Infinity * 0` - การดำเนินการใดๆ ที่ NaN เป็นตัวดำเนินการ - การแคสท์ข้อความที่ไม่ใช่ตัวเลข หรือ `undefined` เป็นตัวเลข\n\n**พารามิเตอร์**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่จะตรวจสอบว่าเป็น NaN หรือไม่\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"typeof","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#typeof","description":"ส่งคืนประเภทของค่าอินพุต จะส่งคืนหนึ่งประเภทต่อไปนี้: อาร์เรย์, วันที่, ข้อความ, บูลีน, ตัวเลข, พจนานุกรม, ฟีเจอร์, FeatureSet, จุด, โพลีกอน, โพลีไลน์, หลายจุด, ขอบเขต, ฟังก์ชัน, ประเภทที่ไม่รู้จัก","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'Boolean'\n\n```arcade\nTypeOf(true)\n```\n\nพิมพ์ 'Date'\n\n```arcade\nTypeOf(Now())\n```\n\n","completion":{"label":"TypeOf","detail":"TypeOf(value) -> Text","insertText":"TypeOf(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนประเภทของค่าอินพุต จะส่งคืนหนึ่งประเภทต่อไปนี้: อาร์เรย์, วันที่, ข้อความ, บูลีน, ตัวเลข, พจนานุกรม, ฟีเจอร์, FeatureSet, จุด, โพลีกอน, โพลีไลน์, หลายจุด, ขอบเขต, ฟังก์ชัน, ประเภทที่ไม่รู้จัก\n\n**พารามิเตอร์**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าอินพุท, ตัวแปร, หรือแอตทริบิวต์ฟีเจอร์\n\n**ส่งคืนค่า**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"when","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/logical_functions/#when","description":"ประเมินชุดของนิพจน์เงื่อนไข จนกว่าจะพบนิพจน์ที่ประเมินเป็น `true`","examples":"\n**ตัวอย่าง**\n\nจัดกลุ่มค่าตัวเลขในฟิลด์ เพื่อให้เป็นการจัดอันดับ (ข้อความ)  \nหากสมการทั้งหมดให้ผลเป็น `false` ค่า 'n/a' จะถูกส่งคืน\n\n```arcade\nvar density = $feature.densityField;\nvar ranking = When(density < 50, 'low', density >=50 && density < 100, 'medium', density >= 100, 'high', 'n/a');\n```\n\n","completion":{"label":"When","detail":"When(expression1, result1, [expression2, result2, ..., expressionN, resultN]?, defaultValue) -> Any","insertText":"When(${1:expression1_}, ${2:result1_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nประเมินชุดของนิพจน์เงื่อนไข จนกว่าจะพบนิพจน์ที่ประเมินเป็น `true`\n\n**พารามิเตอร์**\n\n- **expression1**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - นิพจน์เงื่อนไข หาประเมินผลเป็น `true` ระบบจะส่งคืน `result1`\n- **result1**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ผลลัพธ์จะถูกส่งคืนเมื่อ `expression1` ประเมินผลเป็น `true` สามารถเป็นค่าประเภทใดก็ได้\n- **[expression2, result2, ..., expressionN, resultN]** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ชุดของนิพจน์เงื่อนไข และจะส่งคืนค่าเมื่อนิพจน์ที่กำหนดประเมินเป็น `true` สามารถเป็นค่าประเภทใดก็ได้\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ส่งค่านี้กลับ ถ้าทุกสมการประเมินแล้วได้ผลเป็น `false` สามารถเป็นค่าประเภทใดก็ได้\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)"}},"parametersInfo":{"min":3,"max":-1}}]},{"id":"voxel_functions","title":"ฟังก์ชันว็อกเซล","items":[{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.30","link":"https://developers.arcgis.com/arcade/function-reference/voxel_functions/#defaultvalue","description":"ส่งคืนค่าเริ่มต้นที่กำหนดไว้ หากไม่มีชื่อฟิลด์ในว็อกเซล หรือค่าของฟิลด์ที่กำหนดเป็น `null` หรือเป็นค่าข้อความที่ว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nส่งคืน \"n/a\" หากไม่มีคุณลักษณะว็อกเซลหรือว่างเปล่า\n\n```arcade\nDefaultValue($voxel, \"sea_temp\", \"n/a\")\n// Returns the sea_temp value if available\n// or n/a if not available\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputVoxel, fieldName, defaultValue) -> Any","insertText":"DefaultValue(${1:inputVoxel_}, ${2:fieldName_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.30](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเริ่มต้นที่กำหนดไว้ หากไม่มีชื่อฟิลด์ในว็อกเซล หรือค่าของฟิลด์ที่กำหนดเป็น `null` หรือเป็นค่าข้อความที่ว่างเปล่า\n\n**พารามิเตอร์**\n\n- **inputVoxel**: [Voxel](https://developers.arcgis.com/arcade/guide/types/#voxel) - ว็อกเซลอินพุทที่จะตรวจสอบ\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะตรวจสอบ\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืนหากไม่มีชื่อฟิลด์ หรือค่า ณ ฟิลด์ที่กำหนดเป็น `null` หรือเป็นค่าข้อความที่ว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่าสำหรับฟิลด์ที่กำหนด หากกำหนดค่าไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"haskey","bundle":"core","sinceVersion":"1.30","link":"https://developers.arcgis.com/arcade/function-reference/voxel_functions/#haskey","description":"ระบุว่าว็อกเซลมีคีย์อินพุทหรือไม่","examples":"\n**ตัวอย่าง**\n\nส่งคืน `true` หากว็อกเซลมีฟิลด์ชื่อ `sea_temp`\n\n```arcade\nHasKey($voxel, 'sea_temp');\n```\n\n","completion":{"label":"HasKey","detail":"HasKey(inputVoxel, key) -> Boolean","insertText":"HasKey(${1:inputVoxel_}, ${2:key_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.30](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าว็อกเซลมีคีย์อินพุทหรือไม่\n\n**พารามิเตอร์**\n\n- **inputVoxel**: [Voxel](https://developers.arcgis.com/arcade/guide/types/#voxel) - ว็อกเซลที่จะตรวจสอบสำหรับชื่อฟิลด์\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.30","link":"https://developers.arcgis.com/arcade/function-reference/voxel_functions/#hasvalue","description":"ระบุว่าว็อกเซลมีฟิลด์ที่กำหนดหรือไม่ และฟิลด์นั้นมีค่าหรือไม่","examples":"\n**ตัวอย่าง**\n\nส่งคืนเท็จ หากไม่มีคุณลักษณะว็อกเซลหรือว่างเปล่า\n\n```arcade\niif(HasValue($voxel, \"sea_temp\"), ($voxel.sea_temp - 32) * 5/9, false)\n// Returns the temp in celsius if sea_temp is available\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputVoxel, fieldName) -> Boolean","insertText":"HasValue(${1:inputVoxel_}, ${2:fieldName_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.30](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าว็อกเซลมีฟิลด์ที่กำหนดหรือไม่ และฟิลด์นั้นมีค่าหรือไม่\n\n**พารามิเตอร์**\n\n- **inputVoxel**: [Voxel](https://developers.arcgis.com/arcade/guide/types/#voxel) - ว็อกเซลที่จะตรวจสอบ\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - ชื่อฟิลด์ที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}}]},{"id":"date_functions","title":"ฟังก์ชันวันที่","items":[{"type":"function","name":"changetimezone","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone","description":"การเปลี่ยนแปลงโซนเวลาที่ใช้ในการแสดงค่าวันที่ที่กำหนด หาก `dateValue` อินพุท มีโซนเวลาเป็น `unknown` ค่าวันที่เอาท์พุทจะแสดงวันที่และเวลาเหมือนกันกับ `dateValue` อินพุท แต่จะได้รับการกำหนด `newTimeZone`","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","completion":{"label":"ChangeTimeZone","detail":"ChangeTimeZone(dateValue, newTimeZone) -> Date","insertText":"ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [ToLocal()](https://developers.arcgis.com/arcade/function-reference/date_functions/#tolocal)\n* [ToUTC()](https://developers.arcgis.com/arcade/function-reference/date_functions/#toutc)\n"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"date","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#date1","description":"สร้างวัตถุ วันที่ จากชุดของพารามิเตอร์ ตามค่าเริ่มต้น วันที่จะถูกสร้างขึ้นในโซนเวลาของบริบทการดำเนินการของโปรไฟล์","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","completion":{"label":"Date","detail":"Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date","insertText":"Date(${1:year_}, ${2:month_}, ${3:day_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวัตถุ วันที่ จากชุดของพารามิเตอร์ ตามค่าเริ่มต้น วันที่จะถูกสร้างขึ้นในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"}},"parametersInfo":{"min":3,"max":8}},{"type":"function","name":"date","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#date2","description":"สร้างวันที่ด้วยหมายเลข Unix epoch ที่กำหนด ตามค่าเริ่มต้น วันที่จะแสดงในโซนเวลาของบริบทการดำเนินการของโปรไฟล์ หากไม่ได้ระบุ epoch จะสร้างวันที่ ณ วันที่และเวลาปัจจุบันในโซนเวลาเริ่มต้นของโปรไฟล์ หากระบุค่า `null` สำหรับ epoch, จะถูกแปลงอย่างชัดแจ้งเป็น `0` และจะส่งคืนวันที่สำหรับ 1 มกราคม 1970 UTC","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","completion":{"label":"Date","detail":"Date(epoch?) -> Date","insertText":"Date($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างวันที่ด้วยหมายเลข Unix epoch ที่กำหนด ตามค่าเริ่มต้น วันที่จะแสดงในโซนเวลาของบริบทการดำเนินการของโปรไฟล์ หากไม่ได้ระบุ epoch จะสร้างวันที่ ณ วันที่และเวลาปัจจุบันในโซนเวลาเริ่มต้นของโปรไฟล์ หากระบุค่า `null` สำหรับ epoch, จะถูกแปลงอย่างชัดแจ้งเป็น `0` และจะส่งคืนวันที่สำหรับ 1 มกราคม 1970 UTC\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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [Now()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Timestamp()](https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp)\n* [Today()](https://developers.arcgis.com/arcade/function-reference/date_functions/#today)\n"}},"parametersInfo":{"min":0,"max":1}},{"type":"function","name":"date","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#date3","description":"สร้างค่าวันที่จากค่าข้อความ ISO 8601 หากระบุออฟเซ็ต UTC วันที่จะยังคงแสดงอยู่ในโซนเวลาของโปรไฟล์ หากไม่ได้ระบุค่าข้อความ จะสร้างวันที่ ณ วันที่และเวลาปัจจุบันในโซนเวลาของโปรไฟล์","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","completion":{"label":"Date","detail":"Date(timestamp?) -> Date","insertText":"Date($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าวันที่จากค่าข้อความ 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)"}},"parametersInfo":{"min":0,"max":1}},{"type":"function","name":"date","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#date4","description":"สร้างวันที่จากค่า DateOnly พร้อมค่าเวลาและโซนเวลาตัวเลือกเสริม","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","completion":{"label":"Date","detail":"Date(dateOnlyValue, timeValue?, timeZone?) -> Date","insertText":"Date(${1:dateOnlyValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"}},"parametersInfo":{"min":1,"max":3}},{"type":"function","name":"date","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#date5","description":"สร้างสำเนาของวันที่ที่กำหนด","examples":"\n**ตัวอย่าง**\n\nสร้างสำเนาของค่าวันที่ปัจจุบัน\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n","completion":{"label":"Date","detail":"Date(dateValue) -> Date","insertText":"Date(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}}],[{"type":"function","name":"dateadd","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1","description":"เพิ่มระยะเวลาแบบเจาะจงในหน่วยที่กำหนดลงในวันที่ แล้วส่งคืนวันที่ใหม่ หากวันที่มีโซนเวลา IANA จะใช้เวลาออมแสงและลอจิกควบคุมโซนเวลาอื่นๆ","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","completion":{"label":"DateAdd","detail":"DateAdd(dateValue, addValue, units?) -> Date","insertText":"DateAdd(${1:dateValue_}, ${2:addValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเพิ่มระยะเวลาแบบเจาะจงในหน่วยที่กำหนดลงในวันที่ แล้วส่งคืนวันที่ใหม่ หากวันที่มีโซนเวลา 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)"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"dateadd","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2","description":"เพิ่มระยะเวลาที่ระบุในหน่วยที่กำหนดลงในค่า DateOnly จากนั้นส่งคืนค่า DateOnly ใหม่","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","completion":{"label":"DateAdd","detail":"DateAdd(dateOnlyValue, addValue, units?) -> DateOnly","insertText":"DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"dateadd","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3","description":"เพิ่มระยะเวลาที่ระบุในหน่วยที่กำหนดลงในค่าเวลา แล้วส่งคืนค่าเวลาใหม่","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","completion":{"label":"DateAdd","detail":"DateAdd(timeValue, addValue, units?) -> Time","insertText":"DateAdd(${1:timeValue_}, ${2:addValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":2,"max":3}}],[{"type":"function","name":"datediff","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1","description":"ลบวันที่สองวัน แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด","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","completion":{"label":"DateDiff","detail":"DateDiff(date1, date2, units?, timeZone?) -> Number","insertText":"DateDiff(${1:date1_}, ${2:date2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nลบวันที่สองวัน แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด\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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"datediff","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2","description":"ลบสองค่า DateOnly แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด","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","completion":{"label":"DateDiff","detail":"DateDiff(dateOnly1, dateOnly2, units?) -> Number","insertText":"DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"datediff","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3","description":"ลบสองค่าเวลา แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด","examples":"\n**ตัวอย่าง**\n\nลบสองค่าเวลา แล้วส่งคืนส่วนต่างเป็นชั่วโมง\n\n```arcade\nDateDiff(Time(23,0), Time(9,0), 'hours')\n// returns 14\n```\n\n","completion":{"label":"DateDiff","detail":"DateDiff(time1, time2, units?) -> Number","insertText":"DateDiff(${1:time1_}, ${2:time2_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":2,"max":3}}],[{"type":"function","name":"dateonly","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1","description":"สร้างค่า DateOnly โดยอิงตามวันที่ที่กำหนดในโซนเวลาของบริบทการดำเนินการของโปรไฟล์","examples":"\n**ตัวอย่าง**\n\nส่งคืน DateOnly ปัจจุบัน (ไม่มีเวลา)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n","completion":{"label":"DateOnly","detail":"DateOnly() -> DateOnly","insertText":"DateOnly($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่า DateOnly โดยอิงตามวันที่ที่กำหนดในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"dateonly","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2","description":"สร้างค่า DateOnly จากอินพุทที่แสดงปี เดือน และวัน","examples":"\n**ตัวอย่าง**\n\nสร้างค่า DateOnly จากอินพุทที่แสดงปี เดือน และวัน\n\n```arcade\nDateOnly(1996, 11, 10)\n// returns 1996-12-10\n```\n\n","completion":{"label":"DateOnly","detail":"DateOnly(year, month, day) -> DateOnly","insertText":"DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"dateonly","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3","description":"สร้างวันที่ DateOnly ด้วยตัวเลข Unix epoch ที่กำหนด","examples":"\n**ตัวอย่าง**\n\nส่งคืน DateOnly จากตัวเลขของมิลลิวินาทีตั้งแต่ 1 มกราคม 1970\n\n```arcade\nDateOnly(1476987783555);\n// returns 2016-10-20\n```\n\n","completion":{"label":"DateOnly","detail":"DateOnly(epoch) -> DateOnly","insertText":"DateOnly(${1:epoch_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"dateonly","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4","description":"สร้างค่า DateOnly จากอินพุทข้อความที่แสดงวันที่จัดรูปแบบ ISO หรือแพทเทิร์นข้อความจัดรูปแบบอื่น","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","completion":{"label":"DateOnly","detail":"DateOnly(textValue, format?) -> DateOnly","insertText":"DateOnly(${1:textValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"dateonly","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5","description":"สร้างค่า DateOnly จากวันที่ที่กำหนด","examples":"\n**ตัวอย่าง**\n\nส่งคืน DateOnly จากวันที่ที่กำหนด\n\n```arcade\nDateOnly(Date(2008,10,11,10,30));\n// returns 2008-11-11\n```\n\n","completion":{"label":"DateOnly","detail":"DateOnly(dateValue) -> DateOnly","insertText":"DateOnly(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"dateonly","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6","description":"สร้างสำเนาของค่า DateOnly","examples":"\n**ตัวอย่าง**\n\nสร้างสำเนาของค่า DateOnly\n\n```arcade\nvar originalDateOnly = DateOnly(1996,11,10)\nvar copiedDateOnly = DateOnly(originalDateOnly)\nreturn copiedDateOnly;\n```\n\n","completion":{"label":"DateOnly","detail":"DateOnly(dateOnlyValue) -> DateOnly","insertText":"DateOnly(${1:dateOnlyValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"day","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#day","description":"ส่งคืนวันของเดือนของวันที่ที่กำหนด","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","completion":{"label":"Day","detail":"Day(dateValue) -> Number","insertText":"Day(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนวันของเดือนของวันที่ที่กำหนด\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)"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"hour","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1","description":"ส่งคืนชั่วโมงของเวลาในค่าวันที่หรือเวลาที่กำหนด (0-23)","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","completion":{"label":"Hour","detail":"Hour(dateTimeValue) -> Number","insertText":"Hour(${1:dateTimeValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชั่วโมงของเวลาในค่าวันที่หรือเวลาที่กำหนด (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)"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"isomonth","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth","description":"ส่งคืนเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าตั้งแต่ 1-12 โดยที่มกราคมคือ `1` และธันวาคมคือ `12`","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","completion":{"label":"ISOMonth","detail":"ISOMonth(dateValue) -> Number","insertText":"ISOMonth(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"isoweek","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek","description":"ส่งคืนสัปดาห์ในปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ช่วงค่าตั้งแต่ 1-53 โดยที่สัปดาห์แรกของปีคือ `1` และสัปดาห์สุดท้ายของปีคือ `52` หรือ `53` ขึ้นอยู่กับปี","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","completion":{"label":"ISOWeek","detail":"ISOWeek(dateValue) -> Number","insertText":"ISOWeek(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"isoweekday","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday","description":"ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าจากวันที่ 1-7 โดยที่วันจันทร์คือ `1` และวันอาทิตย์คือ `7`","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","completion":{"label":"ISOWeekday","detail":"ISOWeekday(dateValue) -> Number","insertText":"ISOWeekday(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"isoyear","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear","description":"ส่งคืนปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601","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","completion":{"label":"ISOYear","detail":"ISOYear(dateValue) -> Number","insertText":"ISOYear(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"millisecond","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1","description":"ส่งคืนมิลลิวินาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด","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","completion":{"label":"Millisecond","detail":"Millisecond(dateTimeValue) -> Number","insertText":"Millisecond(${1:dateTimeValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนมิลลิวินาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด\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)"}},"parametersInfo":{"min":1,"max":1}}],[{"type":"function","name":"minute","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1","description":"ส่งคืนนาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด","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","completion":{"label":"Minute","detail":"Minute(dateTimeValue) -> Number","insertText":"Minute(${1:dateTimeValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนนาทีของเวลาในค่าเวลาหรือวันที่ที่กำหนด\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)"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"month","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#month","description":"ส่งคืนเดือนของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-11 โดยที่มกราคมคือ `0` และธันวาคมคือ `11`","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","completion":{"label":"Month","detail":"Month(dateValue) -> Number","insertText":"Month(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเดือนของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-11 โดยที่มกราคมคือ `0` และธันวาคมคือ `11`\n\n**พารามิเตอร์**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [DateOnly](https://developers.arcgis.com/arcade/guide/types/#dateonly) - ค่าวันที่ซึ่งจะรับเดือน เริ่มตั้งแต่เวอร์ชัน 1.24 จะรองรับค่า DateOnly\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ISOMonth()](https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"now","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#now","description":"สร้างค่าวันที่ซึ่งแสดงวันที่และเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์","examples":"\n**ตัวอย่าง**\n\nส่งคืนวันที่และเวลาปัจจุบันในโซนเวลาเริ่มต้นของโปรไฟล์\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nNow()\n```\n\n","completion":{"label":"Now","detail":"Now() -> Date","insertText":"Now($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าวันที่ซึ่งแสดงวันที่และเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [Date()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Timestamp()](https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp)\n* [Today()](https://developers.arcgis.com/arcade/function-reference/date_functions/#today)\n"}},"parametersInfo":{"min":0,"max":0}},[{"type":"function","name":"second","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#second1","description":"ส่งคืนวินาทีของเวลาในค่าวันที่หรือเวลาที่กำหนด","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","completion":{"label":"Second","detail":"Second(dateTimeValue) -> Number","insertText":"Second(${1:dateTimeValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนวินาทีของเวลาในค่าวันที่หรือเวลาที่กำหนด\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)"}},"parametersInfo":{"min":1,"max":1}}],[{"type":"function","name":"time","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#time1","description":"สร้างค่าเวลาซึ่งแสดงเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์","examples":"\n**ตัวอย่าง**\n\nส่งคืนเวลาที่แสดงในปัจจุบันโดยใช้โซนเวลาเริ่มต้นของโปรไฟล์\n\n```arcade\n// Time represents 12:41:20 PM\nTime()\n```\n\n","completion":{"label":"Time","detail":"Time() -> Time","insertText":"Time($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าเวลาซึ่งแสดงเวลาปัจจุบันในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"time","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#time2","description":"สร้างค่าเวลาจากอินพุทที่แสดงชั่วโมง นาที วินาที และมิลลิวินาที","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","completion":{"label":"Time","detail":"Time(hours, minutes, seconds?, milliseconds?) -> Time","insertText":"Time(${1:hours_}, ${2:minutes_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":2,"max":4}},{"type":"function","name":"time","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#time3","description":"สร้างค่าเวลาจากตัวเลขที่กำหนด ซึ่งแสดงมิลลิวินาทีนับจากเที่ยงคืน","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","completion":{"label":"Time","detail":"Time(numValue) -> Time","insertText":"Time(${1:numValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"time","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#time4","description":"สร้างค่าเวลาจากอินพุทข้อความที่แสดงเวลา พร้อมอินพุทตัวเลือกเสริมที่ระบุรูปแบบของข้อความ","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","completion":{"label":"Time","detail":"Time(textValue, format?) -> Time","insertText":"Time(${1:textValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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`: ชั่วโมงแบบพลเรือน ไม่แพ็ด (1 - 12)  \n  - `hh`: ชั่วโมงแบบพลเรือน แพ็ด (01 - 12)  \n  - `H`: ชั่วโมงแบบทหาร ไม่แพ็ด (0 - 23)  \n  - `HH`: ชั่วโมงแบบทหาร แพ็ด (00 - 23)  \n  - `m`: นาที ไม่แพ็ด (0 - 59)  \n  - `mm`: นาที แพ็ด (00 - 59)  \n  - `s`: วินาที ไม่แพ็ด (0 - 59)  \n  - `ss`: วินาที แพ็ด (00 - 59)  \n  - `A`: AM/PM  \n\n\n**ส่งคืนค่า**: [Time](https://developers.arcgis.com/arcade/guide/types/#time)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"time","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#time5","description":"สร้างค่าเวลาจากวันที่ที่กำหนด","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","completion":{"label":"Time","detail":"Time(dateValue) -> Time","insertText":"Time(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"time","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#time6","description":"สร้างสำเนาของค่าเวลา","examples":"\n**ตัวอย่าง**\n\nสร้างสำเนาของค่าเวลา\n\n```arcade\nvar originalTime = Time(23,32,00)\nvar copiedTime = Time(originalTime)\nreturn copiedTime;\n```\n\n","completion":{"label":"Time","detail":"Time(timeValue) -> Time","insertText":"Time(${1:timeValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}}],{"type":"function","name":"timestamp","bundle":"core","sinceVersion":"1.1","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp","description":"สร้างค่าวันที่ซึ่งใช้แทนวันที่และเวลาปัจจุบันใน UTC","examples":"\n**ตัวอย่าง**\n\nสร้างวันที่ในเวลา UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n","completion":{"label":"Timestamp","detail":"Timestamp() -> Date","insertText":"Timestamp($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างค่าวันที่ซึ่งใช้แทนวันที่และเวลาปัจจุบันใน UTC\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Date()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Now()](https://developers.arcgis.com/arcade/function-reference/date_functions/#now)\n* [Today()](https://developers.arcgis.com/arcade/function-reference/date_functions/#today)\n"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"timezone","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone","description":"ส่งคืนโซนเวลาของวันที่ที่กำหนด โซนเวลาจะเป็นหนึ่งในค่าต่อไปนี้:\n\n- ข้อความแทนรายการในฐานข้อมูลโซนเวลา IANA (เช่น `America/New_York`)\n\n- ข้อความแทนชั่วโมงและนาทีซึ่งควรเพิ่มลงใน UTC (เช่น `+07:00` หรือ `-03:00`)\n\n- `system` - โซนเวลาจะอิงตามโซนเวลาท้องถิ่นบนไคลเอ็นต์ของโซนเวลาท้องถิ่นของระบบ\n\n- `UTC` - เวลาสากลเชิงพิกัด\n\n- `Unknown` - ไม่ได้กำหนดข้อมูลโซนเวลาไว้","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","completion":{"label":"TimeZone","detail":"TimeZone(dateValue) -> Text","insertText":"TimeZone(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"timezoneoffset","bundle":"core","sinceVersion":"1.24","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset","description":"ส่งคืนออฟเซ็ตโซนเวลาเป็นมิลลิวินาทีจาก UTC สำหรับวันที่ที่กำหนด","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","completion":{"label":"TimeZoneOffset","detail":"TimeZoneOffset(dateValue) -> Number","insertText":"TimeZoneOffset(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"today","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#today","description":"ส่งคืนวันที่ปัจจุบัน ณ เที่ยงคืนในโซนเวลาของบริบทการดำเนินการของโปรไฟล์","examples":"\n**ตัวอย่าง**\n\nส่งคืนวันที่ปัจจุบัน ณ เที่ยงคืน เช่น Mon Oct 24 2016 00:00:00 GMT-0700 (PDT)\n\n```arcade\nToday()\n```\n\n","completion":{"label":"Today","detail":"Today() -> Date","insertText":"Today($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนวันที่ปัจจุบัน ณ เที่ยงคืนในโซนเวลาของบริบทการดำเนินการของโปรไฟล์\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Arcade execution context](https://developers.arcgis.com/arcade/guide/profiles/#execution-context)\n* [DateOnly()](https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly)\n* [Date()](https://developers.arcgis.com/arcade/function-reference/date_functions/#date)\n* [Timestamp()](https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp)\n* [Now()](https://developers.arcgis.com/arcade/function-reference/date_functions/#now)\n"}},"parametersInfo":{"min":0,"max":0}},{"type":"function","name":"tolocal","bundle":"core","sinceVersion":"1.1","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#tolocal","description":"สร้างค่าวันที่ใหม่ที่ตรงกับ epoch ของวันที่อินพุท และตั้งค่าโซนเวลาเป็นโซนเวลาท้องถิ่นหรือระบบของไคลเอ็นต์","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","completion":{"label":"ToLocal","detail":"ToLocal(inputDate) -> Date","insertText":"ToLocal(${1:inputDate_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ChangeTimeZone()](https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"toutc","bundle":"core","sinceVersion":"1.1","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#toutc","description":"สร้างค่าวันที่ใหม่ซึ่งตรงกับ epoch ของวันที่อินพุท และตั้งค่าโซนเวลาเป็น UTC (เวลาสากลเชิงพิกัด)","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","completion":{"label":"ToUTC","detail":"ToUTC(inputDate) -> Date","insertText":"ToUTC(${1:inputDate_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [ChangeTimeZone()](https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone)\n"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"week","bundle":"core","sinceVersion":"1.14","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#week","description":"ส่งคืนเลขสัปดาห์ในปีของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-53 โดยที่สัปดาห์แรกของปีคือ `0` และสัปดาห์สุดท้ายของปีคือ `51` `52` หรือ `53` ขึ้นอยู่กับปี สัปดาห์แรกและสัปดาห์สุดท้าย อาจไม่ได้มีความยาวครบเจ็ดวัน","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","completion":{"label":"Week","detail":"Week(dateValue, startDay?) -> Number","insertText":"Week(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"weekday","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday","description":"ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ช่วงค่าจาก 0-6 โดยที่วันอาทิตย์คือ `0` และวันเสาร์คือ `6`","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","completion":{"label":"Weekday","detail":"Weekday(dateValue) -> Number","insertText":"Weekday(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ช่วงค่าจาก 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)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"year","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/date_functions/#year","description":"ส่งคืนปีของวันที่ที่กำหนด","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","completion":{"label":"Year","detail":"Year(dateValue) -> Number","insertText":"Year(${1:dateValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนปีของวันที่ที่กำหนด\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)"}},"parametersInfo":{"min":1,"max":1}}]},{"id":"array_functions","title":"ฟังก์ชันอาร์เรย์","items":[{"type":"function","name":"all","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#all","description":"ระบุว่าองค์ประกอบทั้งหมดในอาร์เรย์ที่กำหนดผ่านการทดสอบจากฟังก์ชันที่ให้มาหรือไม่ ส่งกลับ `true` หากฟังก์ชั่นส่งกลับ `false` สำหรับรายการทั้งหมดในอาร์เรย์อินพุต","examples":"\n**ตัวอย่าง**\n\nส่งกลับค่า `false` เนื่องจากองค์ประกอบบางอย่างในอาร์เรย์อินพุตไม่ผ่านการทดสอบ `isEven`\n\n```arcade\n// isEven is used to test if each element in the array is even\n// it returns true if the element is divisible by two, false if is not\nfunction isEven(value) { return value % 2 == 0 }\n// The isEven function will execute for each element in the array,\n// returning the following values: false, true, false, true, false\n// Since some of the values in the array did not pass the test\n// (return true), the return value will be false\nAll([1,2,3,4,5], isEven)\n```\n\nใช้ฟังก์ชัน Arcade `isEmpty` ที่มีอยู่ใน `testFunction` สิ่งนี้ถูกต้องเนื่องจาก \"isEmpty\" รับพารามิเตอร์เดียวและส่งกลับค่าบูลีน นิพจน์นี้ส่งคืน `true` หากฟิลด์อื่น ๆ ทั้งหมดว่างเปล่า\n\n```arcade\nvar myArray = [ $feature.field1, $feature.field2, $feature.field3, $feature.field4];\nAll(myArray, isEmpty)\n```\n\n","completion":{"label":"All","detail":"All(inputArray, testFunction) -> Boolean","insertText":"All(${1:inputArray_}, ${2:testFunction_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าองค์ประกอบทั้งหมดในอาร์เรย์ที่กำหนดผ่านการทดสอบจากฟังก์ชันที่ให้มาหรือไม่ ส่งกลับ `true` หากฟังก์ชั่นส่งกลับ `false` สำหรับรายการทั้งหมดในอาร์เรย์อินพุต\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์อินพุตที่จะทดสอบ\n- **testFunction**: [Function](https://developers.arcgis.com/arcade/guide/logic/#user-defined-functions) - ฟังก์ชันที่ใช้เพื่อทดสอบแต่ละองค์ประกอบในอาร์เรย์ `testFunction(value: Any) -> Boolean` ฟังก์ชันจะต้องส่งคืนค่า truthy หากองค์ประกอบผ่านการทดสอบ ฟังก์ชันสามารถเป็นฟังก์ชันที่ผู้ใช้กำหนด หรือฟังก์ชัน Arcade หลักที่กำหนดด้วยพารามิเตอร์ต่อไปนี้:\n\n  - **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - แทนค่าขององค์ประกอบในอาร์เรย์\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)  \n`true` หากฟังก์ชันทดสอบส่งคืนค่า truthy สำหรับองค์ประกอบทั้งหมด"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"any","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#any","description":"ทดสอบว่ามีองค์ประกอบใดในอาร์เรย์ที่กำหนดผ่านการทดสอบจากฟังก์ชันที่ให้มา ส่งกลับ `true` หากฟังก์ชั่นส่งกลับ `false` สำหรับรายการอย่างน้อยหนึ่งรายการในอาร์เรย์อินพุต","examples":"\n**ตัวอย่าง**\n\nส่งกลับค่า `true` เนื่องจากองค์ประกอบอย่างน้อยหนึ่งรายการในอาร์เรย์อินพุตผ่านการทดสอบ `isEven`\n\n```arcade\n// isEven is used to test if each element in the array is even\n// it returns true if the element is divisible by two, false if is not\nfunction isEven(value) { return value % 2 == 0 } \n// The isEven function will execute for each element in the array,\n// returning the following values: false, true, false, true, false\n// Since at least one value in the array passed the test\n// (return true), the return value will be true\nAny([1,2,3,4,5], isEven)\n```\n\nใช้ฟังก์ชัน Arcade `isEmpty` ที่มีอยู่ใน `testFunction` สิ่งนี้ถูกต้องเนื่องจาก \"isEmpty\" รับพารามิเตอร์เดียวและส่งกลับค่าบูลีน นิพจน์นี้ส่งคืน `true` หากฟิลด์อื่น ๆ ทั้งหมดว่างเปล่า\n\n```arcade\nvar myArray = [ $feature.field1, $feature.field2, $feature.field3, $feature.field4];\nAny(myArray, isEmpty)\n```\n\n","completion":{"label":"Any","detail":"Any(inputArray, testFunction) -> Boolean","insertText":"Any(${1:inputArray_}, ${2:testFunction_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nทดสอบว่ามีองค์ประกอบใดในอาร์เรย์ที่กำหนดผ่านการทดสอบจากฟังก์ชันที่ให้มา ส่งกลับ `true` หากฟังก์ชั่นส่งกลับ `false` สำหรับรายการอย่างน้อยหนึ่งรายการในอาร์เรย์อินพุต\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์อินพุตที่จะทดสอบ\n- **testFunction**: [Function](https://developers.arcgis.com/arcade/guide/logic/#user-defined-functions) - ฟังก์ชันที่ใช้เพื่อทดสอบแต่ละองค์ประกอบในอาร์เรย์ `testFunction(value: Any) -> Boolean` ฟังก์ชันจะต้องส่งคืนค่า truthy หากองค์ประกอบผ่านการทดสอบ ฟังก์ชันสามารถเป็นฟังก์ชันที่ผู้ใช้กำหนด หรือฟังก์ชัน Arcade หลักที่กำหนดด้วยพารามิเตอร์ต่อไปนี้:\n\n  - **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - แทนค่าขององค์ประกอบในอาร์เรย์\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)  \n`true` หากฟังก์ชันทดสอบส่งคืนค่า truthy สำหรับองค์ประกอบใดๆ"}},"parametersInfo":{"min":2,"max":2}},[{"type":"function","name":"array","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#array1","description":"ส่งคืนอาร์เรย์ใหม่ของความยาวที่กำหนด","examples":"\n**ตัวอย่าง**\n\nส่งคืน `[null, null, null, null, null]`\n\n```arcade\nArray(5)\n```\n\nส่งคืน `[\"hello\",\"hello\"]`\n\n```arcade\nArray(2, \"hello\")\n```\n\nส่งคืน `[1,1,1]`\n\n```arcade\nArray(3, 1)\n```\n\n","completion":{"label":"Array","detail":"Array(arrayLength, defaultValue?) -> Array<Any>","insertText":"Array(${1:arrayLength_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนอาร์เรย์ใหม่ของความยาวที่กำหนด\n\n**พารามิเตอร์**\n\n- **arrayLength**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ความยาวที่ต้องการสำหรับอาร์เรย์ใหม่\n- **defaultValue** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าของแต่ละองค์ประกอบในอาร์เรย์ หากไม่ได้กำหนดค่า ค่าเริ่มต้นจะเป็น `null`\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"array","bundle":"core","sinceVersion":"1.23","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#array2","description":"ส่งคืนสำเนาแบบตื้นหรือลึกของอาร์เรย์อินพุท","examples":"\n**ตัวอย่าง**\n\nสร้างสำเนาแบบตื้นของอาร์เรย์อินพุท\n\n```arcade\nvar person1 = {\n  firstName: \"Jane\",\n  lastName: \"Doe\"\n};\nvar person2 = {\n  firstName: \"John\",\n  lastName: \"Smith\"\n};\nvar people = [ person1, person2 ];\n// create a shallow copy of the array\nvar copiedArray = Array(people);\npeople[0] == copiedArray[0];\n// returns true\n// this is a shallow copy of the array, so the elements share the same references\n```\n\nสร้างสำเนาแบบลึกของอาร์เรย์อินพุท\n\n```arcade\nvar deepCopy = Array(people, true);\npeople[0] == deepCopy[0]\n// returns false\n// this is a deep copy of the array, so the elements do NOT share the same references\n```\n\n","completion":{"label":"Array","detail":"Array(inputArray, deep?) -> Array<Any>","insertText":"Array(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนสำเนาแบบตื้นหรือลึกของอาร์เรย์อินพุท\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะคัดลอก\n- **deep** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - เมื่อเป็น `true` สร้างสำเนาแบบลึกของแต่ละองค์ประกอบในอาร์เรย์อินพุท ซึ่งหมายความว่าองค์ประกอบในอาร์เรย์เอาท์พุท จะไม่ใช้การอ้างอิงเดียวกันกับองค์ประกอบของอาร์เรย์อินพุท ค่าเริ่มต้นคือ `false`\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":1,"max":2}}],{"type":"function","name":"back","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#back","description":"ส่งคืนองค์ประกอบสุดท้ายของอาร์เรย์ หากอาร์เรย์อินพุทว่างเปล่า การประเมินผลนิพจน์จะล้มเหลว","examples":"\n**ตัวอย่าง**\n\nส่งคืน `'gray'`\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nBack(colors)\n```\n\n","completion":{"label":"Back","detail":"Back(inputArray) -> Any","insertText":"Back(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะรับค่าสุดท้ายจาก\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"count","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#count","description":"ส่งคืนจำนวนไอเท็มในอาร์เรย์","examples":"\n**ตัวอย่าง**\n\nส่งคืน 6\n\n```arcade\nCount([12,21,32,44,58,63])\n```\n\n","completion":{"label":"Count","detail":"Count(value) -> Number","insertText":"Count(${1:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนจำนวนไอเท็มในอาร์เรย์\n\n**พารามิเตอร์**\n\n- **value**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1","description":"ส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่ดัชนีในอาร์เรยไม่มีอยู่ หรือค่า ณ ดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nอาร์เรย์ที่มีค่า ณ ดัชนีที่กำหนด\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nอาร์เรย์ที่ไม่มีค่า ณ ดัชนีที่กำหนด\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nอาร์เรย์ที่มีค่าว่าง ณ ดัชนีที่กำหนด\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputArray, index, defaultValue) -> Any","insertText":"DefaultValue(${1:inputArray_}, ${2:index_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนค่าเริ่มต้นที่ระบุ ในกรณีที่ดัชนีในอาร์เรยไม่มีอยู่ หรือค่า ณ ดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์อินพุทที่จะตรวจสอบ\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีที่จะตรวจสอบ\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืน หากดัชนีไม่มีอยู่ หรือค่า ณ ดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่า ณ ดัชนีที่ระบุ ในกรณีที่กำหนดไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"defaultvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2","description":"ตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ และส่งคืนค่าดังกล่าวหากพบ หากไม่ ฟังก์ชันนี้จะส่งคืนค่าเริ่มต้นที่ระบุไว้ ในกรณีที่อย่างน้อยหนึ่งในคีย์หรือดัชนีที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่าภายในแต่ละอาร์เรย์","examples":"\n**ตัวอย่าง**\n\nอาร์เรย์ที่มีค่า ณ ดัชนีที่เนสต์\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 3], \"No data\");\n// returns 1\n```\n\nอาร์เรย์ที่ไม่มีค่า ณ ดัชนีที่เนสต์\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 10], \"No data\");\n// returns \"No data\"\n```\n\nอาร์เรย์ที่ไม่มีค่า ณ ดัชนีหลัก\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [10, 3], \"No data\");\n// returns \"No data\"\n```\n\nอาร์เรย์ของพจนานุกรมซึ่งมีค่าที่เนสต์\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  interval: 1,\n  intervalUnit: \"days\",\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n      unit: \"inches\"\n    },\n    temperature: {\n      values: [50, 50, 51, 52, 55, 49, 51],\n      unit: \"f\"\n    },\n  }\n}\n\nvar a = [ data, data2, data3 ]\nDefaultValue(a, [0, \"weather\",\"precipitation\",\"values\", 6], \"No data\");\n// returns 1\n```\n\n","completion":{"label":"DefaultValue","detail":"DefaultValue(inputArray, keys, defaultValue) -> Any","insertText":"DefaultValue(${1:inputArray_}, ${2:keys_}, ${3:defaultValue_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ และส่งคืนค่าดังกล่าวหากพบ หากไม่ ฟังก์ชันนี้จะส่งคืนค่าเริ่มต้นที่ระบุไว้ ในกรณีที่อย่างน้อยหนึ่งในคีย์หรือดัชนีที่เนสต์ไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่าภายในแต่ละอาร์เรย์\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์อินพุทที่จะตรวจสอบ\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของคีย์หรือดัชนีที่จะตรวจสอบในแต่ละระดับของโครงสร้างของคอนเทนเนอร์\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่านี้จะถูกส่งคืนหากอย่างน้อยหนึ่งในคีย์หรือดัชนีไม่มีอยู่ หรือค่า ณ คีย์หรือดัชนีที่ระบุเป็น `null` หรือเป็นค่าข้อความว่างเปล่า\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nส่งคืนค่า ณ คีย์หรือดัชนีที่ระบุ หากกำหนดค่าไว้ หากไม่ จะส่งคืนค่าที่ระบุไว้ใน `defaultValue`"}},"parametersInfo":{"min":3,"max":3}}],[{"type":"function","name":"distinct","bundle":"core","sinceVersion":"1.1","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#distinct1","description":"ส่งคืนชุดค่าเฉพาะ หรือค่าที่ไม่ซ้ำกันสำหรับอาร์เรย์ของค่า","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nDistinct([1,1,2,1,1,2,2,3,4,5])\n// Returns [1,2,3,4,5]\n```\n\n","completion":{"label":"Distinct","detail":"Distinct(values) -> Array<Any>","insertText":"Distinct(${1:values_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชุดค่าเฉพาะ หรือค่าที่ไม่ซ้ำกันสำหรับอาร์เรย์ของค่า\n\n**พารามิเตอร์**\n\n- **values**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ของค่าที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"distinct","bundle":"core","sinceVersion":"1.1","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#distinct2","description":"ส่งคืนชุดค่าเฉพาะ หรือค่าที่ไม่ซ้ำกันสำหรับรายการของค่า","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nDistinct('high','medium','low',0,'high','high','low')\n// Returns ['high','medium','low',0]\n```\n\n","completion":{"label":"Distinct","detail":"Distinct([value1, ..., valueN]?) -> Array<Any>","insertText":"Distinct($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนชุดค่าเฉพาะ หรือค่าที่ไม่ซ้ำกันสำหรับรายการของค่า\n\n**พารามิเตอร์**\n\n- **[value1, ..., valueN]** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - รายการค่าที่จะดำเนินการ\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":0,"max":-1}}],{"type":"function","name":"erase","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#erase","description":"ลบค่าออกจากอาร์เรย์ ณ ดัชนีที่กำหนด องค์ประกอบที่มีอยู่ ในตำแหน่งเท่ากับ หรือสูงกว่าดัชนีที่กำหนด จะถูกเลื่อนลงหนึ่งค่าดัชนี อาร์เรย์จะลดขนาดลงหนึ่งค่า","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nErase(colors, 1)\n// colors = ['orange','gray']\n```\n\n\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nErase(colors, -1)\n// colors = ['orange','purple']\n```\n\n","completion":{"label":"Erase","detail":"Erase(inputArray, index) -> Null","insertText":"Erase(${1:inputArray_}, ${2:index_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะลบค่าออก\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของค่าที่จะลบออกจากอาร์เรย์ หากกำหนดดัชนีติดลบ ดัชนีจะถูกใช้ในรูปแบบออฟเซ็ตจากส่วนท้ายสุดของอาร์เรย์\n\n**ส่งคืนค่า**: Null"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"filter","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#filter","description":"สร้างอาร์เรย์ใหม่พร้อมองค์ประกอบที่กรองจากอาร์เรย์อินพุตที่ผ่านการทดสอบจากฟังก์ชันที่ให้มา","examples":"\n**ตัวอย่าง**\n\nส่งกลับอาร์เรย์ใหม่ที่ประกอบด้วยองค์ประกอบที่ผ่านตัวกรอง \"isEven\"\n\n```arcade\nfunction isEven(i) { return i % 2 == 0 } \nFilter([1,2,3,4,5], isEven) // Returns [2,4]\n// Since 2 and 4 are even, they are the only values\n// included in the output array.\n```\n\nใช้ฟังก์ชัน Arcade `isEmpty` ที่มีอยู่ใน `filterFunction` ส่งกลับอาร์เรย์ใหม่ของฟิลด์ที่ไม่ว่างเปล่า\n\n```arcade\nvar myArray = [ $feature.field1, $feature.field2, $feature.field3, $feature.field4];\n\nfunction isNotEmpty(value){\n  return !isEmpty(value);\n}\nFilter(myArray, isNotEmpty)\n// Returns only values that are defined,\n// excluding empty values from the result\n```\n\n","completion":{"label":"Filter","detail":"Filter(inputArray, filterFunction) -> Array<Any>","insertText":"Filter(${1:inputArray_}, ${2:filterFunction_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างอาร์เรย์ใหม่พร้อมองค์ประกอบที่กรองจากอาร์เรย์อินพุตที่ผ่านการทดสอบจากฟังก์ชันที่ให้มา\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อินพุทอาร์เรย์ที่จะกรอง\n- **filterFunction**: [Function](https://developers.arcgis.com/arcade/guide/logic/#user-defined-functions) - ฟังก์ชันที่ใช้เพื่อกรององค์ประกอบในอาร์เรย์ `filterFunction(value: Any) -> Boolean` ฟังก์ชันจะต้องส่งคืนค่า truthy หากองค์ประกอบผ่านการทดสอบ ฟังก์ชันนี้สามารถเป็นฟังก์ชันที่ผู้ใช้กำหนด หรือฟังก์ชัน Arcade หลักที่กำหนดด้วยพารามิเตอร์ต่อไปนี้:\n\n  - **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - แทนค่าขององค์ประกอบในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;  \nส่งคืนอาร์เรย์พร้อมองค์ประกอบที่ผ่านฟังก์ชันทดสอบ"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"first","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#first","description":"ส่งกลับองค์ประกอบแรกในอาร์เรย์ ส่งคืน `null` หากอาร์เรย์ว่างเปล่า","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 'orange'\n\n```arcade\nFirst(['orange', 'purple', 'gray'])\n```\n\n","completion":{"label":"First","detail":"First(inputArray) -> Any","insertText":"First(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งกลับองค์ประกอบแรกในอาร์เรย์ ส่งคืน `null` หากอาร์เรย์ว่างเปล่า\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะส่งกลับไอเท็มแรก\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"front","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#front","description":"ส่งคืนองค์ประกอบแรกของอาร์เรย์ หากอาร์เรย์อินพุทว่างเปล่า การประเมินผลนิพจน์จะล้มเหลว","examples":"\n**ตัวอย่าง**\n\nส่งคืน `'orange'`\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nFront(colors)\n```\n\n","completion":{"label":"Front","detail":"Front(inputArray) -> Any","insertText":"Front(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะรับค่าแรกจาก\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)"}},"parametersInfo":{"min":1,"max":1}},[{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1","description":"ระบุว่าอาร์เรย์มีค่า ณ ดัชนีที่กำหนดไว้หรือไม่","examples":"\n**ตัวอย่าง**\n\nอาร์เรย์ที่มีค่า ณ ดัชนีที่กำหนด\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nอาร์เรย์ที่ไม่มีค่า ณ ดัชนีที่กำหนด\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nอาร์เรย์ที่มีค่าว่าง ณ ดัชนีที่กำหนด\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputArray, index) -> Boolean","insertText":"HasValue(${1:inputArray_}, ${2:index_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nระบุว่าอาร์เรย์มีค่า ณ ดัชนีที่กำหนดไว้หรือไม่\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะตรวจสอบ\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีที่จะตรวจสอบ\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"hasvalue","bundle":"core","sinceVersion":"1.26","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2","description":"ตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่าภายในแต่ละอาร์เรย์ ส่งคืน `true` หากมีดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง","examples":"\n**ตัวอย่าง**\n\nอาร์เรย์ที่มีค่า ณ ดัชนีที่เนสต์\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nอาร์เรย์ที่ไม่มีค่า ณ ดัชนีที่เนสต์\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nอาร์เรย์ที่ไม่มีค่า ณ ดัชนีหลัก\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nอาร์เรย์ของพจนานุกรมซึ่งมีค่าที่เนสต์\n\n```arcade\nvar data = {\n  time: Date(2024, 0, 24, 12),\n  interval: 1,\n  intervalUnit: \"days\",\n  weather: {\n    precipitation: {\n      type: \"rain\",\n      values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n      unit: \"inches\"\n    },\n    temperature: {\n      values: [50, 50, 51, 52, 55, 49, 51],\n      unit: \"f\"\n    },\n  }\n}\n\nvar a = [ data, data2, data3 ]\nif(HasValue(a, [0, \"weather\",\"precipitation\",\"values\", 6])){\n  // This check succeeds so the value will be returned\n  return a[0].weather.precipitation.values[6];\n  // returns 1\n}\n```\n\n","completion":{"label":"HasValue","detail":"HasValue(inputArray, indexes) -> Boolean","insertText":"HasValue(${1:inputArray_}, ${2:indexes_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตรวจสอบว่าดัชนีที่เนสต์ลึกหลายระดับในอาร์เรย์หลายมิติ มีค่าอยู่หรือไม่ ซึ่งจะช่วยให้คุณสามารถเจาะลึกเข้าไปในโครงสร้างที่เนสต์ได้ในขั้นตอนเดียว แทนการตรวจสอบค่าภายในแต่ละอาร์เรย์ ส่งคืน `true` หากมีดัชนี ณ แต่ละระดับของโครงสร้างอยู่ และรวมค่าที่ไม่ใช่ค่าว่าง\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะตรวจสอบ\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - อาร์เรย์ของคีย์หรือดัชนีที่จะตรวจสอบในแต่ละระดับของโครงสร้าง\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}}],{"type":"function","name":"includes","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#includes","description":"กำหนดว่าอาร์เรย์มีค่าที่กำหนดหรือไม่ ส่งคืนค่า `true` หากพบค่าภายในอาร์เรย์","examples":"\n**ตัวอย่าง**\n\nส่งคืนค่า `true`\n\n```arcade\nIncludes(['orange', 'purple', 'gray'], 'purple')\n```\n\nส่งคืนค่า `false`\n\n```arcade\nIncludes(['orange', 'purple', 'gray'], 'red')\n```\n\n","completion":{"label":"Includes","detail":"Includes(inputArray, value) -> Boolean","insertText":"Includes(${1:inputArray_}, ${2:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nกำหนดว่าอาร์เรย์มีค่าที่กำหนดหรือไม่ ส่งคืนค่า `true` หากพบค่าภายในอาร์เรย์\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อินพุทอาร์เรย์\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่จะมองหาในอาร์เรย์ที่กำหนด\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"indexof","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#indexof","description":"ส่งคืนตำแหน่งดัชนีแบบอิงศูนย์ของไอเท็มอินพุทในรูปแบบอาร์เรย์ หากไม่มี `item` อยู่ จะส่งคืน `-1`","examples":"\n**ตัวอย่าง**\n\nพิมพ์ 2\n\n```arcade\nvar num = [1,2,3,4];\nreturn indexof(num, 3);\n```\n\n","completion":{"label":"IndexOf","detail":"IndexOf(inputArray, item) -> Number","insertText":"IndexOf(${1:inputArray_}, ${2:item_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนตำแหน่งดัชนีแบบอิงศูนย์ของไอเท็มอินพุทในรูปแบบอาร์เรย์ หากไม่มี `item` อยู่ จะส่งคืน `-1`\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะค้นหา\n- **item**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ไอเท็มที่จะระบุตำแหน่งในอาร์เรย์\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"insert","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#insert","description":"แทรกค่าใหม่ลงในอาร์เรย์ ณ ดัชนีที่กำหนด องค์ประกอบที่มีอยู่ ในตำแหน่งเท่ากับ หรือสูงกว่าดัชนีที่กำหนด จะถูกเลื่อนขึ้นหนึ่งค่าดัชนี อาร์เรย์จะเพิ่มขนาดขึ้นหนึ่งค่า","examples":"\n**ตัวอย่าง**\n\n\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nInsert(colors, 1, 'yellow')\n// colors = ['orange','yellow','purple','gray']\n```\n\n\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nInsert(colors, -1, 'yellow')\n// colors = ['orange','purple','yellow','gray']\n```\n\n","completion":{"label":"Insert","detail":"Insert(inputArray, index, value) -> Null","insertText":"Insert(${1:inputArray_}, ${2:index_}, ${3:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะแทรกค่าใหม่ลงไป\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีของอาร์เรย์ที่ควรแทรกค่าใหม่ ดัชนี 0 จะแทรกค่า ณ จุดเริ่มต้นของอาร์เรย์ ดัชนีที่เท่ากับขนาดของอาร์เรย์ จะแทรกค่า ณ ส่วนท้ายสุดของอาร์เรย์ ดัชนีที่มากกว่าขนาดของอาร์เรย์ จะส่งผลให้เกิดข้อผิดพลาด  หากกำหนดดัชนีติดลบ ดัชนีจะถูกใช้ในรูปแบบออฟเซ็ตจากส่วนท้ายสุดของอาร์เรย์\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่จะแทรกลงในอาร์เรย์\n\n**ส่งคืนค่า**: Null"}},"parametersInfo":{"min":3,"max":3}},{"type":"function","name":"map","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#map","description":"สร้างอาร์เรย์ใหม่ตามผลลัพธ์ของการเรียกใช้ฟังก์ชันที่มีให้ในแต่ละองค์ประกอบในอาร์เรย์อินพุต","examples":"\n**ตัวอย่าง**\n\nแปลงองค์ประกอบทั้งหมดในอาร์เรย์จากฟาเรนไฮต์เป็นเซลเซียสและส่งคืนในอาร์เรย์ใหม่\n\n```arcade\n// This function will take in values from the input array and convert them to Celsius\nfunction toCelsius(f) {\n  return Round((f - 32) * 5/9, 2)\n}\n// The toCelsius function executes for each each item\n// in the input array.\n// Map returns the resulting array of converted values.\nMap([82, 67, 96, 55, 34], toCelsius)\n// returns [27.78, 19.44, 35.56, 12.78, 1.11]\n```\n\nแปลงวัตถุวันที่เป็นข้อความที่จัดรูปแบบ\n\n```arcade\nvar dates = [ Date(1996, 11, 10), Date(1995, 1, 6), Date(1992, 2, 27), Date(1990, 10, 2)];\nfunction formatDates(dateVal) { return Text(dateVal, 'MMM D, Y') }\nMap(dates, formatDates);\n// returns ['Dec 10, 1996', 'Feb 6, 1995', 'Mar 27, 1992', 'Nov 2, 1990']\n```\n\n","completion":{"label":"Map","detail":"Map(inputArray, mappingFunction) -> Array<Any>","insertText":"Map(${1:inputArray_}, ${2:mappingFunction_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nสร้างอาร์เรย์ใหม่ตามผลลัพธ์ของการเรียกใช้ฟังก์ชันที่มีให้ในแต่ละองค์ประกอบในอาร์เรย์อินพุต\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อินพุทอาร์เรย์ที่จะเลือก\n- **mappingFunction**: [Function](https://developers.arcgis.com/arcade/guide/logic/#user-defined-functions) - ฟังก์ชันที่ใช้ในการเรียกแต่ละองค์ประกอบในอาร์เรย์ `mappingFunction(value: Any) -> Any` ฟังก์ชันจะต้องส่งคืนไอเท็มใหม่ ซึ่งจะเป็นส่วนหนึ่งของอาร์เรย์ที่ส่งคืน ฟังก์ชันสามารถเป็นฟังก์ชันที่ผู้ใช้กำหนด หรือฟังก์ชัน Arcade หลักที่กำหนดด้วยพารามิเตอร์ต่อไปนี้:\n\n  - **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - แทนค่าขององค์ประกอบในอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;  \nไอเท็มที่ถูกส่งคืนโดยฟังก์ชันการสร้างแผนที่"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"none","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#none","description":"ทดสอบว่าไม่มีองค์ประกอบใดในอาร์เรย์ที่กำหนดผ่านการทดสอบจากฟังก์ชันที่ให้มา ส่งกลับ `true` หาก `testFunction` ส่งกลับ `false` สำหรับรายการทั้งหมดในอาร์เรย์อินพุต","examples":"\n**ตัวอย่าง**\n\nส่งกลับค่า `false` เนื่องจากองค์ประกอบบางอย่างในอาร์เรย์อินพุตผ่านการทดสอบ `isEven`\n\n```arcade\n// isEven is used to test if each element in the array is even\n// it returns true if the element is divisible by two, false if is not\nfunction isEven(value) { return value % 2 == 0 } \n// The isEven function will execute for each element in the array,\n// returning the following values: false, true, false, true, false\n// Since at least one value in the array passed the test\n// (return true), the return value will be false\nNone([1,2,3,4,5], isEven)\n```\n\nใช้ฟังก์ชัน Arcade `isEmpty` ที่มีอยู่ใน `testFunction` สิ่งนี้ถูกต้องเนื่องจาก \"isEmpty\" รับพารามิเตอร์เดียวและส่งกลับค่าบูลีน นิพจน์นี้ส่งคืน `true` หากไม่มีฟิลด์ใดว่าง\n\n```arcade\nvar myArray = [ $feature.field1, $feature.field2, $feature.field3, $feature.field4];\nNone(myArray, isEmpty)\n```\n\n","completion":{"label":"None","detail":"None(inputArray, testFunction) -> Boolean","insertText":"None(${1:inputArray_}, ${2:testFunction_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nทดสอบว่าไม่มีองค์ประกอบใดในอาร์เรย์ที่กำหนดผ่านการทดสอบจากฟังก์ชันที่ให้มา ส่งกลับ `true` หาก `testFunction` ส่งกลับ `false` สำหรับรายการทั้งหมดในอาร์เรย์อินพุต\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์อินพุตที่จะทดสอบ\n- **testFunction**: [Function](https://developers.arcgis.com/arcade/guide/logic/#user-defined-functions) - ฟังก์ชันที่ใช้ทดสอบแต่ละองค์ประกอบในอาร์เรย์ `testFunction(value: Any) -> Boolean` ฟังก์ชันจะต้องส่งคืนค่า fasly หากองค์ประกอบไม่ผ่านการทดสอบ ฟังก์ชันสามารถเป็นฟังก์ชันที่ผู้ใช้กำหนด หรือฟังก์ชัน Arcade หลักที่กำหนดด้วยพารามิเตอร์ต่อไปนี้:\n\n  - **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - แทนค่าขององค์ประกอบในอาร์เรย์\n\n**ส่งคืนค่า**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)  \n`true` หากองค์ประกอบทั้งหมดในอาร์เรย์ไม่ผ่านฟังก์ชันทดสอบ"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"pop","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#pop","description":"ลบและส่งคืนองค์ประกอบ ณ ส่วนท้ายสุดของอาร์เรย์ หากอาร์เรย์ว่างเปล่า ระบบจะส่งข้อผิดพลาด","examples":"\n**ตัวอย่าง**\n\nส่งคืน 'gray' ขณะนี้อินพุทอาร์เรย์จะเท่ากับ `['orange', 'purple']`\n\n```arcade\nPop(['orange', 'purple', 'gray'])\n```\n\n","completion":{"label":"Pop","detail":"Pop(inputArray) -> Any","insertText":"Pop(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อินพุทอาร์เรย์ซึ่งจะลบและส่งคืนองค์ประกอบสุดท้ายจาก\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"push","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#push","description":"เพิ่มองค์ประกอบที่ส่วนท้ายสุดของอาร์เรย์ แล้วส่งคืนความยาวใหม่ของอาร์เรย์","examples":"\n**ตัวอย่าง**\n\nส่งคืน 4 ขณะนี้อินพุทอาร์เรย์จะเท่ากับ `['orange', 'purple', 'gray', 'red']`\n\n```arcade\nPush(['orange', 'purple', 'gray'], 'red')\n```\n\n","completion":{"label":"Push","detail":"Push(inputArray, value) -> Number","insertText":"Push(${1:inputArray_}, ${2:value_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่มีองค์ประกอบที่จะพุชไป\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าที่จะเพิ่มในรูปแบบองค์ประกอบสุดท้ายของอินพุทอาร์เรย์\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"}},"parametersInfo":{"min":2,"max":2}},{"type":"function","name":"reduce","bundle":"core","sinceVersion":"1.16","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#reduce","description":"เรียกใช้ฟังก์ชัน \"ตัวลด\" ที่มีให้ในแต่ละองค์ประกอบในอาร์เรย์ โดยส่งค่าที่ส่งคืนมาจากการคำนวณองค์ประกอบก่อนหน้า","examples":"\n**ตัวอย่าง**\n\nหากไม่มีพารามิเตอร์ 'initialValue' องค์ประกอบ 2 รายการแรกของอาร์เรย์ 'cities' จะถูกส่งต่อไปยังฟังก์ชันเพิ่มเป็นอาร์กิวเมนต์\n\n```arcade\nvar cities = [{\n   name: 'Columbus',\n   pop: 913921\n}, {\n   name: 'Cincinnati',\n   pop: 307266\n}, {\n   name: 'Dayton',\n   pop: 140343\n}, {\n   name: 'Cleveland',\n   pop: 376599\n}];\n// the first time this function is called it will take the first two elements of the array as x and y\n// The subsequent times the function is executed, it will take the return value\n// from the previous function call as x and the next array value as y\nfunction mostPopulated(city1, city2) {\n   IIf (city1.pop > city2.pop, city1, city2)\n}\nvar largestCity = Reduce(cities, mostPopulated)\nConsole(largestCity.name + ' is the biggest city in the list with a population of ' + largestCity.pop)\n// Columbus is the biggest city in the list with a population of 913921\n```\n\nเนื่องจากพารามิเตอร์ 'initialValue' ถูกตั้งค่าไว้ ค่านั้นจะเป็นอาร์กิวเมนต์แรกของฟังก์ชัน ('city1') และองค์ประกอบแรกของ 'cities' จะเป็นอาร์กิวเมนต์ที่สองของฟังก์ชัน ('city2')\n\n```arcade\nvar los_angeles = { name: 'Los Angeles', pop: 3898747 }\n// since an initialValue is provided, it will be passed into the maxPop function as x\n// and the first value of the array will be passed in as y for the initial function call\n// The subsequent times the function is executed, it will take the return value\n// from the previous function call as x and the next array value as y\nvar largestCity = Reduce(cities, mostPopulated, los_angeles)\nConsole(largestCity.name + ' is the biggest city in the list with a population of ' + largestCity.pop)\n// Los Angeles is the biggest city in the list with a population of 3898747\n```\n\n","completion":{"label":"Reduce","detail":"Reduce(inputArray, reducerFunction, initialValue?) -> Any","insertText":"Reduce(${1:inputArray_}, ${2:reducerFunction_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.16](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเรียกใช้ฟังก์ชัน \"ตัวลด\" ที่มีให้ในแต่ละองค์ประกอบในอาร์เรย์ โดยส่งค่าที่ส่งคืนมาจากการคำนวณองค์ประกอบก่อนหน้า\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์อินพุตเพื่อลด\n- **reducerFunction**: [Function](https://developers.arcgis.com/arcade/guide/logic/#user-defined-functions) - ฟังก์ชันตัวลดที่จะรวมค่าอาร์เรย์ `reducerFunction(previousValue: Any, arrayValue: Any) -> Any`\n\n  - **previousValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ครั้งแรกที่ฟังก์ชันทำงาน นี่จะเป็นองค์ประกอบแรกในอินพุทอาร์เรย์ หรือ `initialValue` หากระบุไว้\n  - **arrayValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - แทนค่าปัจจุบันขององค์ประกอบในอาร์เรย์\n- **initialValue** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - รายการที่จะส่งผ่านไปยังอาร์กิวเมนต์แรกของฟังก์ชันตัวลด\n\n**ส่งคืนค่า**: [Any](https://developers.arcgis.com/arcade/guide/types/#any)  \nค่าที่ถูกรวมโดยฟังก์ชันตัวลดของแต่ละองค์ประกอบในอาร์เรย์"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"resize","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#resize","description":"เปลี่ยนจำนวนขององค์ประกอบในอาร์เรย์ให้เป็นขนาดที่กำหนด สามารถใช้เพื่อขยายอาร์เรย์หรือตัดทอนตั้งแต่แรกได้ หลังจากปรับขนาด ความพยายามในการสร้างดัชนีนอกเหนือจากองค์ประกอบสุดท้ายใหม่ จะส่งผลให้เกิดข้อผิดพลาด ยกเว้นกรณีที่เป็นการสร้างดัชนีขององค์ประกอบถัดไป ซึ่งจะทำการขยายอาร์เรย์ต่อไปอีกหนึ่งองค์ประกอบ","examples":"\n**ตัวอย่าง**\n\nส่งคืน `['orange', 'purple', 'gray', null, null]`\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nResize(colors, 5)\nreturn colors\n```\n\nส่งคืน `['orange', 'purple', 'gray', 'red', 'red']`\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nResize(colors, 5, 'red')\nreturn colors\n```\n\nส่งคืน `['orange']`\n\n```arcade\nvar colors = ['orange', 'purple', 'gray']\nResize(colors, 1)\nreturn colors\n```\n\n","completion":{"label":"Resize","detail":"Resize(inputArray, newSize, value?) -> Null","insertText":"Resize(${1:inputArray_}, ${2:newSize_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะปรับขนาด\n- **newSize**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนองค์ประกอบที่ต้องการในอาร์เรย์ที่ปรับขนาด\n- **value** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - ค่าทางเลือกที่จะใช้สำหรับองค์ประกอบใหม่ใด ๆ ที่จะถูกเพิ่มลงในอาร์เรย์ หากไม่ได้กำหนดค่า องค์ประกอบที่ถูกเพิ่มใหม่จะมีค่า `null`\n\n**ส่งคืนค่า**: Null"}},"parametersInfo":{"min":2,"max":3}},{"type":"function","name":"reverse","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#reverse","description":"ย้อนกลับเนื้อหาของอาร์เรย์ในตำแหน่ง","examples":"\n**ตัวอย่าง**\n\nส่งคืน `['gray', 'purple', 'orange']`\n\n```arcade\nReverse(['orange', 'purple', 'gray'])\n```\n\n","completion":{"label":"Reverse","detail":"Reverse(inputArray) -> Array<Any>","insertText":"Reverse(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nย้อนกลับเนื้อหาของอาร์เรย์ในตำแหน่ง\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะย้อนกลับ\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":1,"max":1}},{"type":"function","name":"slice","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#slice","description":"ส่งคืนส่วนหนึ่งของอาร์เรย์ระหว่างสองดัชนีในรูปแบบอาร์เรย์ใหม่","examples":"\n**ตัวอย่าง**\n\nส่งคืน `['purple', 'gray']`\n\n```arcade\nSlice(['orange', 'purple', 'gray', 'red', 'blue'], 1, 3)\n```\n\nส่งคืน `['red', 'blue']`\n\n```arcade\nSlice(['orange', 'purple', 'gray', 'red', 'blue'], 3)\n```\n\nส่งคืน `['orange', 'purple', 'gray', 'red', 'blue']`\n\n```arcade\nSlice(['orange', 'purple', 'gray', 'red', 'blue'])\n```\n\nส่งคืน `['blue']`\n\n```arcade\nSlice(['orange', 'purple', 'gray', 'red', 'blue'], -1)\n```\n\n","completion":{"label":"Slice","detail":"Slice(inputArray, startIndex?, endIndex?) -> Array<Any>","insertText":"Slice(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะสไลซ์\n- **startIndex** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีที่จะเริ่มต้นสไลซ์จาก ค่าเริ่มต้นคือ `0` หากกำหนดดัชนีติดลบ ดัชนีจะถูกใช้ในรูปแบบออฟเซ็ตจากส่วนท้ายสุดของอาร์เรย์\n- **endIndex** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ดัชนีที่จะสิ้นสุดการสไลซ์ ค่าที่ดัชนีนี้จะไม่ถูกรวมไว้ในอาร์เรย์ที่ส่งคืน ค่าเริ่มต้นจะเท่ากับขนาดอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":1,"max":3}},{"type":"function","name":"sort","bundle":"core","sinceVersion":"1.0","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#sort","description":"จัดเรียงอาร์เรย์ตามค่า ASCII หากไอเท็มทั้งหมดในอาร์เรย์เป็นประเภทเดียวกัน ระบบจะใช้ฟังก์ชันการจัดเรียงที่เหมาะสม หากเป็นประเภทที่แตกต่างกัน ไอเท็มจะถูกแปลงเป็นข้อความ หากในอาร์เรย์มีพจนานุกรม และไม่ได้ระบุฟังก์ชันที่ผู้ใช้กำหนดไว้ ระบบจะไม่ดำเนินการจัดเรียง หากอาร์เรย์มีค่า `null` อาร์เรย์จะไม่ถูกแปลงเป็นข้อความ และจะถูกส่งคืนเมื่อสิ้นสุดอาร์เรย์ที่จัดเรียง","examples":"\n**ตัวอย่าง**\n\nส่งคืน `['$', 1, 'A', 'a']`\n\n```arcade\nSort([1, 'a', '$', 'A'])\n```\n\nเรียงโดยใช้ฟังก์ชันที่ผู้ใช้กำหนด\n\n```arcade\nvar peopleArray = [{ 'NAME': 'Sam', 'AGE': 25 }, {'NAME': 'Bob', 'AGE': 27 },{ 'NAME': 'Emma', 'AGE': 24 }];\nfunction compareAge(a,b){\n  if (a['AGE']<b['AGE'])\n    return -1;\n  if (a['AGE']>b['AGE'])\n    return 1;\n  return 0;\n}\nreturn Sort(peopleArray, compareAge);\n// returns '[{ 'AGE': 24, 'NAME': 'Emma' }, { 'AGE': 25, 'NAME': 'Sam' }, { 'AGE': 27, 'NAME': 'Bob' } ]'\n```\n\n","completion":{"label":"Sort","detail":"Sort(inputArray, comparatorFunction?) -> Array<Any>","insertText":"Sort(${1:inputArray_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.0](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nจัดเรียงอาร์เรย์ตามค่า ASCII หากไอเท็มทั้งหมดในอาร์เรย์เป็นประเภทเดียวกัน ระบบจะใช้ฟังก์ชันการจัดเรียงที่เหมาะสม หากเป็นประเภทที่แตกต่างกัน ไอเท็มจะถูกแปลงเป็นข้อความ หากในอาร์เรย์มีพจนานุกรม และไม่ได้ระบุฟังก์ชันที่ผู้ใช้กำหนดไว้ ระบบจะไม่ดำเนินการจัดเรียง หากอาร์เรย์มีค่า `null` อาร์เรย์จะไม่ถูกแปลงเป็นข้อความ และจะถูกส่งคืนเมื่อสิ้นสุดอาร์เรย์ที่จัดเรียง\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะจัดเรียง\n- **comparatorFunction** (_Optional_): [Function](https://developers.arcgis.com/arcade/guide/logic/#user-defined-functions) - ฟังก์ชันที่ผู้ใช้กำหนดที่จะใช้สำหรับการจัดเรียง `orderingFunction(a: Any, b: Any) -> Number` ฟังก์ชันจะได้รับสององค์ประกอบ และควรส่งคืนตัวเลข ที่ระบุลำดับการจัดเรียงของสององค์ประกอบ:  \n`> 0`: จัดเรียง `b` ก่อน `a`  \n`= 0`: คงลำดับดั้งเดิมของ `a` และ `b` ไว้  \n`< 0`: จัดเรียง `a` ก่อน `b`\n\n  - **a**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - องค์ประกอบแรกสำหรับการเปรียบเทียบ\n  - **b**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - องค์ประกอบที่สองสำหรับการเปรียบเทียบ\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":1,"max":2}},{"type":"function","name":"splice","bundle":"core","sinceVersion":"1.12","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#splice","description":"เชื่อมพารามิเตอร์ทั้งหมดเข้าด้วยกันเป็นอาร์เรย์ใหม่","examples":"\n**ตัวอย่าง**\n\nส่งคืน `['orange', 'purple', 1, 2, 'red']`\n\n```arcade\nSplice(['orange', 'purple'], 1, 2, 'red')\n```\n\nส่งคืน `[1, 2, 3, 4]`\n\n```arcade\nSplice([1,2], [3,4])\n```\n\n","completion":{"label":"Splice","detail":"Splice([value1, ..., valueN]?) -> Array<Any>","insertText":"Splice($0)","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nเชื่อมพารามิเตอร์ทั้งหมดเข้าด้วยกันเป็นอาร์เรย์ใหม่\n\n**พารามิเตอร์**\n\n- **[value1, ..., valueN]** (_Optional_): [Any](https://developers.arcgis.com/arcade/guide/types/#any) - รายการค่าแบบต่อเนื่องที่จะประกบเป็นอาร์เรย์ใหม่\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":0,"max":-1}},{"type":"function","name":"top","bundle":"core","sinceVersion":"1.3","link":"https://developers.arcgis.com/arcade/function-reference/array_functions/#top","description":"ตัดอินพุทอาร์เรย์และส่งคืนตัวเลขขององค์ประกอบแรกที่กำหนด","examples":"\n**ตัวอย่าง**\n\nส่งคืน `[ 43,32,19 ]`\n\n```arcade\nTop([ 43,32,19,0,3,55 ], 3)\n```\n\n","completion":{"label":"Top","detail":"Top(inputArray, numItems) -> Array<Any>","insertText":"Top(${1:inputArray_}, ${2:numItems_})$0","insertTextMode":2,"insertTextFormat":2,"kind":3,"documentation":{"kind":"markdown","value":"**[ตั้งแต่เวอร์ชัน 1.3](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nตัดอินพุทอาร์เรย์และส่งคืนตัวเลขขององค์ประกอบแรกที่กำหนด\n\n**พารามิเตอร์**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - อาร์เรย์ที่จะตัดทอน\n- **numItems**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - จำนวนไอเท็มที่จะส่งคืนจากจุดเริ่มต้นของอาร์เรย์\n\n**ส่งคืนค่า**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt;"}},"parametersInfo":{"min":2,"max":2}}]}]