# ee.FeatureCollection.geometry

Extracts and merges the geometries of a collection. Requires that all the geometries in the collection share the projection and edge interpretation.

<br />

> [!CAUTION]
> **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]
> **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)

```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](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

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

display("Point FeatureCollection's geometry:", fc.geometry())
```