Skip to main content
Solved

How to add Source data date in FME writer?

  • January 19, 2018
  • 1 reply
  • 22 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

 

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

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3704 replies
  • 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