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

Feature - Improve auto previews (resources) #8

Open
3 tasks
mjanez opened this issue Sep 5, 2023 · 0 comments
Open
3 tasks

Feature - Improve auto previews (resources) #8

mjanez opened this issue Sep 5, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mjanez
Copy link
Owner

mjanez commented Sep 5, 2023

For other formats that do not have auto resource_view by default, add auto resource_view.

  • Fix create_ckan_resource_view. API Reference: resource_view_create

    def create_ckan_resource_view(ckan_site_url, authorization_key, data, ssl_unverified_mode):
    # We'll use the package_create function to create a new dataset.
    url = ckan_site_url + OGC2CKAN_CKAN_API_ROUTES['create_ckan_resource_view']
    make_request(url, authorization_key, data, ssl_unverified_mode)

  • formats

    • Add preview to formats like "format": "Esri REST".

    View type: webpage_view, Web page url: https://www.arcgis.com/home/webmap/viewer.html?url= + resource_url

@mjanez mjanez added the documentation Improvements or additions to documentation label Sep 5, 2023
@mjanez mjanez self-assigned this Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant