Does FME support direct reading from other package formats apart from ZIP ?
Cheers
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
I don't think there are other formats available right now. But of course you can easily implement this functionality yourself with the SysCaller and 7-zip:
Use the SystemCaller transformer (calling either a batch file or an executable) or use the PythonCaller for this after writing with the new (2016) FeatureWriter.
Another option is using the "Python script after shutdown" option in the Navigator panel.
hi, could you please elaborate more on how to use it? I'm straggling to get 7z readed
Sure, Its a matter of extracting the zip file by using the e command (https://sevenzip.osdn.jp/chm/cmdline/commands/extract.htm) in a systemcaller transformer, after that its a matter of reading the extracted files with a FeatureReader and continuing the transformation.
So for example to do this: 7z e archive.zip
you need to find out what is the complete path to the 7z.exe (c:\\7z\\7z.exe for example) and be sure to use quotes just incase the path contains spaces
The same goes for the result location (archive.zip) you can specify a specific location (c:\\temp) otherwise it will extract to the current directory.
Sure, Its a matter of extracting the zip file by using the e command (https://sevenzip.osdn.jp/chm/cmdline/commands/extract.htm) in a systemcaller transformer, after that its a matter of reading the extracted files with a FeatureReader and continuing the transformation.
So for example to do this: 7z e archive.zip
you need to find out what is the complete path to the 7z.exe (c:\\7z\\7z.exe for example) and be sure to use quotes just incase the path contains spaces
The same goes for the result location (archive.zip) you can specify a specific location (c:\\temp) otherwise it will extract to the current directory.
'Thanks a lot Itay!
Now I know how to start as comandline and systemcaller are not my thing YET:) I'll test it tomorrow and let you know.