covjson / playground

CoverageJSON Playground
https://covjson.org/playground/
Other
5 stars 1 forks source link

Add button/tab to open CovJSON by URL #3

Open tomkralidis opened 4 years ago

tomkralidis commented 4 years ago

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 commented 4 years ago

You mean this?

https://covjson.org/playground/#https://raw.githubusercontent.com/covjson/playground/master/public/coverages/grid-tiled.covjson

It's an easter egg...

tomkralidis commented 4 years ago

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 commented 4 years ago

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?

tomkralidis commented 4 years ago

Try now?

letmaik commented 4 years ago

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 commented 4 years ago

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

letmaik commented 2 years ago

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