Skip to content

Commit 46149d2

Browse files
committed
Filtering Geospatial Data
- filters out any non-geospatial data fields (i.e. crs, lat_bounds) - fixes the UI position query issue caused by attempting to query timeseries data on the crs field - still need to test compatibility with the builder
1 parent 2997ef3 commit 46149d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pygeoapi/provider/xarray_.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def get_fields(self):
108108
if not self._fields:
109109
for key, value in self._data.variables.items():
110110
if key not in self._data.coords:
111+
if not {self.time_field, self.x_field, self.y_field}.issubset(value.dims):
112+
continue
111113
LOGGER.debug('Adding variable')
112114
dtype = value.dtype
113115
if dtype.name.startswith('float'):

0 commit comments

Comments
 (0)