Skip to main content
Question

OSMDownloader generates empty output

  • November 30, 2018
  • 8 replies
  • 34 views

Forum|alt.badge.img

@takashi

I am not getting any output from my OSMDownloader. 0 features are returned. I have tried switching my coordinates to make sure I am placing appropriate values in min/max and x/y. I tried reducing my extent significantly to a .05 difference in height and width. Unfortunately, I still get no features from the OSMDownloader. Any idea as to why? I am relatively new to FME.

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.

8 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2076 replies
  • November 30, 2018

Hello @mrosenberg,

 

I did make download your Worspacec here and try to execute. After I checked this custom Transformer and there are not value in the transformer Tester:

 

I suspect that the erros are the values from Attributes X - Extents Minimum X ( degrees ) and Extends Maximum ( degrees ).

 

Thanks,

Danilo

 


takashi
Celebrity
  • 7842 replies
  • December 1, 2018

Please see the help for the custom transformer. There are some restrictions on the extents parameters setting.

"Extents Minimum X/Y, Maximum X/Y (degrees):

Specify the extents in decimal degrees. The extents should satisfy all of these conditions.

-180 <= xmin, xmax <= 180

-90 <= ymin, ymax <= 90

xmin is west than xmax, ymin is south than ymax

width <= 0.15, height <= 0.15

If one of the conditions wasn't satisfied, the input feature would be immediately output from the <Rejected> port."

 

 


Forum|alt.badge.img
  • Author
  • 3 replies
  • December 3, 2018

Please see the help for the custom transformer. There are some restrictions on the extents parameters setting.

"Extents Minimum X/Y, Maximum X/Y (degrees):

Specify the extents in decimal degrees. The extents should satisfy all of these conditions.

-180 <= xmin, xmax <= 180

-90 <= ymin, ymax <= 90

xmin is west than xmax, ymin is south than ymax

width <= 0.15, height <= 0.15

If one of the conditions wasn't satisfied, the input feature would be immediately output from the <Rejected> port."

 

 

@takashi thank you for pointing out the help documentation. Am I not meeting the requirements? See attached:

osm.PNG


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2076 replies
  • December 3, 2018

@takashi thank you for pointing out the help documentation. Am I not meeting the requirements? See attached:

osm.PNG

Hi @mrosenberg

This is a custom transformer.

Help online documentation https://hub.safe.com/transformers/osmdownloader


Forum|alt.badge.img
  • Author
  • 3 replies
  • December 14, 2018

@takashi

I have updated the workspace to look like Extracting OSM Roads.fmw with the help of some support from Safe. Please see that the Overpass API link you had in there was no longer supported. I tried to update the link but it is not creating the output files correctly.

Can you help me concatenate the appropriate string?

 

When I go to the link above I get some file downloaded called "interpreter" (a text document that has the OSM data): https://overpass-api.de/api/interpreter?data=(node(33.9924,-118.1985,34.0709,-118.0985);way(bn););(._;>;);out;


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • December 17, 2018

@takashi

I have updated the workspace to look like Extracting OSM Roads.fmw with the help of some support from Safe. Please see that the Overpass API link you had in there was no longer supported. I tried to update the link but it is not creating the output files correctly.

Can you help me concatenate the appropriate string?

 

When I go to the link above I get some file downloaded called "interpreter" (a text document that has the OSM data): https://overpass-api.de/api/interpreter?data=(node(33.9924,-118.1985,34.0709,-118.0985);way(bn););(._;>;);out;

Try editing the string concatenator in the osmm_downloader to


jovitaatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • 635 replies
  • January 17, 2019

Please see the help for the custom transformer. There are some restrictions on the extents parameters setting.

"Extents Minimum X/Y, Maximum X/Y (degrees):

Specify the extents in decimal degrees. The extents should satisfy all of these conditions.

-180 <= xmin, xmax <= 180

-90 <= ymin, ymax <= 90

xmin is west than xmax, ymin is south than ymax

width <= 0.15, height <= 0.15

If one of the conditions wasn't satisfied, the input feature would be immediately output from the <Rejected> port."

 

 

Hi @takashi, just wanted to let you know that it seems that the http://overpass.osm.rambler.ru may no longer be active now, and we found some success here in using one of the other APIs. We have resolved the issue on the extents as well, thanks!


jovitaatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • 635 replies
  • January 17, 2019

For anyone else with similar issues, here are some tips on troubleshooting:

  • be sure to check that the requested extents are within the limits in the help documentation, this can be checked by running the translation with Feature Caching turned on (find this in Run > Run with Feature Caching). You can view custom transformers by right clicking on them and selecting edit to open a new tab
  • consider tiling the requested extent before the OSMDownloader if you think the requested dataset is rather large (ex. a whole city) by using a Tiler and then a BoundsExtractor that you can then feed into the OSMDownloader
  • test the API string in your browser in the URL box. If it the request is correct, it will download a file called 'Interpreter', which is your requested data

Happy FME'ing!