お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.FeatureCollection.toList
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
: コレクションの要素をリストとして返します。
用途 | 戻り値 |
---|
FeatureCollection.toList(count, offset) | リスト |
引数 | タイプ | 詳細 |
---|
これ: collection | FeatureCollection | 取得する入力コレクション。 |
count | Integer | 取得する要素の最大数。 |
offset | 整数、デフォルト: 0 | 先頭から破棄する要素の数。設定されている場合、(オフセット + カウント)個の要素が取得され、最初のオフセット個の要素が破棄されます。 |
例
コードエディタ(JavaScript)
// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
.filter('country_lg == "Belgium"');
print('First 5 features to an ee.List', fc.toList(5));
print('Second 5 features to an ee.List', fc.toList(5, 5));
Python の設定
Python API とインタラクティブな開発での geemap
の使用については、
Python 環境のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
'country_lg == "Belgium"')
print('First 5 features to an ee.List:', fc.toList(5).getInfo())
print('Second 5 features to an ee.List:', fc.toList(5, 5).getInfo())
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],[],null,[]]