Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del
15 aprile 2025 devono
verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
ee.List.getInfo
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Recupera il valore di questo oggetto dal server.
Se non viene fornita alcuna funzione di callback, la richiesta viene eseguita in modo sincrono. Se viene fornita una funzione di callback, la richiesta viene effettuata in modo asincrono.
La modalità asincrona è preferita perché la modalità sincrona interrompe tutto il resto del codice (ad esempio, la UI dell'editor di codice EE) durante l'attesa del server. Per effettuare una richiesta asincrona, è preferibile utilizzare evaluate() anziché getInfo().
Restituisce il valore calcolato di questo oggetto.
Utilizzo | Resi |
---|
List.getInfo(callback) | Oggetto |
Argomento | Tipo | Dettagli |
---|
questo: computedobject | ComputedObject | L'istanza ComputedObject. |
callback | Funzione, facoltativa | Un callback facoltativo. Se non viene fornito, la chiamata viene effettuata in modo sincrono. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eRetrieves the object's computed value, either synchronously or asynchronously, from the server.\u003c/p\u003e\n"],["\u003cp\u003eAsynchronous requests, preferred to avoid UI blocking, are made using \u003ccode\u003eevaluate()\u003c/code\u003e or by providing a callback function to \u003ccode\u003egetInfo()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetInfo()\u003c/code\u003e returns the computed value as an object when called with an optional callback.\u003c/p\u003e\n"]]],["The `getInfo()` method retrieves an object's value from the server. It can operate synchronously or asynchronously. If no callback function is provided, the request is synchronous, halting other code execution. If a callback is provided, it runs asynchronously, which is the preferred method. `getInfo()` returns the object's computed value. The asynchronous method is preferred and can be used with the method `evaluate()`.\n"],null,["# ee.List.getInfo\n\n\u003cbr /\u003e\n\nRetrieves the value of this object from the server.\n\n\u003cbr /\u003e\n\nIf no callback function is provided, the request is made synchronously. If a callback is provided, the request is made asynchronously.\n\nThe 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().\n\nReturns the computed value of this object.\n\n| Usage | Returns |\n|------------------------------|---------|\n| List.getInfo`(`*callback*`)` | Object |\n\n| Argument | Type | Details |\n|------------------------|--------------------|------------------------------------------------------------------------|\n| this: `computedobject` | ComputedObject | The ComputedObject instance. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]