Skip to main content
Solved

Expose file type of zipped file

  • May 27, 2020
  • 2 replies
  • 24 views

pflegpet
Contributor
Forum|alt.badge.img+8

Hi,

 

 

is there a way to expose the file type suffix (e.g. ".shp") after the file has been created and zipped with the FeatureWriter? The "_dataset" attribute only yealds the .zip suffix whereas _feature_type attribute does only show the file name without the suffix. Thank you for your help.

Best answer by virtualcitymatt

You should be able to configure a PATH reader in a FeatureReader to read the contents of the zip file. See here as an example:

https://knowledge.safe.com/questions/37542/directory-and-file-path-when-reading-a-zip-returns.html

 

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

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • Best Answer
  • May 27, 2020

You should be able to configure a PATH reader in a FeatureReader to read the contents of the zip file. See here as an example:

https://knowledge.safe.com/questions/37542/directory-and-file-path-when-reading-a-zip-returns.html

 


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • May 27, 2020

You should be able to configure a PATH reader in a FeatureReader to read the contents of the zip file. See here as an example:

https://knowledge.safe.com/questions/37542/directory-and-file-path-when-reading-a-zip-returns.html

 

Perfect solution with this transformer @virtualcitymatt