FME Desktop

These instructions are based on FME Desktop 2022.1.1.

Loading and displaying the GML supply

To load and display the GML supply in FME Desktop 2022.1.1.

  1. Open an existing workspace or create a new one.

  2. From the Reader tab click Add Reader…

FME Desktop UI showing Readers > Add Reader action
FME Desktop UI showing Readers > Add Reader action
  1. 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.

      FME Desktop Add Reader dialog
      FME Desktop Add Reader dialog
  2. 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.

FME Desktop Select Feature Types dialog
FME Desktop Select Feature Types dialog

Figure 53:FME Desktop Select Feature Types dialog

When processing is complete, your features will appear as readers in the FME workspace.

  1. Right-click one of the feature readers and click Connect Inspector in the context menu.

The Inspector will automatically connect to the reader.

FME Desktop UI showing selected feature type reader and Connect Inspector action in the context menu
FME Desktop UI showing a selected feature type reader and the Connect Inspector action in the context menu

The Inspector will automatically connect to the reader.

  1. Click the Inspector and then click the Run to this icon (green triangle above the inspector).

  2. In the Translation Parameter Values dialog click Run.

FME Desktop UI showing selected feature type inspector and Translation Parameter Values dialog
FME Desktop UI showing selected feature type inspector and Translation Parameter Values dialog

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.

FME Desktop UI showing GML table and visual graphic in the Visual Preview area
FME Desktop UI showing GML table and visual graphic in the Visual Preview area
  1. Repeat steps 5 to 7 above for each layer (feature type) you want to view.

Converting GML to shapefile

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:

  1. Repeat Steps 1 to 4 of the previous section (Loading and displaying the GML supply).

  2. From the Writers tab click Add Writer…

FME Desktop UI showing Writers > Add Writer action
FME Desktop UI showing Writers > Add Writer action
  1. 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.

FME Desktop Add Writer dialog
FME Desktop Add Writer dialog
  1. In the Select Feature Type dialog select the layers you want to convert and click OK.

FME Desktop Select Feature Type dialog
FME Desktop Select Feature Type dialog

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.

  1. Connect each reader to its matching writer by dragging the grey triangle on the reader to the red triangle on the writer.

FME Desktop UI showing OSMM Topography Layer feature types connected to writers
FME Desktop UI showing OSMM Topography Layer feature types connected to writers
  1. In the main toolbar click (Run icon) to start the translation.

FME Desktop UI showing connected feature types and writers ready to be run
FME Desktop UI showing connected feature types and writers ready to be run
  1. In the Translation Parameter Values dialog, check that the source and destination file locations are correct and click Run.

FME Desktop Translation Parameter Values dialog
FME Desktop Translation Parameter Values dialog

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.

FME Desktop UI showing Translation Log
FME Desktop UI showing Translation Log

Last updated