Skip to main content
I need to read a GeoJson from an URL. One of the attributes of the call is the current time that I could get using the "Date/Time Functions" on Text Editor, however those functions are note available in the reader.

I tried to use a FeatureReader where I can set the current time properly but then I don't have the "Network Authentication" options under parameters.

 

Any clue on how to set the reader source GeoJSON URL dynamicaly?

You could use a scripted private parameter for the reader source,  something like this where 'url' is a parameter that contains the fixed part of the url

from time import strftime
return FME_MacroValuesm'url']+strftime("%Y%m%d-%H%M%S")

 

 


You could use a scripted private parameter for the reader source,  something like this where 'url' is a parameter that contains the fixed part of the url

from time import strftime
return FME_MacroValuesm'url']+strftime("%Y%m%d-%H%M%S")

 

 

Thank you so much. Exactly what I needed.


Reply