We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179c90f commit 3bdeefeCopy full SHA for 3bdeefe
pygeoapi/provider/rasterio_.py
@@ -80,6 +80,8 @@ def get_fields(self):
80
dtype2 = dtype
81
if dtype.startswith('float'):
82
dtype2 = 'number'
83
+ elif dtype.startswith('int'):
84
+ dtype2 = 'integer'
85
86
self._fields[i2] = {
87
'title': name,
pygeoapi/provider/xarray_.py
@@ -112,6 +112,8 @@ def get_fields(self):
112
dtype = value.dtype
113
if dtype.name.startswith('float'):
114
dtype = 'number'
115
+ elif dtype.name.startswith('int'):
116
+ dtype = 'integer'
117
118
self._fields[key] = {
119
'type': dtype,
0 commit comments