geonode icon indicating copy to clipboard operation
geonode copied to clipboard

WCS Links in Layer Info Page Not showing up (Errors eaten)

Open jj0hns0n opened this issue 15 years ago • 6 comments

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.

jj0hns0n avatar Jul 12 '11 22:07 jj0hns0n

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.

jjohnson-xx avatar Jul 13 '11 00:07 jjohnson-xx

I pulled the fix for this but am leaving this ticket open since the error eating issue hasn't been resolved.

sbenthall avatar Jul 13 '11 19:07 sbenthall

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.

ingenieroariel avatar Feb 24 '12 20:02 ingenieroariel

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.

drwelby avatar Jun 23 '12 16:06 drwelby

Can we close this one?

jj0hns0n avatar Jul 27 '12 17:07 jj0hns0n

Let's close it, I verified the strikethrough implementation works when was is not available.

ingenieroariel avatar Jul 29 '12 19:07 ingenieroariel