Skip to main content
Question

How to access a zipfile from a URL which contains a GML file?

  • October 5, 2020
  • 5 replies
  • 72 views

lambertus
Enthusiast
Forum|alt.badge.img+23

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?

 

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.

5 replies

david_r
Celebrity
  • 8392 replies
  • October 5, 2020

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


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • October 5, 2020

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


lambertus
Enthusiast
Forum|alt.badge.img+23
  • Author
  • Enthusiast
  • 141 replies
  • October 5, 2020

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


david_r
Celebrity
  • 8392 replies
  • October 5, 2020

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/


lambertus
Enthusiast
Forum|alt.badge.img+23
  • Author
  • Enthusiast
  • 141 replies
  • October 5, 2020

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.