Earth Engine は、共有コンピューティングリソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層を導入しています。非商用プロジェクトではデフォルトでコミュニティ
ティアが使用されますが、プロジェクトのティアはいつでも変更できます。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
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。
[null,null,["最終更新日 2026-01-08 UTC。"],[],[]]