Solved

On the fly OSM Data reader/converter?

  • 18 February 2015
  • 5 replies
  • 30 views

Badge
Hi,

 

 

I see FME has an OSM XML data Reader. I wonder if its possible to have this reader/converter on the fly using transformers. I use the HTTPCaller to extract data via the Overpass API and I would like to convert the output XML into features, but that's not easy as I first tought because of the way OSM data is structured.

 

 

Is there a way to convert the xml data returned by the HTTPCaller into FME features without saving the XML on disk and then using the OSM Data Reader?

 

 

Thank you!

 

 

Maxime Demers
icon

Best answer by friesewoudloper 25 October 2017, 22:35

View original

5 replies

Badge
I wonder if using Overpy (https://github.com/DinoTools/python-overpy) in a pythonCaller would be much simpler than the HTTPCaller
Badge

It has been a long while since Maxime asked this question, but I created a workspace that may be of interest when you want POI's from OpenStreetMap: https://github.com/ProvincieGroningen/fme/tree/master/natuurijsbanen

Userlevel 5
Badge +25

It has been a long while since Maxime asked this question, but I created a workspace that may be of interest when you want POI's from OpenStreetMap: https://github.com/ProvincieGroningen/fme/tree/master/natuurijsbanen

I've wanted to look into the Overpass Turbo API for a long time (busy busy), I suspect it should be possible to build an OSM querier using that. I have used something @pimverver made for me but had a hard time adapting that example.

 

Userlevel 1
Badge +11

It has been a long while since Maxime asked this question, but I created a workspace that may be of interest when you want POI's from OpenStreetMap: https://github.com/ProvincieGroningen/fme/tree/master/natuurijsbanen

Hi Willy,

Cool! Nice solution. Works a treat.

For testing purposes I modified the Overpass Query to theaters in Gelderland, and yes, all 61 of them appeared in the shapefile :-)

Tnx,

Egge-Jan

It has been a long while since Maxime asked this question, but I created a workspace that may be of interest when you want POI's from OpenStreetMap: https://github.com/ProvincieGroningen/fme/tree/master/natuurijsbanen

Hi all, have been hunting around for a way to query Overpass API with FME, and this looked to be the most promising answer, but unfortunately the GitHub link was broken.

 

I've done a bit of digging and found it again here:

 

https://github.com/ProvincieGroningen/fme-workspaces/tree/master/natuurijsbanen

 

Thanks Willy for your answer, really helpful! I hope you don't mind me attaching the workbench here for others to see in case your Github repository changes again?

 

natuurijsbanen.fmw

Reply