@@ -35,18 +35,16 @@ def test_ogcapi_coverages_pygeoapi():
3535 assert gdps ['id' ] == 'gdps-temperature'
3636 assert gdps ['title' ] == 'Global Deterministic Prediction System sample'
3737 assert gdps ['description' ] == 'Global Deterministic Prediction System sample' # noqa
38-
39- domainset = w .coverage_domainset ('gdps-temperature' )
40-
41- assert domainset ['generalGrid' ]['axisLabels' ] == ['Long' , 'Lat' ]
42-
43- assert domainset ['generalGrid' ]['gridLimits' ]['axisLabels' ] == ['i' , 'j' ]
44-
45- rangetype = w .coverage_rangetype ('gdps-temperature' )
46- assert len (rangetype ['field' ]) == 1
47- assert rangetype ['field' ][0 ]['name' ] == 'Temperature [C]'
48- assert rangetype ['field' ][0 ]['uom' ]['code' ] == '[C]'
49- assert rangetype ['field' ][0 ]['encodingInfo' ]['dataType' ] == 'http://www.opengis.net/def/dataType/OGC/0/float64' # noqa
38+ assert gdps ['extent' ]['spatial' ]['grid' ][0 ]['cellsCount' ] == 2400
39+ assert gdps ['extent' ]['spatial' ]['grid' ][0 ]['resolution' ] == 0.15000000000000002 # noqa
40+ assert gdps ['extent' ]['spatial' ]['grid' ][1 ]['cellsCount' ] == 1201
41+ assert gdps ['extent' ]['spatial' ]['grid' ][1 ]['resolution' ] == 0.15
42+
43+ schema = w .collection_schema ('gdps-temperature' )
44+ assert len (schema ['properties' ]) == 1
45+ assert schema ['properties' ]['1' ]['title' ] == 'Temperature [C]'
46+ assert schema ['properties' ]['1' ]['type' ] == 'number'
47+ assert schema ['properties' ]['1' ]['x-ogc-unit' ] == '[C]'
5048
5149 with pytest .raises (RuntimeError ):
5250 w .coverage ('gdps-temperature' , properties = [8 ])
0 commit comments