Announcement : All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
Send feedback
ee.FeatureCollection.geometry
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
Extracts and merges the geometries from a FeatureCollection into a single Geometry.
Requires all geometries in the collection to have the same projection and edge interpretation.
Performance can be affected by the size and complexity of the input FeatureCollection.
An optional maxError
parameter can be used to control the merging process.
Extracts and merges the geometries of a collection. Requires that all the geometries in the collection share the projection and edge interpretation.
Caution: providing a large or complex collection as input can result in poor performance. Collating the geometry of collections does not scale well; use the smallest collection that is required to achieve the desired outcome. Note: If only a bounding box around the collection is needed, consider using Collection.bounds instead.
Usage Returns FeatureCollection. geometry (maxError )
Geometry
Argument Type Details this: collection
FeatureCollection The collection whose geometries will be extracted. maxError
ErrorMargin, optional An error margin to use when merging geometries.
Examples
Code Editor (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 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)
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 ())
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."],[],[]]