TerriaJS / neii-viewer

Data viewer for National Environmental Information Infrastructure
http://neii.gov.au/viewer/
Apache License 2.0
8 stars 4 forks source link

New v8 testing: self-created JSON config cannot be loaded #215

Closed martin-bom closed 2 years ago

martin-bom commented 3 years ago

Error message in the new version: image

File for testing neii-testing-new.zip :

nf-s commented 2 years ago

Hi @martin-bom that file is using the old v7 catalog spec. You can drag and drop the JSON file into https://catalog-converter.terria.io/ - which will return a new v8 catalog

For example, the file you provided will output

{
  "workbench": [],
  "catalog": [
    {
      "id": "R3wtHY",
      "type": "group",
      "name": "Testing purpose",
      "members": [
        {
          "id": "N7uePe",
          "type": "group",
          "name": "Testing for Biota",
          "members": [
            {
              "type": "wms",
              "name": "CSIRO - ElephantFish",
              "url": "https://www.cmar.csiro.au/geoserver/nerp/wms?service=WMS&request=GetCapabilities",
              "layers": "nerp:37043001_ElephantFish-clip",
              "id": "IPYmc8",
              "shareKeys": [
                "Root Group/Testing purpose/Testing for Biota/CSIRO - ElephantFish"
              ]
            }
          ],
          "shareKeys": [
            "Root Group/Testing purpose/Testing for Biota"
          ]
        }
      ],
      "isOpen": false,
      "shareKeys": [
        "Root Group/Testing purpose"
      ]
    }
  ]
}