Stay organized with collections
Save and categorize content based on your preferences.
Retrieves the value of this object from the server.
If no callback function is provided, the request is made synchronously. If a callback is provided, the request is made asynchronously.
The asynchronous mode is preferred because the synchronous mode stops all other code (for example, the EE Code Editor UI) while waiting for the server. To make an asynchronous request, evaluate() is preferred over getInfo().
Returns the computed value of this object.
Usage
Returns
LineString.getInfo(callback)
Object
Argument
Type
Details
this: computedobject
ComputedObject
The ComputedObject instance.
callback
Function, optional
An optional callback. If not supplied, the call is made synchronously.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["`getInfo()` retrieves the value of a ComputedObject (like a LineString) from the Earth Engine server."],["Requests can be made synchronously (blocking other code) or asynchronously (preferred for responsiveness)."],["Asynchronous requests are recommended and can be achieved using `evaluate()` or providing a callback function to `getInfo()`."],["The method returns the computed value of the object as an object, for example, the coordinates of a LineString."]]],["The `getInfo()` method retrieves an object's value from the server. It can operate synchronously or asynchronously, depending on whether a callback function is provided. Asynchronous requests, using `evaluate()`, are preferred to avoid blocking the interface. The method is applied to a `ComputedObject`, such as a `LineString`, and returns the computed value. The examples illustrate defining a `LineString`, using `getInfo()`, printing the result, and displaying it on a map, with code examples in JavaScript and Python.\n"]]