ee.FeatureCollection.bounds

Construit un cadre de sélection autour des géométries d'une collection.

UtilisationRenvoie
FeatureCollection.bounds(maxError, proj)Géométrie
ArgumentTypeDétails
ceci : collectionFeatureCollectionCollection dont les limites seront construites.
maxErrorErrorMargin, facultatifQuantité maximale d'erreur tolérée lors de toute reprojection nécessaire.
projProjection (facultatif)Si elle est spécifiée, le résultat sera dans cette projection. Sinon, il sera au format EPSG:4326.

Exemples

Éditeur de code (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

Configuration de Python

Consultez la page Environnement Python pour en savoir plus sur l'API Python et sur l'utilisation de geemap pour le développement interactif.

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