UNPKG

@arcgis/coding-components

Version:

Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.

1 lines 985 kB
[{"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":"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://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":"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?) -> 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\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)\n\n**ทรัพยากรเพิ่มเติม**\n\n* [Area()](https://developers.arcgis.com/arcade/function-reference/featureset_functions/#area)\n* [Available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/)\n* [More available numeric codes for unit parameter](https://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnit2Type_Constants/000w00000041000000/)\n"}},"parametersInfo":{"min":1,"max":2}},{"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ค่าที่เป็นไปได้: `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**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**","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**โปรดทราบว่าการใช้ `$feature` เป็นอินพุทของฟังก์ชันนี้ จะให้ผลลัพธ์แม่นยำตามความละเอียดสเกลของมุมมองเท่านั้น ค่าที่แจ้งกลับจากนิพจน์ที่ใช้ฟังก์ชั่นนี้อาจเปลี่ยนแปลงหลังจากมีการซูมระหว่างสัดส่วนต่าง ๆ**\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)"}},"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 ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ","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 ในโปรไฟล์การแสดงภาพและการติดป้ายกำกับ จะถูกตั้งเป็นค่าแบบทั่วไปตามความละเอียดสเกลของมุมมอง เพื่อเพิ่มประสิทธิภาพการวาด ดังนั้น ให้ใช้เรขาคณิตของฟีเจอร์ (เช่น `$feature`) เป็นอินพุทของฟังก์ชันเรขาคณิตใดๆ ในบริบทเหล่านี้ จะส่งคืนผลลัพธ์ที่แตกต่างกันในแต่ละระดับสเกล โปรไฟล์อื่นๆ เช่น ป็อปอัพ จะให้เรขาคณิตความละเอียดเต็มรูปแบบ\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)"}},"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.c