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
MultiPolygon.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."],[[["`MultiPolygon.getInfo()` retrieves the value of a MultiPolygon object from the Earth Engine server and returns it as a GeoJSON object."],["This method can be used synchronously or asynchronously, with the asynchronous approach being preferred to avoid blocking other code execution."],["`evaluate()` is recommended for asynchronous requests, while `getInfo()` can be used for synchronous requests."],["Code examples demonstrate using `getInfo()` in both JavaScript and Python environments to retrieve and display MultiPolygon data."]]],["The `getInfo()` method retrieves an object's value from the server. It can operate synchronously or asynchronously, the latter being preferred to avoid blocking other code. If a callback function is provided, the request is asynchronous; otherwise, it's synchronous. The method returns the object's computed value. `getInfo()` is demonstrated in JavaScript and Python examples by applying it to a `MultiPolygon` object, obtaining its value, and displaying it on a map.\n"]]