# ee.Feature.setGeometry

Returns the feature with the geometry replaced by the specified geometry.

<br />

| Usage | Returns |
|---|---|
| `Feature.setGeometry(*geometry*)` | Element |

| Argument | Type | Details |
|---|---|---|
| this: `feature` | Element | The feature on which to set the geometry. |
| `geometry` | Geometry, default: null | The geometry to set. |