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