お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
ee.Filter.bounds
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
オブジェクトのジオメトリが指定されたジオメトリと交差する場合にパスするフィルタを作成します。
作成されたフィルタを返します。
用途 | 戻り値 |
---|
ee.Filter.bounds(geometry, errorMargin) | フィルタ |
引数 | タイプ | 詳細 |
---|
geometry | ComputedObject|FeatureCollection|Geometry | 交差させるジオメトリ、フィーチャー、またはコレクション。 |
errorMargin | ComputedObject|Number、省略可 | 誤差範囲(省略可)。数値の場合、球体の表面のメートル単位として解釈されます。 |
例
コードエディタ(JavaScript)
// collection.filterBounds() is preferred.
// A Sentinel-2 surface reflectance image collection for 3 months in 2021.
var ic = ee.ImageCollection('COPERNICUS/S2_SR')
.filterDate('2021-07-01', '2021-10-01');
// A point geometry for the peak of Mount Shasta, California, USA.
var geom = ee.Geometry.Point(-122.196, 41.411);
print('Images intersecting point geometry',
ic.filter(ee.Filter.bounds(geom)));
// A feature collection of point geometries for mountain peaks.
var fc = ee.FeatureCollection([
ee.Feature(ee.Geometry.Point(-122.196, 41.411), {mountain: 'Mount Shasta'}),
ee.Feature(ee.Geometry.Point(-121.697, 45.374), {mountain: 'Mount Hood'})
]);
print('Images intersecting feature collection',
ic.filter(ee.Filter.bounds(fc)));
Python の設定
Python API とインタラクティブな開発での geemap
の使用については、
Python 環境のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# collection.filterBounds() is preferred.
# A Sentinel-2 surface reflectance image collection for 3 months in 2021.
ic = ee.ImageCollection('COPERNICUS/S2_SR').filterDate('2021-07-01',
'2021-10-01')
# A point geometry for the peak of Mount Shasta, California, USA.
geom = ee.Geometry.Point(-122.196, 41.411)
print('Images intersecting point geometry:',
ic.filter(ee.Filter.bounds(geom)).getInfo())
# A feature collection of point geometries for mountain peaks.
fc = ee.FeatureCollection([
ee.Feature(ee.Geometry.Point(-122.196, 41.411),
{'mountain': 'Mount Shasta'}),
ee.Feature(ee.Geometry.Point(-121.697, 45.374),
{'mountain': 'Mount Hood'})
])
print('Images intersecting feature collection:',
ic.filter(ee.Filter.bounds(fc)).getInfo())
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 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"]],["最終更新日 2025-07-26 UTC。"],[],[]]