Dear Rayman, OGC developed a "Best Practice for using Web Map Services (WMS) with Time-Dependent or Elevation-Dependent Data" (https://portal.opengeospatial.org/files/?artifact_id=56394) . This document requires that "Conformant WMS servers SHALL declare in each elevation dimension of the Capabilities document the attribute UNITS and assign it a CRS identifier specifying the vertical CRS. Elevation metric values SHALL be expressed in units of the CRS." (see page 26 of the best practice document)
Unfortunately, your external WMS server is not conformant to this OGC best practice. It is debatable whether GeoServer should allow the empty string for the 'units' attribute of an elevation dimension. Kind regards, Jürgen ----------------------------------- Dr. Jürgen Seib Deutscher Wetterdienst TI1/K - IT-Koordination Frankfurter Strasse 135 63067 Offenbach Tel.: +496980622609 EMail: juergen.s...@dwd.de -----Ursprüngliche Nachricht----- Von: Rayman [mailto:touhouray...@gmail.com] Gesendet: Samstag, 13. April 2019 15:05 An: geoserver-users@lists.sourceforge.net Betreff: [Geoserver-users] GeoServer should allow WMS to use dimension without units Hi I am using GeoServer to add a external WMS server, but it failed because GeoServer throw below error 13 Apr 18:37:49 ERROR [data.ows] - Failed to execute request https://nomads.ncdc.noaa.gov/thredds/wms/gfs-004-anl/201809/20180916/gfsanl_4_20180916_0000_000.grb2?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS 13 Apr 18:38:24 ERROR [geotools.xml] - Dimension element contains no 'units' attribute The capabilities xml in above URL contains below dimension <Dimension name="elevation" units="" default="0.995"> 0.995 </Dimension> It has a empty units, but according to the Web Map Service Implementation Specification Section C.2(http://portal.opengeospatial.org/files/?artifact_id=14416), /If the dimensional quantity has no units (e.g. band number in a multi-wavelength sensor), use the null string:units=""./ so I think GeoServer should follow the Specification and allow using dimension that has no units. -- Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users