These instructions are based on FME Desktop 2022.1.1.
To load and display the GML supply in FME Desktop 2022.1.1.
Open an existing workspace or create a new one.
From the Reader tab click Add Reader…
In the Add Reader dialog:
Format: Select OGC GML (Geography Markup Language).
Dataset: Click …, and navigate to and select the GML file (.gz) in the file browser.
Coord. System: Select ESPG: 27700 (British National Grid).
Click OK.
In the Select Feature Types dialog select the required layers and click OK.
This dialog may take a while to load. You can watch the progress in the green bar at the bottom left of the FME window.
Figure 53:FME Desktop Select Feature Types dialog
When processing is complete, your features will appear as readers in the FME workspace.
Right-click one of the feature readers and click Connect Inspector in the context menu.
The Inspector will automatically connect to the reader.
The Inspector will automatically connect to the reader.
Click the Inspector and then click the Run to this icon (green triangle above the inspector).
In the Translation Parameter Values dialog click Run.
You can watch the loading progress in the Translation Log below the main workspace.
When the run command has completed, the GML table and features will display in the Visual Preview area below the main workspace.
Repeat steps 5 to 7 above for each layer (feature type) you want to view.
You can use FME to convert GML data to other geospatial and non-spatial formats. The instructions below demonstrate how to convert GML data to shapefile, but you can adapt them for different formats.
To convert GML to shapefile in FME Desktop:
Repeat Steps 1 to 4 of the previous section (Loading and displaying the GML supply).
From the Writers tab click Add Writer…
In the Add Writer dialog:
Format: Select ESRI Shapefile.
Dataset: Click …, and navigate to and select the folder in which to save your translated data.
Coord. System: Select ESPG: 27700 (British National Grid).
Click OK.
In the Select Feature Type dialog select the layers you want to convert and click OK.
This dialog may take a while to load. You can watch the progress in the green bar at the bottom left of the FME UI.
Connect each reader to its matching writer by dragging the grey triangle on the reader to the red triangle on the writer.
In the main toolbar click (Run icon) to start the translation.
In the Translation Parameter Values dialog, check that the source and destination file locations are correct and click Run.
You can watch the conversion progress in the Translation Log below the main work area. When the conversion is complete (indicated by a message similar to the one below), both the GML files and Shapefiles will be available in your chosen folders and in the navigator.