- Home
-
Public Sector
Public Sector
Quick links to popular content
- Business
-
Leisure
Leisure
OS getamap – print your route
Have your map custom made
Visit our shop
Read our magazine
-
Education & Research
Education & Research
Schools
Further & Higher Education
Research
General interest
-
About us
About us
Quick links
- Support
OS MasterMap – GML (Geography Mark-up Language) explained
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. According to the World Wide Web Consortium (W3C), XML schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents.
Following a schema ensures a level of standardisation. Standardisation encourages compatibility between different sources of data. GML can therefore be considered as a worldwide standard language for the production and distribution of geographic data.
OS MasterMap is supplied in GML 2.1.2
OpenGIS GML 2.1.2 implementation specification
GML 2.1.2 was ratified by the OGC in September 2002 to bring it in line with the W3C XML schema specification of May 2001.
Changes to the OS MasterMap data files
There is virtually no change to the XML instance documents that contain the OS MasterMap data. The two changes required are:
- The XML schema name space now reflects the 2001 specification.
- The schema location will reference the new schemas.
For example:
xmlns:osgb="http://www.ordnancesurvey.co.uk/xml/namespaces/osgb"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ordnancesurvey.co.uk/xml/namespaces/osgb
http://www.ordnancesurvey.co.uk/xml/schema/v3/OSDNFFeatures.xsd"
fid="example gml2.1.2">
Changes to the OS MasterMap schema files
The following changes were required to the XML schema that define OS MasterMap:
Update the XML name space.
Swap the timeInstant type to dateTime.
Use a different construct for default values of attributes.
Import all name spaces that are referenced in the schema file explicitly.
For example:
OSDNFFeatures.xsd
original : xmlns="http://www.w3.org/2000/10/XMLSchema"
revised : xmlns="http://www.w3.org/2001/XMLSchema"
OSQueryResult.xsd
original :
revised :
OSComplexTypes.xsd
original :
revised :
OSDNFFeatures.xsd
original :
revised :
http://www.opengis.net/gml/"/>