Skip to main content

I want to download a zipfile using an URL and continue with the GML file which is within this zipfile.

 

The following URL contains the zipfile:

http://geodata.nationaalgeoregister.nl/top100nl/extract/kaartbladen/TOP100NL_33W.zip?formaat=gml

 

I tried to use the HTTP caller first with these settings:

HTTP method: GET

Save Response Body to: Attribute

 

..then I used the FeatureReader to open the output of the HTTP caller.

However, I got stuck. The HTTP caller did not generate any output.

 

Could you advise me in this?

 

You can simply point the reader directly to the URL that returns the zipped GML, for example:

2020-10-05 11_24_13-Add Reader

Result:

2020-10-05 11_24_13-Add Reader 2


You need to set Save Response Body to: File

You should then get a feature exiting the HttpCaller with an attribute of _response_file_path which you can use as the dataset in the FeatureReader


You can simply point the reader directly to the URL that returns the zipped GML, for example:

2020-10-05 11_24_13-Add Reader

Result:

2020-10-05 11_24_13-Add Reader 2

Thanks for your reply!

I added a GML reader like you did but got some errors like shown in this image:

Just ignore the other transformers, that was another trial :)

Errors fme GML Reader


Thanks for your reply!

I added a GML reader like you did but got some errors like shown in this image:

Just ignore the other transformers, that was another trial :)

Errors fme GML Reader

I can confirm that I get the same error with FME 2019. But with FME 2020.1 it works just fine and I was able to read the entire dataset. You may want to consider upgrading, you can keep both versions as long as you install them to separate directories.

https://www.safe.com/support/downloads/


You need to set Save Response Body to: File

You should then get a feature exiting the HttpCaller with an attribute of _response_file_path which you can use as the dataset in the FeatureReader

Thanks a lot! Works perfect. Small remark, I added a Creator before the HTTP caller.


Reply