Skip to main content
Solved

How to add Source data date in FME writer?

  • January 19, 2018
  • 1 reply
  • 13 views

Forum|alt.badge.img

Hello everyone,

I use PBF data format as a reader. Which I downloaded from https://planet.openstreetmap.org/pbf/ or any other URL and Esri Geodatabase (File Geodb API) format as a writer.

Is it any possibility that the reader takes the LATEST VERSION pbf file automatically from the website and After that the writer show the date of used pbf file (which date of pbf file was used)?

For example: I took the pbf file of (2018-01-11) in reader and the writer shows the same date (2018-01-11) data is used for reader.

Thanks.

Best answer by redgeographics

If you use a HTTPCaller to GET the data from https://planet.openstreetmap.org/pbf/ it will return a response body containing the HTML source of that page, so searching for planet-latest.osm.pbf followed by a date should do the trick.

You can then use that attribute to either tag all your features with that date or store it in a logfile or table, whatever you prefer

none2none.fmw

 

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

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • January 19, 2018

If you use a HTTPCaller to GET the data from https://planet.openstreetmap.org/pbf/ it will return a response body containing the HTML source of that page, so searching for planet-latest.osm.pbf followed by a date should do the trick.

You can then use that attribute to either tag all your features with that date or store it in a logfile or table, whatever you prefer

none2none.fmw

 


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