Skip to main content

Hi,

Does FME support direct reading from other package formats apart from ZIP ?

Cheers

Hi @lifalin2016

 

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:

https://sevenzip.osdn.jp/chm/cmdline/syntax.htm


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.


Yes using 7z via FME is easly done and works like a charm


Yes using 7z via FME is easly done and works like a charm

hi, could you please elaborate more on how to use it? I'm straggling to get 7z readed

 

 


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.

 

 


'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.

 

 

Thumb up....for future reference it is better to start a new discussion and mention the old one in it, then the other way around.

 

 


Note that we are looking at extending FME's native compressor/decompressor to handle .gz, .bz2, .rar, and 7zip. Please chime in over at https://knowledge.safe.com/idea/18871/7-zip-compress-all-data-to-other-formats.html with your requirements and desires to this end.


Reply