Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

How to connect AND process #116

Closed clausmichele closed 4 years ago

clausmichele commented 4 years ago

I am not able to merge two boolean masks with the AND process. I tried both with reduce_dimensions -> array_element -> and, apply-> array_element -> and but in both cases the AND process wasn't accepting the given input. I'm working with the Web Editor of VITO, which has implemented the AND process. I don't know if it's a problem of the editor or the back-end. Here is a screenshot image

and the process graph generated:

{
  "process_graph": {
    "1": {
      "process_id": "load_collection",
      "arguments": {}
    },
    "2": {
      "process_id": "apply",
      "arguments": {
        "data": {
          "from_node": "1"
        },
        "process": {
          "process_graph": {
            "1": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "x"
                }
              }
            },
            "2": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "x"
                }
              }
            },
            "3": {
              "process_id": "and",
              "arguments": {
                "x": true,
                "y": true
              },
              "result": true
            }
          }
        }
      },
      "result": true
    }
  }
}
m-mohr commented 4 years ago

That sounds related to #114. I'll investigate today, thanks.

m-mohr commented 4 years ago

Has been fixed in dev, will publish it later.

m-mohr commented 4 years ago

Deployed.