ee.FeatureCollection.getArray

特徴からプロパティを抽出します。

用途戻り値
FeatureCollection.getArray(property)配列
引数タイプ詳細
これ: object要素プロパティを抽出するフィーチャー。
property文字列抽出するプロパティ。

コードエディタ(JavaScript)

// A FeatureCollection with an array property value.
var fc = ee.FeatureCollection([]).set('array_property', ee.Array([1, 2, 3, 4]));

// Fetch the array property value as an ee.Array object.
print('Array property value as ee.Array', fc.getArray('array_property'));

Python の設定

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

import ee
import geemap.core as geemap

Colab(Python)

# A FeatureCollection with an array property value.
fc = ee.FeatureCollection([]).set('array_property', ee.Array([1, 2, 3, 4]))

# Fetch the array property value as an ee.Array object.
print('Array property value as ee.Array:',
      fc.getArray('array_property').getInfo())