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

Ckan dataset issue #7259

Open
mwu2018 opened this issue Aug 23, 2024 · 0 comments
Open

Ckan dataset issue #7259

mwu2018 opened this issue Aug 23, 2024 · 0 comments

Comments

@mwu2018
Copy link
Contributor

mwu2018 commented Aug 23, 2024

The terriajs will support some default resource formats. Loading a ckan item will fail when none of its resource formats fall into the default supported formats and if no additional info is given in supportedResourceFormats trait. The error message will be generic.

  • If a resource is a csv file, the terriajs expects that the resource format should be explicitly set to csv-geo-au according to this guidance. However, some data providers do not follow this guidance strictly, setting the resource format to csv instead of csv-geo-au, which will cause error when users try to add the item to the map and there is no way to create a shared link to communicate the error to the developers at the moment. There is a work-around by manually adding supportedResourceFormats trait :
      "supportedResourceFormats": [
          {
            "id": "CSV",
            "formatRegex": "^csv",
            "definition": {
              "type": "csv"
            }
          }
        ]
    
    The work-around is not feasible for dynamically created items from ckan-group. In that case, we should ask the data providers to fix the problem from the sources. The above info is not well known to catalog creators too, which often causes problem. We should make this prominently in the documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant