ee.FeatureCollection.geometry

Extracts and merges the geometries of a collection. כל הגיאומטריות באוסף צריכות להיות באותה הקרנה ובאותה פרשנות של הקצוות.

שימושהחזרות
FeatureCollection.geometry(maxError)גיאומטריה
ארגומנטסוגפרטים
זה: collectionFeatureCollectionהאוסף שממנו יחולצו הגיאומטריות.
maxErrorErrorMargin, אופציונלישולי שגיאה לשימוש במיזוג גיאומטריות.

דוגמאות

עורך הקוד (JavaScript)

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

print("Point FeatureCollection's geometry", fc.geometry());

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

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

print("Point FeatureCollection's geometry:")
pprint(fc.geometry().getInfo())