I'm not sure why the first option isn't working if the prj files are present.
However, if you want to read the prj files from the zip as text you can use the following syntax in a feature reader with format Text File, where you have an attribute containing your zip filename
@Value(filename)\**\*.prj
When FME doesn't know the CRS (in my particular case it's DB_REF) it returns nothing even if the prj contains all the info.
The reader won't let me use that. When I specify the file it asks for, the text is overwritten by the path. Supplying the zip through the initiator port doesn't do anything either.
When FME doesn't know the CRS (in my particular case it's DB_REF) it returns nothing even if the prj contains all the info.
The reader won't let me use that. When I specify the file it asks for, the text is overwritten by the path. Supplying the zip through the initiator port doesn't do anything either.
Have you got single output port selected? If you have it shouldn't be asking you to specify the file.
Have you got single output port selected? If you have it shouldn't be asking you to specify the file.
Yep. Retried it with a new reader as well, same result.
Have you got single output port selected? If you have it shouldn't be asking you to specify the file.
Do you have an attribute called filename on the feature you are triggering the featurereader with?
If you point this workspace to the folder that contains your zip files does it work?
If you point this workspace to the folder that contains your zip files does it work?
Yep, this worked. Only had to additionally expose "fme_basename" in the generic port. Thanks!
Yep, this worked. Only had to additionally expose "fme_basename" in the generic port. Thanks!
If you send zip files into the featurereader that don't have a prj file you will get features exiting the rejected port of the featurereader. This may not be an issue for you but something to be aware of.
In the past I've used a python caller to check for the existence of a file in a zip before attempting to read it directly from the zip (i think this is still a python only thing, i don't think you can get the list of files in a zip without extracting with FME yet)