Question

How to keep blank lines in MapInfo tab?

  • 6 June 2016
  • 1 reply
  • 0 views

In order to keep correct informations about labels in MapInfo WOR files, is it possible to keep blank lines in MapInfo Tab file after tranformation?

The problem is that WOR files keep coordinates of labels who have been placed manually.

Layer 4

 

Display Global

 

Global Pen (25,2,16711680) Brush (1,16777215,16777215) Symbol (35,0,12) Line (1,2,0) Font ("Arial",0,9,0)

 

Label Line None Position Center Auto Retry On Font ("Arial",257,8,16711680,16777215) Pen (1,2,0)

 

With NUM

 

Parallel On Auto Off Overlap Off Duplicates On PartialSegments On Offset 2

 

Visibility On AutoPosition On AutoSizes 4 AutoSizeStep 25 SuppressIfNoFit Off AutoCallout Off

 

Object 299 Anchor (526735.90947750001,192384.23560000001)

 

Object 21 Anchor (526975.95545250003,192220.68780000001)

 

Object 16 Anchor (526949.57676249999,192204.86060000001)

 

Object 52 Anchor (526916.60343250004,192145.50857500001)

 

Object 315 Anchor (526782.07218500006,191577.04810000001)

 

Object 314 Anchor (526629.07583500003,191665.41665)

The object number refers to the ROWID (rank in the table), unfortunately not to object ID. If blank lines are deleted after compacting table, those object numbers refer to wrong object.

So is there a way in FME to keep those blank lines after transformation?

Thanks :-)


1 reply

Userlevel 2
Badge +17

Hi @ecvitznau, if the reader reads the blank features from the source MITAB file, you can write the transformed features and those blank features into the destination MITAB file in the same order as the source. e.g.

  1. Counter: Add an attribute (e.g. "_count") storing sequential number to every feature including blank ones.
  2. Tester: Separate the feature flow into non-blank features which should be transformed and the blank features by an appropriate test clause.
  3. Transform the non-blank features, and keep the blank features as-is. DO NOT discard the blank features.
  4. Send all the transformed features and the blank features to a Sorter and sort them by the "_count" to restore the original order. Then write them into the destination MITAB file.

Reply