ee.Geometry.evaluate

Recupera de forma assíncrona o valor desse objeto do servidor e o transmite para a função de callback fornecida.

UsoRetorna
Geometry.evaluate(callback)
ArgumentoTipoDetalhes
isso: computedobjectComputedObjectA instância ComputedObject.
callbackFunçãoUma função do tipo function(success, failure), chamada quando o servidor retorna uma resposta. Se a solicitação for bem-sucedida, o argumento "success" vai conter o resultado avaliado. Se a solicitação falhar, o argumento de falha vai conter uma mensagem de erro.

Exemplos

Editor de código (JavaScript)

// Define a callback function that prints a GeoJSON string.
var printGeoJSONString = function(geometry) {
  geometry = ee.Geometry(geometry);
  print(geometry.toGeoJSONString());
};

// Create a simple computed geometry.
var computedGeometry = ee.Geometry.Point(0, 0).buffer(10);

// Evaluate the callback function that asynchronously retrieves and prints
// the GeoJSON string representation of computed geometry.
computedGeometry.evaluate(printGeoJSONString);

Configuração do Python

Consulte a página Ambiente Python para informações sobre a API Python e como usar geemap para desenvolvimento interativo.

import ee
import geemap.core as geemap

Colab (Python)

# The Earth Engine Python client library does not have an evaluate method for
# asynchronous evaluation of ee.Geometry objects.
# Use ee.Geometry.getInfo() instead.