ee.FeatureCollection.bounds

コレクション内のジオメトリの周囲に境界ボックスを構築します。

用途戻り値
FeatureCollection.bounds(maxError, proj)ジオメトリ
引数タイプ詳細
これ: collectionFeatureCollection境界が構築されるコレクション。
maxErrorErrorMargin(省略可)必要な再投影を行う際に許容される最大誤差。
proj投影(省略可)指定した場合、結果はこのプロジェクションに表示されます。それ以外の場合は EPSG:4326 になります。

コードエディタ(JavaScript)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');

print('Bounds of Belgium power plants:', fc.bounds());  // ee.Geometry

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('Bounds of Belgium power plants:', fc.bounds().getInfo())  # ee.Geometry