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

STAC exporter bug #340

Open
mmacata opened this issue Apr 8, 2022 · 1 comment
Open

STAC exporter bug #340

mmacata opened this issue Apr 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@mmacata
Copy link
Member

mmacata commented Apr 8, 2022

There are still issues when using the STAC exporter for metadata. With the example from the wiki page posting to actinia-dev.mundialis.de with

    "api_version": "3.1.0",
    "plugin_versions": {
        "actinia_metadata_plugin": "1.0.2",
        "actinia_module_plugin": "2.3.1",
        "actinia_satellite_plugin": "0.1.0",
        "actinia_stac_plugin": "0.1.0",
        "actinia_statistic_plugin": "0.2.0"
    },
    "version": "4.0.0"

I get:

  "exception": {
    "message": "name 'ProjectionItemExt' is not defined",
    "traceback": [
      "  File \"/usr/lib/python3.8/site-packages/actinia_core/processing/actinia_processing/ephemeral_processing.py\", line 1641, in run\n    self._execute()\n",
      "  File \"/usr/lib/python3.8/site-packages/actinia_core/processing/actinia_processing/ephemeral/ephemeral_processing_with_export.py\", line 474, in _execute\n    self._export_resources()\n",
      "  File \"/usr/lib/python3.8/site-packages/actinia_core/processing/actinia_processing/ephemeral/ephemeral_processing_with_export.py\", line 447, in _export_resources\n    stac_catalog = stac.stac_builder(resource_url, file_name,\n",
      "  File \"/usr/lib/python3.8/site-packages/actinia_core/core/stac_exporter_interface.py\", line 109, in stac_builder\n    proj_ext = ProjectionItemExt(item)\n"
    ],
    "type": "<class 'NameError'>"
  },

Related to #332

@mmacata mmacata added the bug Something isn't working label Apr 8, 2022
@anikaweinmann anikaweinmann assigned metzm and unassigned metzm Apr 28, 2022
@metzm
Copy link
Contributor

metzm commented May 5, 2022

It seems that ProjectionItemExt is not really used. A proj_ext is initialized and set, but the info is not added to the STAC item?

Alternatively, ProjectionItemExt could be removed and the corresponding entries could be set manually.

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

2 participants