Skip to main content
Solved

Read xml/pbf file after HTTP caller

  • May 18, 2019
  • 1 reply
  • 76 views

scobierob

I have been using FME for some simple tasks but I would like to take it to the next level. I have workbench is a simple conversion from .pbf format and it loads this information into a geodatabase.

Next up I would like to have this workbench download an updated pbf file before it starts the conversion.

Is there a way to run an HTTPCaller and then automatically read a file that is downloaded from this transformer within a workspace? I am not sure how I would connect the output of the HTTPcaller so that is readable within my workspace.

 

 

Best answer by takashi

If you downloaded a file with the HTTPCaller, the output feature would have an attribute (named "_response_file_path" by default) that stores the file path. A possible way to read the file is: connect a FeatureReader to the HTTPCaller output port and set the file path attribute to its Dataset parameter.

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.

1 reply

takashi
Celebrity
  • Best Answer
  • May 18, 2019

If you downloaded a file with the HTTPCaller, the output feature would have an attribute (named "_response_file_path" by default) that stores the file path. A possible way to read the file is: connect a FeatureReader to the HTTPCaller output port and set the file path attribute to its Dataset parameter.