Send feedback
ee.FeatureCollection.bounds
Stay organized with collections
Save and categorize content based on your preferences.
Constructs a bounding box around the geometries in a collection.
Usage Returns FeatureCollection. bounds (maxError , proj )
Geometry
Argument Type Details this: collection
FeatureCollection The collection whose bounds will be constructed. maxError
ErrorMargin, optional The maximum amount of error tolerated when performing any necessary reprojection. proj
Projection, optional If specified, the result will be in this projection. Otherwise it will be in EPSG:4326.
Examples
Code Editor (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 setup
See the
Python Environment page for information on the Python API and using
geemap
for interactive development.
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-23 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-23 UTC."],[],[]]