diff --git a/pygeoapi/provider/rasterio_.py b/pygeoapi/provider/rasterio_.py index 261754c1d..3b0fbc2c7 100644 --- a/pygeoapi/provider/rasterio_.py +++ b/pygeoapi/provider/rasterio_.py @@ -80,6 +80,8 @@ def get_fields(self): dtype2 = dtype if dtype.startswith('float'): dtype2 = 'number' + elif dtype.startswith('int'): + dtype2 = 'integer' self._fields[i2] = { 'title': name, diff --git a/pygeoapi/provider/xarray_.py b/pygeoapi/provider/xarray_.py index ba835f033..9ed2726b1 100644 --- a/pygeoapi/provider/xarray_.py +++ b/pygeoapi/provider/xarray_.py @@ -112,6 +112,8 @@ def get_fields(self): dtype = value.dtype if dtype.name.startswith('float'): dtype = 'number' + elif dtype.name.startswith('int'): + dtype = 'integer' self._fields[key] = { 'type': dtype,