[GIS] FME – MapInfo to File Geodatabase Conversion Project

file-geodatabasefmemapinfo

I'm about to start a big project converting 25,000 MapInfo files to File Geodatabase. I'm using FME to process the files. I want FME to search all files in a directory (and subdirectories). When FME encounters a TAB file which references a raster, I get the following error:

TAB files referencing raster data cannot be read through the MapInfo
reader. Instead, use an appropriate raster reader. Error fetching
dynamic schema definitions from reader `MAPINFO_1'.

Is there some sort of format attribute for MapInfo files which will identify TAB files which contain geometry and which ones reference Rasters? I would also like to identify TAB files which reference Excel files or Databases.

I could try skipping these by ignoring failed readers,

enter image description here

but I want to be able to list the TAB files that I'm skipping and store those in a spreadsheet or text file.

Best Answer

Is there a way to look in body of TAB file and search Definition Table for TYPE parameter ?

!table
!version 300
!charset WindowsLatin1

Definition Table
  File "example.jpg"
  Type "RASTER"
   ...

other types are

Type NATIVE Charset "WindowsLatin1"
...
Type LINKED Charset "WindowsLatin2"  '(database linked table)
...
Type ODBC                            '(database 'live' table)
...
Type ASCII Delimiter 09 Titles Charset "WindowsLatin1"
...
Type XLS Titles Range "Sheet1"
...
Type WKS Titles
...
Type ACCESS TABLE "rdatbln_line" Charset "WindowsLatin1"
...

There's some detailed explanation : http://georezo.net/jparis/mb_r/doc/Tab_file_format/tab_file_format.htm