FME Desktop
Last updated
Last updated
These instructions are based on FME Desktop version 2021.1.
To load and display GML data in FME Desktop:
Open an existing workspace or create a new one.
In Readers, click Add Reader.
In the Add Reader dialog:
Format: Select OGC GML (Geography Markup Language).
Dataset: Click …, navigate to and select the GML file on your computer.
Coord. System: Optionally, select EPSG:27700. FME should detect the correct system automatically.
Click OK.
In the Select Feature Types dialog, select the layers (feature types) you want to load and click OK.
This dialog may take a while to load. You can watch the progress in green bar at the bottom left of the FME UI.
A set of readers (matching the feature types your selected) displays in the main work area.
Right-click a reader and click Connect Inspector.
An inspector automatically connects to the reader.
Click the green Run To This icon (triangle above the inspector) and then click Run in the Translation Parameter Values dialog.
A table and graphical preview of the GML data displays below the main work area when the Run command completes.
Repeat steps 5 and 6 for each layer (feature type).
You can use FME to convert GML data to other geospatial and non-spatial formats. The instructions below demonstrate how to convert to shapefile, but you can adapt them for different formats.
To convert GML to shapefile in FME Desktop:
Open an existing workspace or create a new one.
In Readers, click Add Reader…
In the Add Reader dialog:
Format: Select OGC GML (Geography Markup Language).
Dataset: Click …, then navigate to and select the GML file on your computer.
Coord. System: Optionally, select EPSG:27700. FME should detect the correct system automatically.
Click OK.
In the Select Feature Types dialog, select the layers (feature types) you want to load 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.
A set of readers (matching the feature types you selected) displays in the main work area.
In Writers, click Add Writer…
In the Add Writer dialog:
Format: Select Esri Shapefile.
Dataset: Click …, then navigate to and select the folder in which you want to save your translated data.
Click OK.
In the Select Feature Types dialog, select the feature types (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.
A set of writers (matching the feature types you selected) displays in the main work area to the right of their matching readers.
Connect each reader to its matching writer by dragging the grey triangle on the reader to the red triangle on the writer.
Click the green arrow in the top bar to run the workspace.
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, both the GML files and shapefiles will be available in the file system on your computer and in the FME Navigator panel.