ee.FeatureCollection.evaluate

このオブジェクトの値をサーバーから非同期で取得し、指定されたコールバック関数に渡します。

用途戻り値
FeatureCollection.evaluate(callback)
引数タイプ詳細
これ: computedobjectComputedObjectComputedObject インスタンス。
callback関数サーバーが回答を返したときに呼び出される、function(success, failure) 形式の関数。リクエストが成功した場合、success 引数には評価結果が含まれます。リクエストが失敗した場合、failure 引数にエラー メッセージが含まれます。

コードエディタ(JavaScript)

/**
 * WARNING: this function transfers data from Earth Engine servers to the
 * client. Doing so can negatively affect request processing and client
 * performance. Server-side options should be used whenever possible.
 * Learn more about the distinction between server and client:
 * https://developers.google.com/earth-engine/guides/client_server
 */

// FeatureCollection of power plants in Belgium.
var fcServer = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');

fcServer.evaluate(function(fcClient) {
  print('Client-side feature collection is an object', typeof fcClient);
  print('Feature collection object keys', Object.keys(fcClient));
  print('Array of features', fcClient.features);
  print('Properties for first feature', fcClient.features[0].properties);
});

Python の設定

Python API とインタラクティブな開発での geemap の使用については、 Python 環境のページをご覧ください。

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.FeatureCollection objects.
# Use ee.FeatureCollection.getInfo() instead.