How to convert MapInfo to Shapefile (MIF/MID to SHP)

Liz Sanderson
Liz Sanderson
  • Updated

Introduction

This tutorial will show you how to convert MapInfo MIF/MID (*.mif or *.mid) data to Esri Shapefile (*.shp) using FME. Our source data includes area features that represent the parks. Each park has an attribute called NeighborhoodName. Using FME, we will create a separate shapefile containing all of the parks for each unique neighborhood, and in doing so, we will discover just how easy it is to split data into separate files based on an attribute value. For more information on splitting data into separate files, see the article Fanout | How to Separate Features Based on an Attribute.

Video

This video was created with FME version 2016.0. Some steps may differ slightly, but the overall process remains the same for newer versions of FME.

Step-By-Step Instructions

1. Inspect the Data in FME

The first step is to inspect the Parks.mif file. Open a blank FME Workspace and add a new reader. In the Reader dialog, type 'MapInfo MIF/MID' and then browse to the Parks.mif file. Click OK to add the reader to the canvas.

reader.png

Now, to view the data, click on the Parks reader feature type on the canvas to open the mini toolbar. Then, on the mini toolbar, click the View Source Data button to view the data in the Visual Preview Window.

viewdata.png

In the Visual Preview window (or FME Data Inspector), take note of the length of the attribute names. Since we plan to write to an Esri shapefile, we will need to shorten the attribute names to 10 characters or less.

visualpreview.png

2. Set the Output (Writer) Format to Esri Shapefile

Next, we need to add a writer to the canvas. Click on "Add Writer" and, in the "Add Writer" dialog box, select "Esri Shapefile" for the format.

Then, for the Dataset, browse to a folder to save the shapefile, and then click OK to add the writer. Since we will be creating lots of shapefiles, it is a good idea to create a new folder.

writer.png

3. Clean up Attribute Names

To shorten the attribute names, we will need to use an AttributeManager transformer. Add an AttributeManager transformer to the canvas and connect the input port to the Parks reader feature type and the output to the Parks writer feature type.

workflow.png

Open the AttributeManager parameters and change the following Output Attributes:

Input Attribute Output Attribute
NeighborhoodName NeighName
SpecialFeatures Features

attributemanager.png

4. Update Writer Properties

Now that we have renamed the attributes, we need to update the writer to reflect the name change. Open the writer feature type parameters and switch to the User Attributes tab. In this tab, we can see that the attributes are not the same as the ones we recently renamed in the Attribute Manager. To easily fix this, switch the Attribute Definition to Automatic, and it will automatically update to the attributes we renamed.

userattributes.png

5. Set Destination Feature Type Name to Attribute Value

Remember, our goal is to create separate shapefiles for all the parks based on their neighborhood names. In the Feature Type Properties dialog, switch back to the Parameters tab. Then click on the drop-down list next to the Shapefile Name parameter, click on Attribute Value, then select NeighName. Click OK to dismiss the Feature Type Properties dialog.

fanout.png

6. Run the Workspace

The workspace is now ready to be run. Run the workspace by clicking on the green play button.

7. View the Output Dataset

To view the output dataset, click on the @Value(NeighName) writer feature type to open the mini toolbar, then click on the Open Containing Folder button.

openfolder.png

In the Output folder, a shapefile will be created containing all the parks for each neighborhood.

outputdata.png

Data Attribution

The data used here originates from open data made available by the City of Vancouver, British Columbia. It contains information licensed under the Open Government License - Vancouver.

Was this article helpful?

We're sorry to hear that.

Please tell us why.

As of January 14th, 2026, comments on knowledge base articles have been closed. To make sure questions don’t get missed and to enable more community support, we’ve moved discussions to the FME Community. If you have a question or a comment about this article, please create a new post or create a support ticket.