OWSLib icon indicating copy to clipboard operation
OWSLib copied to clipboard

changed all 'already exists' errors to warnings

Open speleophysics opened this issue 4 years ago • 5 comments

I was running into problems with using the NASA wmts service and came across these errors. Similar errors were pointed out in #619, which was fixed by pull request #656. However, I find that all of the "already exists" error messages in wmts.py were potentially problematic for the new configuration of the NASA server. Here I have converted all "already exists" errors into warnings, analogous to the change made in #656 for one of these error messages.

speleophysics avatar Apr 16 '21 16:04 speleophysics

Looks like this would close #768.

greglucas avatar Apr 20 '21 13:04 greglucas

I'm also having the same issue and this would fix it.

erin-raif avatar Sep 26 '23 16:09 erin-raif

Yes, I'd like to echo this issue. Simply running:

from owslib.wmts import WebMapTileService
wmts = WebMapTileService("http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi")

Gives KeyError: 'Content metadata for layer "MODIS_Combined_MAIAC_L2G_AerosolOpticalDepth" already exists'

We are seeing this over at cartopy, where the WMTS interface is currently broken as a result.

lgolston avatar Sep 29 '23 19:09 lgolston

This would be nice to get in to avoid these recurring errors that happen when NASA updates its server content. This does seem like an issue with the NASA servers and not here, but this would at least allow programs to keep running and just warn about bad data rather than erroring on bad data.

I sent an e-mail to NASA support about this issue as well to try and make them aware of it on their end.

greglucas avatar Oct 07 '23 14:10 greglucas

Ping again to try and get this looked at.

greglucas avatar Feb 10 '24 04:02 greglucas