Solved

How to add Source data date in FME writer?

  • 19 January 2018
  • 1 reply
  • 1 view

Badge

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.

icon

Best answer by redgeographics 19 January 2018, 16:06

View original

1 reply

Userlevel 4
Badge +25

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

 

Reply