GML examples
This annex provides examples of the different GML structure for Full Supply orders and COU orders and the transactions within.
Full Supply
An example of the Full Supply GML including the opening and closing tags:
<os:FeatureCollection>
<os:FeatureMember>
<highway:RoadNode gml:id="osgb5000005193042483">
<gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/5000005193042483</gml:identifier>
<net:beginLifespanVersion>2017-01-13T00:00:00.000</net:beginLifespanVersion>
<net:inspireId>
<base:Identifier>
<base:localId>5000005193042483</base:localId>
<base:namespace>http://data.os.uk/</base:namespace>
</base:Identifier>
</net:inspireId>
<net:inNetwork xlink:href="#OSHighwayNetwork"/>
<net:geometry>
<gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_6">
<gml:pos>611319.332 231278.275</gml:pos>
</gml:Point>
</net:geometry>
<tn:validFrom nilReason="unknown" xsi:nil="true"/>
<tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
<highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">New</highway:reasonForChange>
<highway:relatedRoadArea xlink:href="#osgb5000005193041468"/>
</highway:RoadNode>
</os:FeatureMember >
</os:FeatureCollection
Change Only Update
An example of the Change Only Update GML including opening and closing tags and the different types of transactions:
<os:Transaction>
<os:insert>
<highway:RoadNode gml:id="osgb5000005193042483">
<gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/5000005193042483</gml:identifier>
<net:beginLifespanVersion>2017-01-13T00:00:00.000</net:beginLifespanVersion>
<net:inspireId>
<base:Identifier>
<base:localId>5000005193042483</base:localId>
<base:namespace>http://data.os.uk/</base:namespace>
</base:Identifier>
</net:inspireId>
<net:inNetwork xlink:href="#OSHighwayNetwork"/>
<net:geometry>
<gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_6">
<gml:pos>611319.332 231278.275</gml:pos>
</gml:Point>
</net:geometry>
<tn:validFrom nilReason="unknown" xsi:nil="true"/>
<tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
<highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">New</highway:reasonForChange>
<highway:relatedRoadArea xlink:href="#osgb5000005193041468"/>
</highway:RoadNode>
</os:insert>
<os:replace>
<highway:RoadNode gml:id="osgb4000000003855390">
<gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/4000000003855390</gml:identifier>
<net:beginLifespanVersion>2016-08-21T00:00:00.000</net:beginLifespanVersion>
<net:inspireId>
<base:Identifier>
<base:localId>4000000003855390</base:localId>
<base:namespace>http://data.os.uk/</base:namespace>
</base:Identifier>
</net:inspireId>
<net:inNetwork xlink:href="#OSHighwayNetwork"/>
<net:geometry>
<gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_2497055">
<gml:pos>398309.376 865124.714</gml:pos>
</gml:Point>
</net:geometry>
<tn:validFrom nilReason="unknown" xsi:nil="true"/>
<tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
<highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">New</highway:reasonForChange>
<highway:relatedRoadArea xlink:href="#osgb1000002063990526"/>
</highway:RoadNode>
</os:replace>
<os:delete>
<highway:RoadNode gml:id="osgb4000000003334901">
<gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/4000000003334901</gml:identifier>
<net:beginLifespanVersion>2017-01-13T00:00:00.000</net:beginLifespanVersion>
<net:inspireId>
<base:Identifier>
<base:localId>4000000003334901</base:localId>
<base:namespace>http://data.os.uk/</base:namespace>
</base:Identifier>
</net:inspireId>
<net:endLifespanVersion>2017-01-13T00:00:00.000</net:endLifespanVersion>
<net:inNetwork xlink:href="#OSHighwayNetwork"/>
<net:geometry>
<gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_0">
<gml:pos>215328.243 943956.030</gml:pos>
</gml:Point>
</net:geometry>
<tn:validFrom nilReason="unknown" xsi:nil="true"/>
<tn-ro:formOfRoadNode xlink:title="road end" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/roadEnd"/>
<highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">End Of Life</highway:reasonForChange>
<highway:relatedRoadArea xlink:href="#osgb9999"/>
</highway:RoadNode>
</os:delete>
<os:delete>
<highway:RoadNode gml:id="osgb4000000003336706">
<gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/4000000003336706</gml:identifier>
<net:beginLifespanVersion>2017-02-17T00:00:00.000</net:beginLifespanVersion>
<net:inspireId>
<base:Identifier>
<base:localId>4000000003336706</base:localId>
<base:namespace>http://data.os.uk/</base:namespace>
</base:Identifier>
</net:inspireId>
<net:endLifespanVersion>2017-02-17T00:00:00.000</net:endLifespanVersion>
<net:inNetwork xlink:href="#OSHighwayNetwork"/>
<net:geometry>
<gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_16">
<gml:pos>287295.241 935655.346</gml:pos>
</gml:Point>
</net:geometry>
<tn:validFrom nilReason="unknown" xsi:nil="true"/>
<tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
<highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">Modified Geometry</highway:reasonForChange>
<highway:relatedRoadArea xlink:href="#osgb1000000288453345"/>
</highway:RoadNode>
</os:delete>
</os:Transaction>
Last updated