Loading GML data
Last updated
Last updated
This section provides basic steps on loading the OS Detailed Path Network data into some common GI applications.
General information about using GIS with OS data is available on the Using GIS software page on the OS website.
These instructions are based on QGIS 3.4 – a Long Term Release.
Launch QGIS and click Settings > Options.
Select CRS from the left-hand menu, then check that the coordinate reference system is set to British National Grid in the Default CRS for new projects section and in the CRS for new layers section.
If British National Grid is not already set as the default CRS in these sections, click the Select…button at the end of each field and type 27700 into the filter box to find and select British National Grid.
Alternatively, if you intend to use Latitude and Longitude columns, select ETRS89 [EPSG: 4258].
Click OK
Back in the main window, open the Data Source Manager.
Select Add Vector Layer from the left-hand toolbar, and under Source, click the […] button to browse to your Vector Dataset(s).
Set the file type to show only Geography Markup Language (.gml) files, then browse to the folder where the OS Detailed Path Network data is located.
Select the file(s) to be loaded and click Open.
Click Add.
Next, select the Vector Layers you wish to load. There are three layers available for the OS Detailed Path Network product:
Route – A lookup table that records collections of links representing a named entity which forms a recognised and signed route that the public can use.
RouteLink – Line geometry representing the general alignment of roads, tracks, paths and rights of way.
RouteNode – Point geometry at the start or end of a RouteLink feature which is used to record the connectivity between links.
For further details on the product structure and attribution of these features, please refer to the OS Detailed Path Network Technical Specification document, which is available on the OS Detailed
Path Network Product Support page of the OS website.
Select the RouteLink and RouteNode layers, then click OK to load the geometry into the QGIS map window.
The data can now be styled using the tools available within QGIS enhance visualisation of the data. Additionally, it can be overlaid on other datasets to provide a backdrop mapping context.
Note: GML data cannot be spatially indexed, which means rendering can be slow. To improve performance, we recommend that you save the data to another regular GI format, such as an ESRI shapefile.
The preceding screenshot shows what the OS Detailed Path Network data can look like when it has been styled and superimposed upon other datasets, such as the OS VectorMap Local product.
The following instructions are based on ArcGIS Pro version 2.3 and assume that users have knowledge of the Data Interoperability Extension to convert the supplied GML into a suitable ArcGIS Pro format.
Open ArcGIS Pro and create a new project. You may wish to select a basemap for backdrop context.
Click on the Analysis tab along the top menu.
Select the Workbench option from the ribbon menu.
A new window will open, which provides access to the full interface of the Data Interoperability Extension. The next steps assume basic understanding of using this main interface of FME, which is an application provided by Safe Software that is embedded into ArcGIS Pro.
In this example, we will perform a simple conversion from GML to an ESRI file geodatabase using our OS Detailed Path Network’s New Forest National Park dataset. Enter your parameters as shown in the following screenshot:
Reader (Input)
Format: GML (Geography Markup Language).
Dataset: Location of your downloaded OS Detailed Path Network dataset.
Writer (Output)
Format: Esri Geodatabase (File Geodb).
Dataset: Location of the file geodatabase generated upon creating the ArcGIS Pro project.
Click OK.
You will see three Feature Types listed in the Select Feature Types dialog box:
Route – A lookup table that records collections of links representing a named entity which forms a recognised and signed route that the public can use.
RouteLink – Line geometry representing the general alignment of roads, tracks, paths and rights of way.
RouteNode – Point geometry at the start or end of a RouteLink feature which is used to record the connectivity between links.
For further details on the product structure and attribution of each of the feature types, please refer to the OS Detailed Path Network Technical Specification document, which is available on the OS Detailed Path Network Product Support page of the OS website.
Tick the Feature Types you wish to translate, then click OK.
To start the workbench, click the green Run arrow at the top of the window.
The translation will run. Wait until you see the final log message Translation was successful.
Note: You may wish to keep these conversion settings for future use by clicking the Save button.
The features have now been written to the file geodatabase. Close the Interoperability workbench window.
Next, load your translated data in the file geodatabase by selecting the Map tab at the top of the main window, followed by Add Data.
Navigate to where the file geodatabase (.gdb) is stored and select it.
Select the features you require from Route, RouteLink and / or RouteNode, then click OK.
You should see your selected features with geometry appear in the main map window. You can style or annotate this using the various ArcGIS Pro tools and options available.
Note: The file geodatabase created using the Interoperability Extension can also be opened in older versions of ArcMap. This is described in the following section.
These instructions are based on ArcMap version 10.5.
Note: Section 3.3.1 requires users to have access to a licence for ArcGIS Pro and knowledge of converting files with the appropriate Interoperability Extension. The following steps show how to load a file geodatabase that has been created using the steps outlined in the prior ArcGIS Pro section.
Note: If you do not have a licence for ArcGIS Pro and / or the Full Data Interoperability Extension, Section 3.3.2 steps through how to create a file geodatabase using the free ArcMap version of the Data Interoperability tool.
Launch ArcMap.
Click the Add Data button in the top menu.
Navigate to the file geodatabase (.gdb) created using ArcGIS Pro’s Interoperability Extension (see the notes above and the instructions in the previous section).
Select the file geodatabase (.gdb) and click Add.
You’ll see three Feature Types listed:
Route – A lookup table that records collections of links representing a named entity which forms a recognised and signed route that the public can use.
RouteLink – Line geometry representing the general alignment of roads, tracks, paths and rights of way.
RouteNode – Point geometry at the start or end of a RouteLink feature which is used to record the connectivity between links.
For further details on the product structure and attribution of each of the feature types, please refer to the OS Detailed Path Network – Technical Specification document, which is available on the OS Detailed Path Network Product Support page of the OS website.
Select the features required and click Add.
The selected features with geometry will load into the main map window. You can now select a suitable mapping backdrop and style the map using the symbology tools available within ArcMap.
Open ArcCatalog and open the Arc Toolbox window.
Select System Toolboxes, then Data Interoperability Tools and click Quick Import.
Click on the […] button next to the Input Dataset box, then navigate to the location of your OS Detailed Path Network GML data and select it.
Click OK.
In the Output Staging Geodatabase option, give the new file geodatabase a suitable name in the Name section, then click Save.
Click OK to start the Quick Import.
A message will appear in ArcCatalog when the process is complete. Once the process has finished, start ArcMap or select it if it is already running.
Click Add Data from the top menu.
Navigate to the new file geodatabase that you just created in Step 5.
You’ll see the features of OS Detailed Path Network available for loading (Route, RouteLink and RouteNode). Select the features you require, then click Add.
The OS Detailed Path Network data will now load into the map window of ArcMap. You can now select a suitable mapping backdrop and style the map using the symbology tools available within ArcMap.
When you’re finished styling your map, save the project as a .MXD file.
The following instructions are based on MapInfo Professional version 16.0.4.
Open MapInfo Professional.
Select the MAP tab at the top of the ribbon menu. Click Open > Universal Data.
In the Specify Data Source dialog box that opens, select GML as the Format to be converted, then click the […] button at the end of Dataset field and navigate to the OS Detailed Path Network GML file. Select that file and click OK.
You’ll see three layers listed in the Select Layers dialog box that opens:
Route – A lookup table that records collections of links representing a named entity which forms a recognised and signed route that the public can use.
RouteLink – Line geometry representing the general alignment of roads, tracks, paths and rights of way.
RouteNode – Point geometry at the start or end of a RouteLink feature which is used to record the connectivity between links.
For further details on the product structure and attribution of each of the features, please refer to the OS Detailed Path Network – Technical Specification document, which is available on the OS Detailed Path Network Product Support page of the OS website.
Tick the layers you require.
The Import process converts these layers from GML to TAB format. In the Directory box, navigate with the […] button to the location you wish to import the TAB files.
Note: Optionally, you’ll see you can apply styling at this point, though this can also be applied after the import. Additionally, in the Preferred View box, you can either add each layer to the Current Mapper or create a New Mapper. In this example, we’ll add to the Current Mapper to automatically load the converted layers.
Click OK to begin the translation from GML to TAB.
MapInfo Professional will automatically load the converted layers into the map window.
Note: Styling can be added using the Apply Styles button which can be found under the Layer Tools tab on the top menu.
Cadcorp SIS Map Express is a free viewer that automatically loads OS Detailed Path Network GML data. Simply open the application and drag and drop the GML file into the map window, as shown in the following screenshot:
The following instructions are based on the full application of Cadcorp SIS Map Modeller version 9.
Launch Cadcorp Map Modeller.
In the main Cadcorp map application window, select Add Overlay from the top menu.
In the Overlay Types dialog box that opens, select Files > File > Next.
Navigate to where you’ve placed the OS Detailed Path Network data and click on the relevant GML file(s).
At this point, you can also apply the OS XSD schema the schema is detailed in Section 2.1 of the guide) by clicking Configure > Preload custom GML application schema. Click Browse… and navigate to the folder where you downloaded the schema file. Select it and click OK.
Click Finish. The data will now load into the main map window.
The full Cadcorp SIS Map Modeller application allows you to apply different styles to the data as required. If you wish, these styles can be saved as documents for future use, and they will also work in the free Cadcorp SIS Map Express application (see Section 3.5 for more information on that application).