actinia-org/actinia-core

STAC exporter bug

mmacata opened this issue · 1 comments

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

metzm commented

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.