# Update link between layers
```{container} algorithm-id
**Algorithm ID**: `hedgetools:updaterelation`
```
This tool takes a polygon, line, and point layer — typically generated at the end of the [Data - Preparation](./data_preparation/index.md) or [Data - Transformation](./data_transformation/index.md) steps — and updates the fields that allow geometries to be associated across layers.
It is useful when the topology has been disrupted due to manipulations or error corrections.
## Parameters
| Label | Name | Type | Description |
|----------|----------|----------|----------|
| Input polygon layer | `INPUT_POLY`| [vector: polygon] | Input polygon vector layer |
| Input arc layer | `INPUT_ARC`| [vector: line] | Input line vector layer |
| Input node layer | `INPUT_NODE`| [vector: point] | Input node vector layer |
| Output polygon layer | `OUTPUT_POLY`| [vector: polygon]
Default: `[Create temporary layer]` | Output polygon vector layer |
| Output arc layer | `OUTPUT_ARC`| [vector: line]
Default: `[Create temporary layer]` | Output line vector layer |
| Output node layer | `OUTPUT_NODE`| [vector: point]
Default: `[Create temporary layer]` | Output node vector layer |
## Outputs
| Label | Name | Type | Description |
|---------------|---------------|----------------|-------------|
| Output polygon layer | `OUTPUT_POLY` | [vector: polygon] | The output polygon vector layer will have updated following link fields: