OS Terrain 50 User Guide
OS Terrain 50 User Guide
User guide
Contents
Section Page no
Preface .................................................................................................................................................. 3
Contact details ........................................................................................................................... 3
Use of the product ...................................................................................................................... 3
Purpose and disclaimer............................................................................................................... 3
Copyright in this guide ................................................................................................................ 4
Data copyright and other intellectual property rights ................................................................... 4
Trademarks ................................................................................................................................ 4
Back-up provision of the product ................................................................................................. 4
Using this guide .......................................................................................................................... 4
Chapter 1 Introduction .............................................................................................................................. 5
Using this guide ..................................................................................................................... 5
OS Terrain overview .................................................................................................................... 5
OS Terrain 50 ......................................................................................................................... 5
Applications .......................................................................................................................... 5
Features ................................................................................................................................ 5
Accuracy ............................................................................................................................... 6
Supply format........................................................................................................................ 6
Ordering data ........................................................................................................................ 6
Coverage and file sizes ........................................................................................................... 6
File structure ......................................................................................................................... 7
INSPIRE compliance .............................................................................................................. 8
Computer hardware............................................................................................................... 8
Computer software ................................................................................................................ 8
Chapter 2 OS Terrain 50 ............................................................................................................................. 9
Grid ............................................................................................................................................ 9
Introduction .......................................................................................................................... 9
Contours ..................................................................................................................................10
Introduction ........................................................................................................................10
Feature types.......................................................................................................................10
Spot heights ........................................................................................................................11
Chapter 3 Data, metadata, and additional files .......................................................................................12
Metadata ..................................................................................................................................13
Metadata Viewing stylesheet ................................................................................................14
Chapter 4 OS Terrain 50 source data .......................................................................................................15
Introduction .............................................................................................................................15
Coverage .............................................................................................................................15
Positional accuracy requirements ........................................................................................15
Modelling of features in source data ..........................................................................................16
Chapter 5 The National Grid ....................................................................................................................18
Annexe A Product and service performance report form .......................................................................19
v1.4 – 04/2019
D05300_49
Contact details
Our Customer Service Centre will be pleased to deal with your enquiries:
Customer Service Centre
Ordnance Survey
Adanac Drive
SOUTHAMPTON
SO16 0AS
General enquiries (calls charged at local rate): +44 (0)3456 050505
Dedicated Welsh Language HelpLine: 03456 050504
Textphone (deaf and hard of hearing users only please): +44 (0)2380 056146
Email: customerservices@os.uk
or visit the Ordnance Survey website at: www.os.uk
This document has been screened in accordance with the requirements set out in Ordnance Survey's Equality
Scheme. If you have difficulty reading this information in its current format and would like to find out how to access
it in a different format (Braille, large print, computer disk or in another language), please contact us on:
+44 (0)3456 050505.
Trademarks
Ordnance Survey, the OS Symbol, OS MasterMap, OS MasterMap Integrated Transport Layer, OS OpenData, Land-
Form PANORAMA and Land-Form PROFILE are registered trademarks and OS Terrain 5 and OS Terrain 50 are
trademarks of Ordnance Survey, the national mapping agency of Great Britain.
Esri is a trademark of Esri Inc.
OS Terrain overview
OS Terrain is the name given to Ordnance Survey’s new range of height products. These are three-dimensional
models of the bare earth surface known as Digital Terrain Models (DTMs). The range will consist of:
• OS Terrain 5 a mid-resolution DTM, designed to be interoperable with our large-scale data; and
• OS Terrain 50 a lower-resolution DTM product, designed for landscape visualisation and analysis over large
areas. This is available through OS OpenData™.
OS Terrain 50
OS Terrain 50 is published as both grid and contours each in a variety of formats. Both data types are created from
the same source data and are supplied as 10 km by 10 km tiles.
• OS Terrain 50 grid a grid of heighted points with regular 50 metre post spacing.
• OS Terrain 50 contours a contour dataset of 10 metre interval standard contour polylines which includes,
mean high and low water boundaries and spot heights.
Applications
OS Terrain 50 provides an ideal base to enable the third dimension for other data within an appropriate
geographical information system (GIS). The height data has been created from a source that is also used to update
our large-scale data products and it can be used in conjunction with many other Ordnance Survey digital products,
for analytical, modelling, planning and visual purposes to enable:
• View-shed modelling.
• Asset/site management.
• Visual aid.
• Signal propagation.
• Environmental analysis.
• High level development.
• Geological analysis.
• Line of sight planning.
• Fly-through sequences.
Features
• Maintained within our integrated 3–5 year flying programme and synchronised with our other product updates.
• Specific modelling of significant features, particularly networks.
• Available in a variety of formats.
• Full coverage of Great Britain.
• Provided free at the point of use as a download through OS OpenData™.
Accuracy
OS Terrain 50 has been compared with GPS points in a range of sample areas to provide a Route Mean Square Error
(RMSE) value for the height points in each geographic area; urban and major communication routes, rural and
mountain and moorland. OS Terrain 50 grid has been verified to be 4 m RMSE.
Supply format
OS Terrain 50 is available as:
• GeoPackage (OS Terrain 50 contours only)
• 50 metre grid in ASCII grid and GML 3.2.1 (Simple Features Profile – level 0).
• 10 metre contours in Esri® shapefile or GML 3.2.1 (Simple Features Profile – level 0).
Ordering data
The data is provided as a full set of Great Britain in tiles and is available as download only. The national dataset is
supplied as 10 km by 10 km tiles of data. There are 2,858 tiles in the product arranged into 55 folders representing
each 100 km tile grid square.
It is recommended that a download manager is used to extract the data as this additional functionality will be able
to automate the process and organise the data folders as desired. There are many commercial and open source
download clients available to help manage the data.
This data is designed to be kept up to date by annual full tile resupply. Please visit the OpenData pages to view the
update dates.
terr50_gagg_gb.zip
Licence.txt
data
Metadata_
[TILE REF].xml
http://www.ordnancesurvey.co.uk/oswebsite/
[TILE REF]
.asc aux.xml
OSTerrain_Metadata_
viewing_stylesheet.xsl
[TILE REF].gml
OSTerrainGrid
[TILE REF].prj Products.xsd
[TILE REF].asc
In the diagram above some files are located on the Ordnance Survey website. Please see Data, metadata and
additional files for more information.
Terrain 2 conforms to the INSPIRE Elevation specification which itself is based on common open standards with the
exception that it is only available in British National grid.
Computer hardware
This product may be used on a wide range of hardware platforms (provided sufficient memory and storage facilities
are available), varying from tablets or computers using GIS or CAD to mainframe computers with specialised
translators and applications. Please see Coverage and file sizes for more information. Your system supplier will be
able to advise on your requirements.
Computer software
OS Terrain 50 is supplied as inert data in a variety of formats and does not include software for data manipulation.
GML is an open standard format and the data may need to be translated into the appropriate format for use within
a GIS application. A wide range of GIS software can read the GML contour data without translation.
Grid
Introduction
The height data is presented as a raster dataset of height values which are calculated at the centre of the pixel. This
method of creating the data means there are no overlaps between tiles nor common values along the edge.
Coordinate reference systems for DTMs may be used to calculate the DTM origin and coordinates of individual
posts.
Feature types
The terms used for the feature types are drawn from the INSPIRE elevation specification. The draft INSPIRE
elevation specification requires height values to be held in an attribute called ‘propertyValue’, which has been
implemented in the new OS Terrain contour GML. In the shapefile format, the GML feature types and attributes
have been followed but with the 10-character limit on shapefile fields, ‘propertyValue’ is abbreviated to
‘PROP_VALUE’.
The contours are named ‘master’ and ‘ordinary’, which are equivalent to ‘index’ and ‘standard’ contours in
withdrawn Ordnance Survey’s product, Land-Form PROFILE.
The XML metadata contains comments to clarify the meaning of the XML tags used in the file.
To make the xml easier to read an XSLT viewing style sheet is provided (OSTerrainMetadataViewingStylesheet.xsl),
which converts the XML to HTML for ease of viewing in a web browser. Some browsers and other software will read
this automatically if the user is connected to the internet as its address is referenced in the metadata but it can also
be located on the Ordnance Survey website
http://www.ordnancesurvey.co.uk/xml/stylesheet/OSTerrainMetadataViewingStylesheet.xsl.
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.isotc211.org/2005/gmx
http://eden.ign.fr/xsd/isotc211/isofull/20090316/gmx/gmx.xsd"><!-- Unique identifier, required
if this record is being used in a metadata management system -->
<gmd:fileIdentifier>
<gco:CharacterString>OSTerrain5.NT23NE</gco:CharacterString>
</gmd:fileIdentifier>
<gmd:contact gco:nilReason="missing"></gmd:contact>
<gmd:dateStamp>
<gco:DateTime>2013-01-08T03:22:25</gco:DateTime>
</gmd:dateStamp><!-- Projected Coordinate Reference System -->
<gmd:referenceSystemInfo>
<gmd:MD_ReferenceSystem>
<gmd:referenceSystemIdentifier>
<gmd:RS_Identifier>
<gmd:code>
<gmx:Anchor
xlink:href="urn:ogc:def:crs:EPSG::27700">British National Grid</gmx:Anchor>
This XML file contains min, max, mean and standard deviation height values for the product, in a format defined by
Esri. The same values are supplied for every tile. Providing these height statistics is intended to allow colour ramps
to be applied by the user, such that adjacent tiles are styled consistently.
This can be disabled by removing the asc.aux.xml file from each downloaded folder or adjusting the parameters of
the minimum and maximum heights in a GIS if desired.
Introduction
The source DTM for OS Terrain products is captured as a Triangulated Irregular Network (TIN) by editing with mass
points and breaklines and/or automated techniques within a photogrammetric environment. The TIN is a superior
model for three-dimensional data as it uses triangles which can retain the edges of features more accurately than a
grid, for example.
The source data capture is subject to demanding rules defined by the height capture specification. Particular
attention is paid to communication routes and features significant to height applications. This section describes
some of the key capture requirements from the detailed capture specification which we endeavour to achieve in
the source data.
The grid and contour products are both interpolated from this source TIN model. This is because the TIN model is
not widely supported by GIS software. As OS Terrain 50 is designed to work with small-scale products the feature
modelling will have a more generalised representation in the product.
Coverage
The minimum coverage of the data extends out to the low water mark, defined by Hydrographic Office tables with a
height value for each tile. For England and Wales the low water mark is Mean Low Water (MLW) and for Scotland
Mean Low Water (Springs) (MLW(S)).
All land wholly within inland water bodies that is represented by topographic area features is captured according to
the positional accuracy requirements of the area. The minimum requirement is to capture the outer edge of the
feature. The surrounding water will remain flat.
Any other land within inland water bodies captured by automated processes will be removed from the data.
The z values of the source TIN data have to meet positional accuracy requirements according to their geographic
location. The terrain has been divided into three classifications; urban and major communication routes, rural and
mountain and moorland to ensure that modelling reflects customer requirements. The accuracy of the height value
above Newlyn Datum must achieve the root mean square error (RMSE) set for each area.
Terrain smoothness
The DTM will be free of spikes and wells that do not reflect the real world terrain. A surface that is smooth, that is,
one that consists of a regular plane (which may be angled) for example, a road carriageway or railway track bed,
will also appear smooth in the data.
Edgematching
Most data will present without visible tile edges or discernible height differences between tiles. In places there may
be small edges present or a difference in feature modelling between new and older content. There will also be small
edges in tidal areas due to local tidal differences
Supported structures
Supported structures include bridges, viaducts, jetties or piers on legs, cranes, elevated buildings, and so on.
Supported structures are removed from the data where the structure departs from the bare earth surface and an air
gap exists. All supported structures will be removed from the data
Vegetation
Areas of vegetation, such as hedgerows and trees are removed to ensure the bare earth surface is correctly
recorded.
Vertical features
Locations with a vertical change in height, or overhang, have the height of the top of the feature recorded at the
correct planimetric location according to the positional accuracy requirements.
The height at the lowest point of the vertical feature is recorded according to positional accuracy requirements of
the feature but offset from its real world planimetric position to ensure that there is only one z value present in the
same location.
To describe a 10 km by 10 km tile,
first add a two digit reference to
the 100 km by 100 km square
reference, with the easting first
followed by the northing, for
example, TG23. Then identify
which quadrant of that grid
square is required and add SW,
SE, NW or NE to the reference, for
example, TG23SW.
For additional information on
how to use the National Grid, visit
the Ordnance Survey’s website
at:
http://www.ordnancesurvey.co.uk
v1.4 – 04/20197
GeoPackage overview
Geopackage is an open, standards-based, portable, platform-independent, compact format for transferring
geospatial information. It is designed to be a lightweight format that can contain large amounts of varied and
complex data in a single, easy to distribute and ready to use file.
GeoPackage is a contour dataset of 10 metre interval standard contour polylines which includes, mean high and
low water boundaries and spot heights.
It can hold large amounts of data and can support the different geometry types and indexes which make the data
much easier to use.
GeoPackage offer users the following benefits:
• The single file is easy to transfer and offers the end-user a rich experience.
• No file size limit so lots of data can be easily accommodated.
• Supports raster, vector and database formats making it a highly versatile solution.
• It is an Open Geospatial Consortium (OGC) Standard.
• In most cases, it is a plug-in-and-play.
Data structure
Header section
The data is specified as a raster grid with the height values being calculated at the centre of the pixel. To represent
this in ASCII grid format the initial coordinates in the map header originate on the north-west corner of the tile. The
data is presented in rows reading from west to east creating a row of 200 values. The next row will begin 25 m from
the western edge (pixel-centre) 50 m south of the origin and again progressing at 50 m intervals to the east.
Number of points
ncols 200
nrows 200
xllcorner 290000 (example)
yllcorner 80000 (example)
cellsize 50
Data section
The height values are presented in the standard ASCII grid format as a series of real values. The height values are
given to the nearest 0.1 metre.
GML overview
The OpenGIS® GML Encoding Standard, the GML is an XML grammar for expressing geographical features. GML
serves as a modelling language for geographic systems as well as an open interchange format for geographic
transactions on the Internet. As with most XML based grammars, there are two parts to the grammar – the schema
that describes the document and the instance document that contains the actual data. A GML document is
described using a GML Schema. This allows users and developers to describe generic geographic data sets that
contain points, lines and polygons.
http://www.opengeospatial.org/standards/gml/
The GML conforms to GML 3.2.1 Simple Features (level 0) which is a subset of the full GML specification, intended to
make it easier for GIS vendors to provide a minimum level of support for GML.
GML schema
XML schemas are used to validate the format and content of the GML. The GML specification provides a set of
schemas that define the GML feature constructs and geometric types. These are designed to be used as a basis for
building application-specific schemas, which define the data content.
The OS Terrain 50 application schemas, which are referenced by the data, are available at
http://www.ordnancesurvey.co.uk/xml/terrainschema/
The user may need to be connected to the internet to access these online schemas while working with OS Terrain
50 in GML unless their software supports local copies of the schema. Depending upon the software that is being
used to read the data the user has the following options:
• The software does not use the schema, therefore does not need to be connected to the Internet.
• The software needs the schema, but can reference the schema from a local copy, if it is downloaded in advance.
• The software needs the schema and can only reference it from the online version, therefore needs to be
connected to the Internet.
Feature types
The model is ‘feature based’ so that ‘ContourLine’, ‘SpotHeight’ and ‘LandWaterBoundary’ are feature types with
specific attributes. Please see GML contours and spot heights for more information.
The coordinate reference system for geometries in the OS Terrain GML, is expressed using an EPSG code embedded
in a URN (urn:ogc:def:crs:EPSG::27700). This is a more generic way of expressing the reference system, rather than
osgb:BNG (British national Grid), used in previous Ordnance Survey products.
Unique identifiers
GML 3.2 requires features and their geometries to have unique identifiers. For OS Terrain products, the feature
identifiers have been structured as follows: os.t50.<tile name>.<sequential number>, where the second part
abbreviates the product name. Geometry identifiers in the GML use the same form, but with a .geom suffix.
Therefore, for a given release of the product, every feature and geometry is guaranteed to have a unique identifier.
The products will be updated by whole tile refresh and there are no plans to supply feature-based change-only-
update. When a tile is updated, the sequential identifiers are re-generated.
Spot heights
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.
Coordinate
reference system
information
Spot height files
<tile Shape format
name>_point.shp
The spot height
geometry
<tile Shape attribute
name>_point.dbf ID FEAT_TYPE SUB_TYPE PROP_VALUE
format
A database file that os.t50.sy09.0 SpotHeight generic 30.00
contains the
attributes of each os.t50.sy09.1 SpotHeight generic 66.00
feature
os.t50.sy09.2 SpotHeight generic 41.00
absolute accuracy
A measure that indicates how closely the coordinates of a point in Ordnance Survey map data agree with the true
National Grid coordinates of the same point on the ground. As the true position can never be known exactly, the
statistic is quoted relative to the best known position determined by precise survey methods.
accuracy
The closeness of the results of observations, computations or estimates to the true values or the values accepted as
being true. Accuracy relates to the exactness of the result, and is a measure of the exactness of the operation by
which the result is obtained.
ASCII
American Standard Code for Information Interchange – a standard binary coding system used to represent
characters within a computer.
bit
An acronym for binary digit.
breakline
A line indicating discontinuity in a terrain surface, that is, an abrupt change in gradient.
byte
A unit of computer storage of binary data usually comprising 8 bits, equivalent to a character. Hence megabyte
(one million bytes) and gigabyte (one thousand million bytes).
character
A distinctive mark; an inscribed letter; one of a set of writing-symbols.
contour
A line connecting points of equal elevation.
coordinates
Pairs of numbers expressing horizontal distances along orthogonal axes. Alternatively, triplets of numbers
measuring horizontal and vertical distances.
copyright
Copyright is a legal property right which enables the creator of an original work to protect it from unauthorised use.
Through the Copyright, Designs and Patents Act 1988, Crown copyright continues to subsist in all Ordnance Survey
products until the end of the period of 50 years from the end of the year in which they were published and, in the
case of data, from the end of the year in which it was extracted from the Ordnance Survey database. Crown
copyright is vested in The Controller of Her Majesty’s Stationery Office, who has delegated powers to the Director
General, Ordnance Survey for the administration of copyright in publications and data, including the determination
of the rules and terms under which permission for their reproduction is given.
currency
An expression of the up-to-dateness of data.
data
A representation of facts, concepts or instructions in a formalised manner suitable for communication,
interpretation or processing.
data capture
The encoding of data. In the context of digital mapping this includes map digitising, direct recording by electronic
survey instruments, and the encoding of text and attributes by whatever means.
data model
An abstraction of the real world which incorporates only those properties thought to be relevant to the application
or applications at hand. A data model would normally define specific groups of entities and their attributes, and the
relationship between these entities. A data model is independent of a computer system and its associated data
structures.
data point
A coordinate pair that defines the position of a point feature, or one of a series of coordinate pairs that defines a
line feature.
data quality
Attributes of a dataset that define its suitability for a particular purpose, for example, completeness, positional
accuracy, currency, logical structure and so on.
data structure
The defined logical arrangement of data as used by a system for data management; a representation of a data
model in computer form.
data type
This defines the structure of a data item. This in turn determines the range of values it can take and the range of
operations that can be applied to it. Integer, real and character string are examples of data type. Some modern
programming languages allow user-defined types.
database
An organised, integrated collection of data stored so as to be capable of use by relevant applications, with the data
being accessed by different logical paths. Theoretically, it is application-independent, but in reality it is rarely so.
dataset
An identifiable collection of related data.
digital
Data that is expressed as numbers (digits) in computer-readable form is said to be digital.
eastings
See rectangular coordinates.
edgematch
The process of ensuring that data along the adjacent edges of blocks of data matches in both positional and
attribute terms.
feature
An item of detail within a digital map that can be represented by either a point, symbol, text or line.
feature identifier
A unique code to identify an individual feature. A specified part of a record containing a unit of data, such as the
date of digitising. The unit of data may be a data element or a data item.
field
A specified part of a data file containing a unit of data, such as the date of flying.
GML
GML was developed by the Open GIS Consortium (OGC), a global organisation of developers and users that aims to
maximise the benefit of geographic information. GML is a spatially enabled dialect of XML schema.
grid
The planimetric frame of reference, for example, the National Grid or the consistent alignment of data points.
kilobyte (Kb)
A total of 1,024 bytes; a measure of data storage capacity.
line
A series of connected coordinated points forming a simple feature with homogeneous attribution.
megabyte (Mb)
A total of 1,048 576 bytes; a measure of data storage capacity.
National Grid
The metric grid on a Transverse Mercator projection used by Ordnance Survey on all post-war mapping to provide
an unambiguous spatial reference in Great Britain for any place or entity, whatever the map scale.
Northings
See rectangular coordinates.
origin
The zero point in a system of rectangular Cartesian coordinates.
point
A zero-dimensional spatial abstraction of an object represented as a coordinate pair.
point feature
A zero-dimensional spatial abstraction of an object with its position defined by a coordinate pair. Points may also
be represented by symbols, which may have attributes such as orientation and size.
positional accuracy
The degree to which the coordinates define a point’s true position in the world, directly related to the spheroid
and/or projection on which the coordinates system is based.
rectangular coordinates
Also known as x-y coordinates and as eastings and northings. These are two-dimensional coordinates that measure
the position of any point relative to an arbitrary origin on a plane surface, for example, a map projection, a
digitising table or a VDU screen.
Shapefile
This is a data format developed by Esri to describe features such as points, lines and polygons to enable spatial
analysis. A shapefile consists of a number of files designed to hold information essential for the transfer of this data
between software products which are capable of reading shapefiles.
spot height
A point on the Earth’s surface for which the height, above a reference datum, is known and which has been fixed by
observation.
transfer format
The format used to transfer data consistently between computer systems. In general usage this can refer not only
to the organisation of data but also to the associated information, such as attribute codes, which are required in
order to successfully complete the transfer.