WCS Links in Layer Info Page Not showing up (Errors eaten)
When viewing a raster layer in the Layer Info page, Links to the WCS should appear in the right hand Download list ... they do not.
The whole block that does the creation of the WCS links is wrapped in a try/except block that just swallows the errors whole and does nothing with them.
https://github.com/GeoNode/geonode/blob/master/src/GeoNodePy/geonode/maps/models.py#L766
Dwinslow believes this could be due to some upstream changes in owslib that are causing some error which is eaten and ignored.
This turned out to be a very small typo in the construction of the wcs url. Fixed with https://github.com/GeoNode/geonode/pull/48 ... issue of eating errors not currently addressed.
I pulled the fix for this but am leaving this ticket open since the error eating issue hasn't been resolved.
The best option I see here is refactoring the code to avoid hitting the WCS service before the user clicks (one alternative is to store the parameters in the django db once the layer is created (low, high, h and w). This would remove the need for a try / except block and make the display operation faster.
Another option I don't like too much is just adding logger.warn() in the try / except block and returning something like: 'Raw data not available' on the UI so end users are aware of the issue.
In any case I believe this ticket should make it to the list in Github. Marking it accordingly.
Jmwenda found the absolute path lxml error too, but how about failing with a strikethrough link that doesn't go anywhere:
https://github.com/drwelby/geonode/commit/6ac0273162bb133f4050774d2fb445081d794acc
It might be nice in a future release to also include some alt text to give more information on mouseover.
Can we close this one?
Let's close it, I verified the strikethrough implementation works when was is not available.