Open-MSS / MSS

A QT application, a OGC web map server, a collaboration server to plan atmospheric research flights.
https://open-mss.github.io
Apache License 2.0
63 stars 84 forks source link

Give meaningful error message, if datafields, which are required for a layer are not present #1640

Open soerenjoh opened 1 year ago

soerenjoh commented 1 year ago

When trying to get server capabilities for layers, which are defined, but for which not all of the required datafields are available, it results in the following error message:

2022-12-16 15:45:19,706 (wms.get_capabilities:600): ERROR: layer <mslib.mswms.mpl_vsec_styles.VS_HorizontalVelocityStyle_01 object at 0x7f7d044dc640>/model has no valid times!

In my opinion it would be better to specifically print out, which variables are missing for this layer, instead of mentioning "no valid times", which are misleading.

CipJusCodin commented 1 year ago

Hi, is this issue still open? I'm a beginner to open source contribution. I'd like to work on this issue

ReimarBauer commented 1 year ago

Hi @CipJusCodin this is not for begginers using the services of this software. Meaningful for a user means the exact hint what he needs to get his problem solved. This needs also access to data having that problem.

soerenjoh commented 1 year ago

Actually, this error message also comes when the netCDF file is not in "NETCDF4_CLASSIC" format...