# Contour data

## GML <a href="#bookmark9" id="bookmark9"></a>

OS Terrain 50 contour layers are supplied in GML 3.2.1. It is recommended that you read this section in conjunction with the Open Geospatial Consortium (OGC) document, [Geography Markup Language 3.2.1](https://portal.ogc.org/files/?artifact_id=20509). An understanding of XML (Extensible Markup Language) and XML schemas is required. The XML specifications that GML is based on are available from the [World Wide](http://www.w3.org/) [Web Consortium (W3C) website](http://www.w3.org/).

### Data structure <a href="#bookmark11" id="bookmark11"></a>

The layer structure of the GML contour layers in the product is outlined in the following table.

| Layer name                 | Layer description                                                                     |
| -------------------------- | ------------------------------------------------------------------------------------- |
| \<tile name>.gml           | GML data file.                                                                        |
| Metadata\_\<tile name>.xml | A metadata file for contour data, providing information on the flying date and so on. |

### Detailed GML model <a href="#bookmark12" id="bookmark12"></a>

<figure><img src="/files/fIM3Veeqbx327UVTq9Kq" alt=" Figure 2. UML diagram illustrating the data model and the relationships between the contour and grid GML supply of OS Terrain 50"><figcaption><p>UML diagram illustrating the data model and the relationships between the contour and grid GML supply of OS Terrain 50</p></figcaption></figure>

### Spot heights <a href="#bookmark13" id="bookmark13"></a>

These have been created by an automated process to select the highest mass point within every closed contour. If the point is the same height as the contour, it will be removed. It is possible that some spot heights could be lower than the surrounding contour due to genuine depressions. The z value is rounded to 0 decimal places.


---

# 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/os-downloads/products/land-and-terrain-portfolio/os-terrain-50/os-terrain-50-technical-specification/contour-data.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.
