Question

Dynamic workbench to reproject MapInfo tables

  • 22 April 2021
  • 1 reply
  • 0 views

Badge +10

I am building a workbench that uses Workspace Runner to reproject a lot of MapInfo tables. My question is about the workbench that does the reprojection. All the MapInfo tables have different schemas (different columns). How do I build dynamic readers and writers that work with any column structure (but still specifically MapInfo format)


1 reply

Userlevel 2
Badge +17

Hi @nicholas​ 

The easiest way is to use a FeatureReader transformer instead of a reader, with the Output port set to Single Output Port. Connect the <Schema> output directly to the writer feature type. Set the writer feature type to Dynamic, and set Schema Sources to "Schema from Schema Feature".

Connect the <Generic> port of the FeatureWriter to the Reprojector, then connect the output to the writer feature type as well.

Screen Shot 2021-04-22 at 1.33.27 PM

Reply