ee.apply
Call a function with a dictionary of named arguments.
Returns an object representing the called function. If the signature specifies a recognized return type, the returned value will be cast to that type.
Usage | Returns |
---|
ee.apply(func, namedArgs) | ComputedObject |
Argument | Type | Details |
---|
func | Function|String | The function to call. Either an ee.Function object or the name of an API function. |
namedArgs | Object | A dictionary of arguments to the function. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`ee.apply()` enables calling a specified function with provided named arguments stored in a dictionary."],["It returns a `ComputedObject` which can be further used in Earth Engine computations, potentially casting the result to a specified return type if defined in the function signature."],["Input arguments include the target function (`func`) that can either be an `ee.Function` object or the name of an existing API function, and a dictionary of named arguments (`namedArgs`) that will be passed to the function."]]],["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"]]