Skip to main content
Solved

How to read a shapefile inside a zip file (in two levels)

  • Apr 11, 2022 12:17 PM UTC
  • 2 replies
  • 258 views

I have to read several shapefiles that are in a second level zipped file. As an example:

C:\\compressed1.zip \\compressed2.zip\\ layer.shp

 

I get to reach the first level but when I try to reach the second level, FME gives me failures.

Any idea? Thank you very much

Best answer by nielsgerrits

Not sure if this can be done with a Reader/FeatureReader but you can use the ZipExtractor from the FME hub to achieve this.

"If you set "Yes" to the "Unzip Nested Zip Files Recursively" parameter, this transformer unzips all the nested zip files recursively."

View original
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.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+67
  • Best Answer
  • Apr 11, 2022 1:03 PM UTC

Not sure if this can be done with a Reader/FeatureReader but you can use the ZipExtractor from the FME hub to achieve this.

"If you set "Yes" to the "Unzip Nested Zip Files Recursively" parameter, this transformer unzips all the nested zip files recursively."


  • Author
  • Apr 11, 2022 6:08 PM UTC

Not sure if this can be done with a Reader/FeatureReader but you can use the ZipExtractor from the FME hub to achieve this.

"If you set "Yes" to the "Unzip Nested Zip Files Recursively" parameter, this transformer unzips all the nested zip files recursively."

It's not exactly what I want to do, but your review is a great help and with a Tester I've managed to do it.

Thank you very much for your help.