This chapter describes the GML format for OS VectorMap District. It is recommended that you read this in conjunction with the Open Geospatial Consortium (OGC) document, Geography Markup Language v3.2.1.
The XML specifications that GML is based on are available from the World Wide Web Consortium (W3C®) website: http://www.w3.org.
Information about Unicode and UTF-8, the character encoding we have chosen, is available on the Unicode Consortium website: http://www.unicode.org/.
Any examples in this chapter that mention specific data content are to be taken as examples only.
A property of a feature implemented as an XML element, as defined in ISO 19109.
Attribute as used in an XML context is referred to as an XML attribute.
Most feature attributes are encoded as GML properties – property means a GML property.
XML schemas are used to define and validate the format and content of the GML. The GML v3.2 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 Ordnance Survey application schemas, which are referenced by the data, are available in the product release.
These schemas make use of XSDs (XML schema definitions) and DTDs (document type definitions) produced by the W3C®, which are available from the W3C website at http://www.w3.org/XML/1998/namespace.html.
The W3C-provided XSDs and DTDs are:
xml.xsd – to allow the use of the xml:lang attribute for language qualification.
XMLSchema.dtd – required by xml.xsd.
datatypes.dtd – required by XMLSchema.dtd. The OGC-provided schemas are:
feature.xsd – the feature and property constructs.
geometry.xsd – the geometric constructs such as polygon and point.
xlinks.xsd – a schema based on the W3C XLINK recommendation provided by the OGC to make use of the XLINK constructs.
The Ordnance Survey-provided schema is:
district.xsd – the feature type, complex type and simple type declarations.
The ‘OSVectorMapDistrict’ schema document defines the following XML namespaces:
xlink: http://www.w3.org/1999/xlink
The location of the schema is defined as:
http://namespaces.os.uk/cmd/district/v2.1
https://os.uk/xml/cmdschema/district/v2.1/district.xsd
Features within each tile are provided in a FeatureCollection.
GML is designed to support a wide variety of capabilities, ranging from simple contextual mapping, such as
OS VectorMap District, to products that include complex geometric property types or even spatial and temporal topology. The Simple Features Profile of GML 3.2 defines a restricted subset of GML, allowing scope for greater interoperability.
This product conforms to Simple Features Profile – Level 0.
A geometric property is one that describes a specific geometry. All geometric properties are encoded according to the Simple Features Profile, as referenced above.
The XML attribute ‘srsName’ shall be set to ‘urn:ogc:def:crs:EPSG::27700’, which uses eastings and northings specified in metres.
EPSG (European Petroleum Survey Group) provides numeric identifiers for many common projections and associated projection or coordinate metadata (such as measurement units or central meridian) for each identifier.
All exterior polygon boundaries have an anticlockwise orientation and all interior polygon boundaries have a clockwise orientation.
Raw GML data extract from NT VMD GML open data styled using open GIS software.