Skip to main content

@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.

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

 


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."

 

 


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


@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


@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;


@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


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!


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!


Reply