File as a processing input #1287
Unanswered
OpenGeoShift
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I try to build a test process that can read data from a file (just a text file containing "hello world" string).
I managed to make my process available at the process rest endpoint : http://localhost:5000/processes/myprocess
But I don't know how to pass my text file as an input parameter. I didn't find any example.
This is my input metadata (myprocess.py) :
This is the code that the process should execute (myprocess.py):
This is another independant python script that calls my process:
I tried many ways and I either get an error message when converting my binary as json:
Or I get a 'missing parameters' message from the process (for instance if I try to base64 encode the binary)
Please, can you provide me with an example?
Also, I posted the question on StackOverflow but I didn't manage to use the 'pygeoapi' tag, i have this error message (it doesn't appear in the tag list):
Tags
: [file], [process], [upload], [pygeoapi]
Creating the new tag 'pygeoapi' requires at least 1500 reputation. Try something from the existing tags list instead.
Beta Was this translation helpful? Give feedback.
All reactions