Skip to main content
Question

Can a reader have a user parameter set up? I want to have the user be able to enter a zip file and have the zip file extract the shapefile located in the zipfile.

  • February 25, 2022
  • 1 reply
  • 7 views

Forum|alt.badge.img+2

I can set up a zip file extractor with a user parameter but how do I then connect it to the reader to have it extract the shapefile from the zip file?

1 reply

andreaatsafe
Safer
Forum|alt.badge.img+12

Hi @chris28​ ,

FME can read directly from archive formats without any extra work in a workspace.

And typically when a reader is set up, a user parameter is already created and typically already has the appropriate file filtering needed.

image 

However, I'm not sure if your workflow needs are a little different where you need to save an unzipped copy of the shapefile. If that's the case, depending on how you set up your workflow with a zip file extractor, you would then want to make sure there is an attribute available that would have the location of the shapefile. You could then use a FeatureReader to read in the shapefile, with the dataset parameter set to the attribute holding the file location. For more information on using the FeatureReader, see this article.

FeatureReader_shapefile-Andrea


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