Skip to main content
Question

Insert and Delete rows in a MapInfo table


nicholas
Contributor
Forum|alt.badge.img+13

I have a MapInfo table which I want to modify by inserting and/or deleting records.

I would like to modify the MapInfo table in place.

I think that I can use the Precisely MapInfo Extended TAB Writer Feature Type Parameters?

https://docs.safe.com/fme/2022.1/html/FME_Desktop_Documentation/FME_ReadersWriters/mapinfo_extended/mapinfo_extended-ft-param-w.htm

My software is FME Desktop FME(R) 2022.1.3.0 (20220928 - Build 22630 - WIN64)

But how do I build a workspace that performs this task?

How do I build a Writer transformer that recognises an existing MapInfo table?

 

2 replies

j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • May 27, 2025

Hi Nicholas,

You will want to build a Change Detection workspace. Safe software recently held a two part webinar on this topic.

 https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/Transformers/changedetector.htm You want the existing TAB going into Original port and the new data into the Revied input port. Coming out of the transformer are Insert, Update, Delete ports and a format attribute called fme_db_operation which you use in the writer table operations instead of simply Insert or Update. 


nicholas
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • May 28, 2025

I figured it out
The trick is to use the Precisely MapInfo Extended TAB Writer and take advantage of the Feature Operation


To Insert new rows

Reader

This is a simple MapInfo (MITAB) Reader. It's job is to Read the new rows that are to be inserted

Writer

This is a Precisely MapInfo Extended TAB Writer
The Table Name is the name of the "master" table


The Feature Operation is Insert

Note that the Feature Operation uses the Existing table
This will Insert the Input features 
The table is saved at the end. 

 

 

To Delete existing Rows

Reader

This is a simple MapInfo (MITAB) Reader. It's job is to Read the rows that are to be deleted. There must be a column with an identifying unique value.

Writer

This is a Precisely MapInfo Extended TAB Writer
The table name is the name of the "master" table

The Feature Operation is Delete

Note that the feature operation uses the Existing table and also performs a Pack
The table is saved at the end

The Row Selection is by Matching a Column

In this case, any row with a value in the districtcode column that matches the Input features will be deleted.


(I did have a bunch of screenshots, but they make my post too large for the forum)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings