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

Add button/tab to open CovJSON by URL #3

Open
tomkralidis opened this issue Aug 17, 2020 · 7 comments
Open

Add button/tab to open CovJSON by URL #3

tomkralidis opened this issue Aug 17, 2020 · 7 comments

Comments

@tomkralidis
Copy link

As part of the OGC API - Coverages (OACov) work, some implementations (such as https://github.com/geopython/pygeoapi) are adding support for CoverageJSON output. It would be great to add support to the playground for a user to copy/paste a URL whose output is a CoverageJSON document.

@letmaik
Copy link
Member

letmaik commented Aug 17, 2020

@tomkralidis
Copy link
Author

Excellent! https://covjson.org/playground/#https://dev.api.weather.gc.ca/coverages-demo/collections/gdps-temperature/coverage?subset=Long(-67,-52)&subset=Lat(46,60)&rangeSubset=1

The Easter egg is a great capability, thanks! It would be useful to have a "from URL" tab type thing for user interaction if possible.

@letmaik
Copy link
Member

letmaik commented Aug 17, 2020

I agree, it's a useful feature that's unnecessarily hidden. Your URL doesn't work because the server doesn't send the right CORS headers. Are you fixing that?

@letmaik letmaik changed the title add capability for adding CoverageJSON by URL Add button/tab to open CovJSON by URL Aug 17, 2020
@tomkralidis
Copy link
Author

Try now?

@letmaik
Copy link
Member

letmaik commented Aug 17, 2020

Nope, but I'm confused why you're asking me to try. Does it already work for you? I tried on Firefox and Chrome. The error is "Multiple CORS header ‘Access-Control-Allow-Origin’ not allowed".

@tomkralidis
Copy link
Author

ok, works for me fwiw (fixed double header response)

@letmaik
Copy link
Member

letmaik commented Jan 6, 2022

Opening by URL through UI is implemented now and will be part of the next playground release:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants