Earth Engine は、共有コンピューティング リソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層を導入しています。すべての非商用プロジェクトは、
2026 年 4 月 27 日までに割り当て階層を選択する必要があります。選択しない場合は、デフォルトでコミュニティ階層が使用されます。階層の割り当ては、
2026 年 4 月 27 日に(階層の選択日に関係なく)すべてのプロジェクトで有効になります。
詳細
ee.FeatureCollection.select
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
コレクション内の各フィーチャーからプロパティを選択します。文字列引数のみを使用してこの関数を呼び出すこともできます。これらの引数はすべて propertySelectors(可変長引数)として解釈されます。
選択したプロパティを含む特徴コレクションを返します。
| 用途 | 戻り値 |
|---|
FeatureCollection.select(propertySelectors, newProperties, retainGeometry) | FeatureCollection |
| 引数 | タイプ | 詳細 |
|---|
これ: featurecollection | FeatureCollection | FeatureCollection インスタンス。 |
propertySelectors | List[String] | 選択する属性を指定する名前または正規表現のリスト。 |
newProperties | List[String](省略可) | 出力プロパティの新しい名前のリスト。選択したプロパティの数と一致している必要があります。 |
retainGeometry | ブール値、省略可 | false の場合、結果には NULL ジオメトリが含まれます。デフォルトは true です。 |
例
コードエディタ(JavaScript)
// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
.filter('country_lg == "Belgium"');
// Select a single property.
var singleProp = fc.select('fuel1');
print('Single property selected',
singleProp.first());
// Select multiple properties.
var multiProp = fc.select(['fuel1', 'capacitymw']);
print('Multiple properties selected',
multiProp.first());
// Select multiple properties and rename them.
var multiPropRename = fc.select({
propertySelectors: ['fuel1', 'capacitymw'],
newProperties: ['Fuel_1', 'Capacity_MW']
});
print('Multiple properties selected, renamed',
multiPropRename.first());
// Select multiple properties, remove geometry.
var multiPropNoGeom = fc.select({
propertySelectors: ['fuel1', 'capacitymw'],
retainGeometry: false
});
print('Multiple properties selected, geometry removed',
multiPropNoGeom.first());
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"')
# Select a single property.
single_prop = fc.select('fuel1')
display('Single property selected:', single_prop.first())
# Select multiple properties.
multi_prop = fc.select(['fuel1', 'capacitymw'])
display('Multiple properties selected:', multi_prop.first())
# Select multiple properties and rename them.
multi_prop_rename = fc.select(**{
'propertySelectors': ['fuel1', 'capacitymw'],
'newProperties': ['Fuel_1', 'Capacity_MW']
})
display('Multiple properties selected, renamed:',
multi_prop_rename.first())
# Select multiple properties, remove geometry.
multi_prop_no_geom = fc.select(**{
'propertySelectors': ['fuel1', 'capacitymw'],
'retainGeometry': False
})
display('Multiple properties selected, geometry removed:',
multi_prop_no_geom.first())
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2026-01-08 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2026-01-08 UTC。"],[],[]]