-
Notifications
You must be signed in to change notification settings - Fork 3
Functionality for the first example of proof-of-concept #3
Comments
The first use case should work with synchronous execution. However, when I started the implementation on that the process graph used the parameter name "imagery" and i adopted that into the code for evaluating the process graph. This needs to be fixed at some point. In the "old" graph definition it should look like this: task = collection("sentinel2_subset", id_name="product_id") %>%
process("filter_daterange",prior.name = "imagery", from="2017-04-01", to="2017-05-01") %>%
process("calculate_ndvi",prior.name = "imagery", nir=8,red=4) %>%
process("find_min",prior.name = "imagery") |
Hm, I just updated both the backend and client packages ( It's also very weird in that if I try to start the server using the snippet of code you have in the README (set the workspace path to
Either way I can't log in, though. |
Oh, I just saw that my start script looks different than the README one. I will update that. As a quickfix: you should run the follwing to start the server: library(openEO.R.Backend)
rm(openeo.server)
openeo.server$data.path = paste(system.file(package="openEO.R.Backend"),"extdata",sep="/")
openeo.server$workspaces.path = "C:/code/openeo-r-workspace"
openeo.server$initEnvironmentDefault()
openeo.server$initializeDatabase()
openeo.server$createUser(user_name="test", password="test")
openeo.server$loadDemo()
openeo.server$startup(port = 8000) The reason for this is the switch to a sqlite data storage for users, jobs and such, rather than storing them in individual json files. |
Right, that works, at least on the But on the
That looks too small to be a raster. |
That looks indeed odd. I guess, that this is an base64 encoded json error response. The executeTask method will return raw data as a default. Calling it with a valid GDAL write format should result an image. res = con %>% executeTask(task,"GTiff") |
Reran it on |
Huh. I used a hex to ASCII converter, and this actually is:
But that's synchronous, why is it giving a job ID? |
OK. I messed up. I haven't connected the "sync" operation with the download function (accessable via GET /api/download/{job_id}, which was not specified by the api). I have implemented that before we had the discussions about synchronous jobs and i simply forgot to chain it, now. I will fix it asap. |
Huh, so you mean the sync method is currently going through the lazy method, so it keeps track of state in either case? In which case, that makes me wonder why |
No the other ones are not implemented yet. Since I, currently, have no counterpart for that on the backend. |
OK, good to know. |
It would be useful to have an overview of what is available and what is still missing in order to be able to perform the first example of the proof-of-concept.
The data is there, the processes seem to be there now, generating the process graph in the client works, but I can't get a result from the backend (possibly due to issue #1). Is it intended to be functional already? Are lazy and synchronous methods of processing implemented, or not yet?
It would help to also include some sort of status overview in the repository (in the readme or a separate file).
The text was updated successfully, but these errors were encountered: