Comments and answers for "how to read zipped shapefiles that are 3 folders deep" https://knowledge.亚搏在线safe.com/questions/85401/how-to-read-zipped-shapefiles-that-are-3-folders-d.html The latest comments and answers for the question "how to read zipped shapefiles that are 3 folders deep" Comment by gtitz on gtitz's comment https://knowledge.safe.com/comments/88940/view.html

Maybe this can be fixed in a future version.

Thank you!!Your workaround works fine.

Fri, 22 Mar 2019 10:19:48 GMT gtitz
Comment by hollyatsafe on hollyatsafe's comment https://knowledge.safe.com/comments/88908/view.html

Hi@gtitz

My mistake - the first link you provided was taking me to Error:Document Not Found and when I tried to work back down the url I ended up at a portal log in page.Thanks for clearing that up for me.

Anyway I've done some further digging as I'm seeing the same problem and unfortunately it looks like specifying a subdirectory (/**) is not currently supported because the Reader cannot determine where the URL pattern for the dataset ends and the extension pattern starts.

Instead the workaround would be what I previously suggested using the HTTPCaller - you can then download the folder and in the Feature Reader you will be able to specify the subfolder/wildcard.I've attached a workspace using your url to demonstrate this.

URL_subdirectory_shp.fmw

Thu, 21 Mar 2019 16:50:10 GMT hollyatsafe
Comment by gtitz on gtitz's comment https://knowledge.safe.com/comments/88894/view.html

Hi@hollyat亚搏在线safe,

yes, I read the zipped shapefile with the ESRI Shapefile Reader.

Did you try the first link?That should work.The other links are just shortened links, where I've cut away the first part for clarity.

You can also go to the following page and copy the URL of the highlighted link:

http://www.bev.gv.at/portal/page?_pageid=713,2601287&_dad=portal&_schema=PORTAL

I didn't try your workaround yet, because the zip file is accessible for everyone without login, so (as you said) it should work with the ESRI Shapefile Reader.

Thu, 21 Mar 2019 12:16:52 GMT gtitz
Comment by hollyatsafe on hollyatsafe's comment https://knowledge.safe.com/comments/88763/view.html

Hi@gtitz,

Are you attempting to access these shapefiles using the ESRI Shapefile Reader?

It seems I can't access the link you provided without a portal log in so this might be where the problem lies.Please could you try using a Creator >HTTP Caller>Feature Reader instead.

You will need to save the Response Body to a file in the HTTPCaller and have Create a file per feature=yes.This transformer also allows you to set the appropriate Authentication requirements.

Then in the Feature Reader you can set the dataset to read to the response_file_path attribute.

Tue, 19 Mar 2019 21:05:24 GMT hollyatsafe
Comment by gtitz on gtitz's answer https://knowledge.safe.com/comments/88677/view.html Tue, 19 Mar 2019 07:54:18 GMT gtitz Comment by tnarladni on tnarladni's comment https://knowledge.safe.com/comments/85466/view.html

Thanks@hollyat亚搏在线safe.I have upvoted this idea.in the meantime, I will ask the vendor to not password protect the zip.

Wed, 16 Jan 2019 19:45:19 GMT tnarladni
Comment by itay https://knowledge.safe.com/comments/85464/view.html

Thanks to@takashithis issue was solved with python sometime ago:

https://knowledge.亚搏在线safe.com/questions/4864/triple-zipped-xml.html

You just need to add the authentication part to the python script.

Wed, 16 Jan 2019 19:28:59 GMT itay
Comment by hollyatsafe on hollyatsafe's comment https://knowledge.safe.com/comments/85460/view.html

Hi@tnarladni,

FME does not yet support reading in password protected zip files so this is the reason for the error returned.I think the alternative at the moment is to use Python.

Please consider upvoting this idea requesting this enhancementhttps://knowledge.亚搏在线safe.com/content/idea/18888/add-winzip-encryption-option-to-zip-files.html.There is also an existing jira task to track this (FMEDESKTOP-4507).

Wed, 16 Jan 2019 17:30:33 GMT hollyatsafe
Comment by tnarladni on tnarladni's answer https://knowledge.safe.com/comments/85459/view.html

感谢您的链接。它没有为我工作。这里是小水电的zip中的位置


而这里的错误:ERROR |外形读者:无法打开的数据集 'G:\ GIS_Solutions \项目\ mapsearch \ km_mapsearch.zip \ ** \ ** \ * SHP。' 这既不是现有的文件也没有目录


我现在用的是ftpcaller输出的值来构建文件的字符串。我也试过硬编码的位置,但同样的错误。由于拉链已经被下载了,我尝试添加一个读者,而不是使用FeatureReader和我得到的错误是:无法从1个数据集获得读者ESRISHAPE“任何架构。这可能是由于无效的数据集或格式的可访问性问题由于许可,依赖关系,或加载模块。请参阅日志文件以获取更多信息

我还要提到,或首先提到,拉链是密码保护。我想它会弹出一个对话框,输入密码,但它没有,所以我不知道这是为什么会失败。

Wed, 16 Jan 2019 14:55:01 GMT tnarladni
Answer by hollyatsafe https://knowledge.safe.com/answers/85405/view.html

Hi@tnarladni,

Please review the second Note under step 3 here:http://docs.亚搏在线safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/zip_files_reading.htm


If the files you wish to open are in a folder nested within a top-level folder, include \**\ to navigate to the next folder.For example, C:\Zipster\*.zip\**\*.shp
Wed, 16 Jan 2019 00:30:43 GMT hollyatsafe