Skip to content
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

Code Export: Support generating metadata filters #259

Open
m-mohr opened this issue May 23, 2022 · 1 comment
Open

Code Export: Support generating metadata filters #259

m-mohr opened this issue May 23, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@m-mohr
Copy link
Member

m-mohr commented May 23, 2022

Currently, metadata-filters don't get generated:

The following process:

{
  "process_graph": {
    "load_collection_LUCZT2231M": {
      "process_id": "load_collection",
      "arguments": {
        "bands": [
          "B08",
          "B04",
          "B02"
        ],
        "id": "SENTINEL2_L2A",
        "properties": {},
        "spatial_extent": {
          "east": 6.646557,
          "north": 50.82171,
          "south": 50.811346,
          "west": 6.631536
        },
        "temporal_extent": [
          "2018-01-01",
          "2019-01-01"
        ]
      },
      "description": "B08 = NIR, B04 = RED, B02 = BLUE"
    },
    "save_result_ZZGVZ2715G": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "load_collection_LUCZT2231M"
        },
        "format": "GTiff"
      },
      "result": true
    }
  },
  "parameters": []
}

results in incomplete code:

// Import required packages
import { OpenEO, Formula } from '@openeo/js-client';

// Connect to the back-end
let connection = await OpenEO.connect('https://openeo.vito.be');
// ToDo: Here you need to add your authentication steps

let builder = await connection.buildProcess();

// B08 = NIR, B04 = RED, B02 = BLUE
let load_collection_LUCZT2231M = builder.load_collection("SENTINEL2_L2A",
  {"east": 6.646557, "north": 50.82171, "south": 50.811346, "west": 6.631536},
  ["2018-01-01", "2019-01-01"], ["B08", "B04", "B02"],
  {} // <-- Filters missing
);
let save_result_ZZGVZ2715G = builder.save_result(load_collection_LUCZT2231M, "GTiff");

// The process can be executed synchronously (see below), as batch job or as web service now
let result = await connection.computeResult(save_result_ZZGVZ2715G);

(applies to all languages)

@m-mohr m-mohr added the bug Something isn't working label May 23, 2022
@m-mohr m-mohr added this to the v0.12 milestone May 23, 2022
@m-mohr m-mohr self-assigned this May 23, 2022
@m-mohr m-mohr modified the milestones: v0.12, v0.11 May 23, 2022
@m-mohr
Copy link
Member Author

m-mohr commented May 23, 2022

Fixed, but only for filters in load_collection properties.

@m-mohr m-mohr modified the milestones: v0.11, v1.0, v0.12 May 23, 2022
@m-mohr m-mohr modified the milestones: v0.12, v0.13 Oct 12, 2022
@m-mohr m-mohr modified the milestones: v0.13, v1.0 Oct 20, 2022
@m-mohr m-mohr removed their assignment Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant