GML overview
Last updated
Last updated
This section describes the GML format for OS Open Rivers. We recommend that you read this section in conjunction with the Open Geospatial Consortium (OGC) document, OpenGIS® Geography Markup Language (GML) Encoding.
The XML specifications on which the GML is based are available from the World Wide Web Consortium (W3C) website: https://www.w3.org/XML/.
Information about Unicode and UTF-8, the character encoding that we use, is available on the Unicode Consortium website: http://www.unicode.org/.
XML schemas are used to define and validate the format and content of the GML. The GML v3.2.1 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 schema, OSOpenRivers.xsd, which is referenced by the data, is available on the OS Open page of the XML file resources section of our website.
It OS schema imports the INSPIRE Data Specification on Hydrography application schema, which in turn imports the GML 3.2.1 schemas. These in turn import schemas produced by the W3C, which are available from the W3C website at: http://www.w3.org/XML/1998/namespace.html.
All these schemas are defined in XML Schema Definition language (XSD), as defined by the W3C.
The OS application schema uses the XML namespaces detailed in the table below. A link to each definition is provided in the last column.
Prefix | Namespace identifier | Definition available at |
---|---|---|
gml | ||
xsi | Built into the XML schema: | |
xlink |
OS Open Rivers conforms to GML 3.2.1 Simple Features Profile – Level 0.
GML is designed to support a wide variety of capabilities, ranging from simple contextual mapping, such as OS OpenMap, to products that include complex geometric property types and even spatial and temporal topology. The Simple Features Profile of GML 3.2.1 defines a restricted subset of GML, which allows for greater interoperability.