-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pass geometry object to aggregate_spatial() #121
Comments
@flahn, generally speaking: where could it be documented which classes are accepted for which arguments when building the process graph via the R-Client? |
This is indeed hard to manage, because the functions are generated dynamically based on the functions and argument configuration of the back-end. In you case try With that said, I see that we are in utter need of a better documentation for this. All parameter types that are implemented for the processes are individually documented. What is missing is a proper entrypoint. Maybe I need to add the types as links to the Argument and Parameter class documentation. Other then that, this could be a section in a "Process Graph Building" vignette. |
related to #64 |
Thanks for the quick reply! Summarising the options:
And it would be great if there was a way to make sure that all arguments/parameters (spatial, temporal, etc. ) of the openEO processes are handled in the same way by the R-Client. Don't know if this is possible without manually going through all openEO processes? @soxofaan @jdries @clausmichele: How do you handle this in the python client? |
Then specifically for
|
In the python client we don't use dynamically generated functions and have a handcrafted
|
related to #67 |
Just to recap: the Python client uses a data structure that is closely related to GeoJSON. For the R client I have several packages that handle GeoJSON ( Addition: |
I like that idea to stay out of the trouble dealing with the multitude of available json/geojson packages/representations in R! |
I tried using
aggregate_spatial
in a process graph on the eurac backend. The openEO help asks for a geojson. I tried to pass the object as character representing the geojson format, then as geojson r object. It wasn't accepted with the error:Then I tried an
sf
object and it worked. For creating the node.Then for sending the graph to the backend or converting it via
as(x, "Process")
it throws this errorFinally, I used the webeditor and created the graph by hand, then converted to R. The geometry object in
aggregate_spatial
should be provided aslist
IMO it would make sense to adapt the error message from saying what it not accepts to what it accepts?
The text was updated successfully, but these errors were encountered: