Question

FME Read in MapInfo Workspace to perform Coordinate conversion?


Badge

Hey good people of FME and beyond,

I have hundreds of MapInfo workspaces that need their Coordinate System converted from Irish Grid to ITM. All associated tables which make up each workspace have to be updated also. Is there any way to read in a MapInfo workspace to FME and update?

At present the only way to do it is batch convert the tables and then rebuild the workspaces individually.

Would value any ideas?

Thanks all,

Irene


2 replies

Badge

Hi,

A MapInfo Workspace is basically a text file with a .wor extension. You could use a TextFile Reader to read it into FME Workbench.

Before opening it in FME take a look at a couple of .wor files (one Irish Grid and one ITM) in Notepad++ (or similiar) and look for any differences and references to Coordinate Systems.

It might be that all you need to do is something as simple as a search and replace on the Coordinate System in the MapInfo .wor using FME.

Obviously the usual caveat around backing up your MapInfo Workspaces first, applies here!. You do need to be a bit careful editing the .wor as it doesn't take much to break them; it's a script after all!

Hope this helps.

Simon
Badge +3

Hi,

In simple workspaces you need to amend the workspace at 2 places:

  1. Open Table ...

     

    You can save this one if you move the data files to a backup and converted the backup files to the original location.
  2. Set Map CoordSys ... Center ()

     

    The CoordSys clause is the easier part as this is just a search/replace.

     

    However you need to convert the coordinates to the new CoordSys and replace them.

     

    Multiple maps in a workspace may trickier but not much.

     

    For a manageable number of workspaces it may be worth to try if leaving this step and changing the coordinate system in the Map Options in MI works.

     

     

Regards,

András

Reply