ee.apply
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เรียกใช้ฟังก์ชันด้วยพจนานุกรมของอาร์กิวเมนต์ที่มีชื่อ
แสดงผลออบเจ็กต์ที่แสดงฟังก์ชันที่เรียก หากลายเซ็นระบุประเภทการคืนค่าที่รู้จัก ระบบจะแคสต์ค่าที่คืนไปยังประเภทนั้น
การใช้งาน | การคืนสินค้า |
---|
ee.apply(func, namedArgs) | ComputedObject |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
func | ฟังก์ชัน|สตริง | ฟังก์ชันที่จะเรียกใช้ ออบเจ็กต์ ee.Function หรือชื่อของฟังก์ชัน API |
namedArgs | วัตถุ | พจนานุกรมของอาร์กิวเมนต์สำหรับฟังก์ชัน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[[["\u003cp\u003e\u003ccode\u003eee.apply()\u003c/code\u003e enables calling a specified function with provided named arguments stored in a dictionary.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a \u003ccode\u003eComputedObject\u003c/code\u003e which can be further used in Earth Engine computations, potentially casting the result to a specified return type if defined in the function signature.\u003c/p\u003e\n"],["\u003cp\u003eInput arguments include the target function (\u003ccode\u003efunc\u003c/code\u003e) that can either be an \u003ccode\u003eee.Function\u003c/code\u003e object or the name of an existing API function, and a dictionary of named arguments (\u003ccode\u003enamedArgs\u003c/code\u003e) that will be passed to the function.\u003c/p\u003e\n"]]],["The `ee.apply` function calls a specified function, which can be either an `ee.Function` object or an API function name, using a dictionary of named arguments. It returns a `ComputedObject`, casting the return value to the type specified in the function's signature, if available. The function takes two arguments: `func` to define the function and `namedArgs`, an object, which contains the function's arguments.\n"],null,["# ee.apply\n\n\u003cbr /\u003e\n\nCall a function with a dictionary of named arguments.\n\n\u003cbr /\u003e\n\nReturns an object representing the called function. If the signature specifies a recognized return type, the returned value will be cast to that type.\n\n| Usage | Returns |\n|-----------------------------|----------------|\n| `ee.apply(func, namedArgs)` | ComputedObject |\n\n| Argument | Type | Details |\n|-------------|------------------|------------------------------------------------------------------------------------|\n| `func` | Function\\|String | The function to call. Either an ee.Function object or the name of an API function. |\n| `namedArgs` | Object | A dictionary of arguments to the function. |"]]