Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["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."],[[["\u003cp\u003eExtracts and merges the geometries from a FeatureCollection into a single Geometry.\u003c/p\u003e\n"],["\u003cp\u003eRequires all geometries in the collection to have the same projection and edge interpretation.\u003c/p\u003e\n"],["\u003cp\u003ePerformance can be affected by the size and complexity of the input FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003emaxError\u003c/code\u003e parameter can be used to control the merging process.\u003c/p\u003e\n"]]],[],null,["Extracts and merges the geometries of a collection. Requires that all the geometries in the collection share the projection and edge interpretation.\n\n\u003cbr /\u003e\n\n| **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.\n| **Note:** If only a bounding box around the collection is needed, consider using Collection.bounds instead.\n\n| Usage | Returns |\n|--------------------------------------------|----------|\n| FeatureCollection.geometry`(`*maxError*`)` | Geometry |\n\n| Argument | Type | Details |\n|--------------------|-----------------------|----------------------------------------------------|\n| this: `collection` | FeatureCollection | The collection whose geometries will be extracted. |\n| `maxError` | ErrorMargin, optional | An error margin to use when merging geometries. |\n\nExamples\n\nCode Editor (JavaScript) \n\n```javascript\n// FeatureCollection of power plants in Belgium.\nvar fc = ee.FeatureCollection('WRI/GPPD/power_plants')\n .filter('country_lg == \"Belgium\"');\n\nprint(\"Point FeatureCollection's geometry\", fc.geometry());\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\nColab (Python) \n\n```python\nfrom pprint import pprint\n\n# FeatureCollection of power plants in Belgium.\nfc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(\n 'country_lg == \"Belgium\"')\n\nprint(\"Point FeatureCollection's geometry:\")\npprint(fc.geometry().getInfo())\n```"]]