> For the complete documentation index, see [llms.txt](https://docs.os.uk/os-downloads/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.os.uk/os-downloads/products/land-and-terrain-portfolio/os-mastermap-sites-layer/os-mastermap-sites-layer-getting-started-guide/fme-desktop.md).

# FME Desktop

These instructions are based on FME Desktop version 2021.1.

## Loading and displaying the GML supply <a href="#id-4.1-loading-and-displaying-the-gml-suppl" id="id-4.1-loading-and-displaying-the-gml-suppl"></a>

To load and display GML data in FME Desktop:

1. Open an existing workspace or create a new one.
2. In *Readers,* click *Add Reader*.

<figure><img src="/files/V1AwrMxevKbmtwi5epOG" alt="FME Workbench UI showing the Readers > Add Reader option."><figcaption><p>FME Workbench UI showing the Readers > Add Reader option.</p></figcaption></figure>

3. 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*.<br>

     <figure><img src="/files/RoRqSthJ9SeU8Et6Tm8P" alt="FME Workbench Add Reader dialog."><figcaption><p>FME Workbench Add Reader dialog.</p></figcaption></figure>
4. In the Select Feature Types dialog, select the layers (feature types) you want to load and click *OK*.

{% hint style="info" %}
*This dialog may take a while to load. You can watch the progress in green bar at the bottom left of the FME UI.*
{% endhint %}

<figure><img src="/files/dXPkp5jSQWue3WXjiGbS" alt="FME Workbench Select Feature Types dialog showing all layers selected." width="444"><figcaption><p>FME Workbench Select Feature Types dialog showing all layers selected.</p></figcaption></figure>

*A set of readers (matching the feature types your selected) displays in the main work area.*

5. Right-click a reader and click *Connect Inspector*.<br>

   <figure><img src="/files/wp4qnbrE9EEWtE0phk1Z" alt="FME Workbench main area showing three readers and the Connect Inspector option in the context menu."><figcaption><p>FME Workbench main area showing three readers and the Connect Inspector option in the context menu.</p></figcaption></figure>

*An inspector automatically connects to the reader.*

6. Click the green *Run To This* icon (triangle above the inspector) and then click *Run* in the Translation Parameter Values dialog.<br>

   <figure><img src="/files/JqDLUA5r1L6ZPc4nGZba" alt="FME Workbench main area showing the Run to This action for an inspector and the Translation Parameter Values dialog that the action opens."><figcaption><p>FME Workbench main area showing the Run to This action for an inspector and the Translation Parameter Values dialog that the action opens.</p></figcaption></figure>

*A table and graphical preview of the GML data displays below the main work area when the Run command completes.*

<figure><img src="/files/1RMrKji2OoHCnn4YnNtk" alt="FME Workbench showing data table and visual map that displays below the main work area."><figcaption><p>FME Workbench showing data table and visual map that displays below the main work area.</p></figcaption></figure>

7. Repeat steps 5 and 6 for each layer (feature type).

## Converting GML to shapefile <a href="#id-4.2-converting-gml-to-shapefile" id="id-4.2-converting-gml-to-shapefile"></a>

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:

1. Open an existing workspace or create a new one.
2. In *Readers*, click *Add Reader…*

<figure><img src="/files/V1AwrMxevKbmtwi5epOG" alt="FME Workbench UI showing the Readers > Add Reader option." width="464"><figcaption><p>FME Workbench UI showing the Readers > Add Reader option.</p></figcaption></figure>

3. 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*.<br>

     <figure><img src="/files/RoRqSthJ9SeU8Et6Tm8P" alt="FME Workbench Add Reader dialog." width="537"><figcaption><p>FME Workbench Add Reader dialog.</p></figcaption></figure>
4. In the Select Feature Types dialog, select the layers (feature types) you want to load and click *OK*.

{% hint style="info" %}
*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.*
{% endhint %}

<figure><img src="/files/dXPkp5jSQWue3WXjiGbS" alt="FME Workbench Select Feature Types dialog." width="444"><figcaption><p>FME Workbench Select Feature Types dialog.</p></figcaption></figure>

*A set of readers (matching the feature types you selected) displays in the main work area.*

5. In *Writers*, click *Add Writer…*

<figure><img src="/files/dpjU05NYusJSiaPbKdX5" alt="FME Workbench UI showing Writers > Add Writer option." width="563"><figcaption><p>FME Workbench UI showing Writers > Add Writer option.</p></figcaption></figure>

6. 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*.<br>

     <figure><img src="/files/rjdhgJ7X1s6i9t1cGRSG" alt="FME Workbench Add Writer dialog." width="446"><figcaption><p>FME Workbench Add Writer dialog.</p></figcaption></figure>
7. 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.*<br>

  <figure><img src="/files/0PWbd1TXyJHSO9Tn0FvC" alt="FME Workbench Select Feature Type dialog." width="443"><figcaption><p>FME Workbench Select Feature Type dialog.</p></figcaption></figure>

*A set of writers (matching the feature types you selected) displays in the main work area to the right of their matching readers.*

8. Connect each reader to its matching writer by dragging the grey triangle on the reader to the red triangle on the writer.<br>

   <figure><img src="/files/7xeOFatJLEbGWDkrMvqx" alt="FME Workbench UI showing the Run option."><figcaption><p>FME Workbench UI showing the Run option.</p></figcaption></figure>
9. Click the green arrow in the top bar to run the workspace.

<figure><img src="/files/ZJqBfofR9wQAdFQe3sRt" alt="FME Workbench UI showing the Run option."><figcaption><p>FME Workbench UI showing the Run option.</p></figcaption></figure>

8. In the Translation Parameter Values dialog, check that the source and destination file locations are correct and click *Run*.<br>

   <figure><img src="/files/JcGzTluDKbRgtOvAgmwV" alt="FME Workbench Translation Parameter Values dialog."><figcaption><p>FME Workbench Translation Parameter Values dialog.</p></figcaption></figure>

*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.*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.os.uk/os-downloads/products/land-and-terrain-portfolio/os-mastermap-sites-layer/os-mastermap-sites-layer-getting-started-guide/fme-desktop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
