Skip to main content
Solved

Import data from Excel spreadsheet using file path


Forum|alt.badge.img

Hello FME experts,

Is there a way to read an Excel table containing file paths (100's of them) and load the data into a workbench?

I would like to open the MapInfo TAB files to know the projection parameters and list them in the spreadsheet.

Any help would be greatly appreciated.

Thanks, Thiru

Best answer by thiru

Ok, figured this out. Being back in an Australian office on Monday morning, I think everyone else in the world is spending their Sunday.

I concatenated the filepaths separated by comma (using Notepad++ program) to make it appear as follows

filepath1, filepath2, filepath3, filepath4

copied this string into Source files box.

I wanted to just read one feature per file and that is enough for me to read the projection information.

Used CoordinateSystemExtractor to extract the _coordsys attribiute.

Written the FileName, Path and _coordsys attributes back to Excel.

Job done.

I wish I could devote more time learning FME's powerful features to make my life easier.

Thanks,

Thiru

View original
Did this help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Author
  • Best Answer
  • June 13, 2016

Ok, figured this out. Being back in an Australian office on Monday morning, I think everyone else in the world is spending their Sunday.

I concatenated the filepaths separated by comma (using Notepad++ program) to make it appear as follows

filepath1, filepath2, filepath3, filepath4

copied this string into Source files box.

I wanted to just read one feature per file and that is enough for me to read the projection information.

Used CoordinateSystemExtractor to extract the _coordsys attribiute.

Written the FileName, Path and _coordsys attributes back to Excel.

Job done.

I wish I could devote more time learning FME's powerful features to make my life easier.

Thanks,

Thiru


mygis
Supporter
Forum|alt.badge.img+13
  • Supporter
  • June 13, 2016
thiru wrote:

Ok, figured this out. Being back in an Australian office on Monday morning, I think everyone else in the world is spending their Sunday.

I concatenated the filepaths separated by comma (using Notepad++ program) to make it appear as follows

filepath1, filepath2, filepath3, filepath4

copied this string into Source files box.

I wanted to just read one feature per file and that is enough for me to read the projection information.

Used CoordinateSystemExtractor to extract the _coordsys attribiute.

Written the FileName, Path and _coordsys attributes back to Excel.

Job done.

I wish I could devote more time learning FME's powerful features to make my life easier.

Thanks,

Thiru

Hi @thiru please check this video https://youtu.be/KXsfYwlOc4Q

 

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • June 13, 2016

@thiru

You can create a dynamic reader (click the icon with the plus sign) on the top folder G:\\ for *Tab files (including any filters you'd needed).

Then in the Navigator panel go to your reader's Parameters=>Advanced=>Features to read yo

Set the "Max features to read per featuretype" = 1


Reply


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