Skip to main content
Solved

Read xml/pbf file after HTTP caller

  • May 18, 2019
  • 1 reply
  • 63 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.

View original
Did this help you find an answer to your question?

1 reply

takashi
Influencer
  • 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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings