# Why we Snap and Trace

## What is Snapping?

Snapping is a technique which can be used when capturing or editing spatial data. It involves the snapping the node of a feature you are editing to another node on an existing feature.

It is predominantly done at the node level (start point, endpoint, and any directional change point) and is often used alongside tracing.

It is often used when copy and paste isn’t an option and is really good for continuous linear features e.g. Public Rights of Way (PRoW), Local Street Gazetteer and Utilities.

<div><figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-e0e2eb1f67c6211d4a59dc4ff3b126d1ccdab0fa%2Fsnapping-no-snapping.png?alt=media" alt="Image of a polygon has been captured without snapping to the underlying geometry"><figcaption><p>This polygon has been captured without snapping to the underlying geometry</p></figcaption></figure> <figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-9339806be62116fbc66dae50a673fc5f279ab248%2Fsnapping-yes-snapping.png?alt=media" alt="Image of a polygon has been captured by snapping to the underlying geometry"><figcaption><p>This polygon has been captured by snapping to the underlying geometry</p></figcaption></figure></div>

## What is Tracing?

Tracing is another technique which can be used when capturing or editing spatial data. Instead of clicking on the nodes of the underlying feature the software creates features or segments which follow the shape of the existing underlying features.

This is especially useful for replicating complex features (or segments) and curves and is often used alongside snapping.

It is used when copy and paste isn’t an option due to not needing a complete feature or needing multiple features and is really handy for capturing accurate property extents e.g. red line edges, asset management, legal agreements, polling districts.

<div><figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-b34c1e15e487bfeb81068b7f6d1352024e4fe980%2Ftracing-no-tracing.png?alt=media" alt="Image of a polygon that has been captured without tracing the underlying geometry"><figcaption><p>This polygon has been captured without tracing the underlying geometry</p></figcaption></figure> <figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-a4d6103e8cb1ac34f2de240a82672d3a9525e4a8%2Ftracing-yes-tracing.png?alt=media" alt="Image of a polygon that has been captured by tracing the underlying geometry"><figcaption><p>This polygon has been captured by tracing the underlying geometry as can be seen in the curve on the right</p></figcaption></figure></div>

## Snapping and Tracing together

* Snapping and tracing can be used together.
* It allows for the capture of even more complicated geometries.
* Really useful when needing all or parts of multiple features.

**A site-based example**

<div><figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-ed26f1c1ecb26519065226728f7560d3b7912fd1%2Fsnapping-site-based-no.png?alt=media" alt="Image of a non-snapped and traced polygon"><figcaption><p>the non-snapped and traced polygon is less well defined and results in a higher cost</p></figcaption></figure> <figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-9d45937472a05d907e1592ff97652ec500e87086%2Fsnapping-site-based-yes.png?alt=media" alt="Image of a snapped and traced polygon"><figcaption><p>the snapped and traced polygon is more accurately defined and results in a lower cost</p></figcaption></figure></div>

**A task-based example**

<div><figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-46a0cc1a27b9fbd7d6c23fbe093a6d0ed154a346%2Fsnapping-task-based-no.png?alt=media" alt="Image of a non-snapped and traced polygon"><figcaption><p>the non-snapped and traced polygon is less well defined and results in a higher cost</p></figcaption></figure> <figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-ce1f0ad0c2063bdde73fdb0d824669c3a3db0b78%2Fsnapping-task-based-yes.png?alt=media" alt="Image of a snapped and traced polygon"><figcaption><p>the snapped and traced polygon is more accurately defined and results in a lower cost</p></figcaption></figure></div>

**An action-based example**

<div><figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-5aa172db2958d878c17aef70df2861c885fd49e0%2Fsnapping-action-based-no.png?alt=media" alt="Image of a non-snapped and traced polygon"><figcaption><p>the non-snapped and traced polygon is less well defined and creates an overlap</p></figcaption></figure> <figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-bf1bd244cfa5da084f91245337a772085f41b112%2Fsnapping-action-based-yes.png?alt=media" alt="Image of a snapped and traced polygon"><figcaption><p>the snapped and traced polygon is more accurately defined</p></figcaption></figure></div>

## Benefits

* Simple to do
* No holes, gaps or overlaps in the data
* Improves data quality – no self-intersects
* This makes the data more accurate
* It makes onward use easier
* Enables quicker, more accurate decision making
* Can save your organisation time and money
* Reduced ambiguity – instills confidence
* Looks more professional

<figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-35cb9f145309bfb02106a2849015f417bad453fc%2Fsnap.png?alt=media" alt="an image of a complex road polygon created by snapping and tracing"><figcaption><p>a complex road polygon created by snapping and tracing</p></figcaption></figure>

***

This content has been developed from what was originally a Lightning Talk PowerPoint slide set. These slides are available to PSGA members to view and download from the [PSGA members area of the OS website](https://auth.ordnancesurvey.co.uk/my.policy)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.os.uk/more-than-maps/data-in-action/customer-best-practice/why-we-snap-and-trace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
