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 環境頁面,瞭解 Python API 和如何使用 geemap 進行互動式開發。

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