From 46149d211ff4ebb59dcbfd3b7124a00f5e5e99e0 Mon Sep 17 00:00:00 2001 From: Kieran Bartels Date: Wed, 5 Nov 2025 13:49:28 -0500 Subject: [PATCH] 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 --- pygeoapi/provider/xarray_.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pygeoapi/provider/xarray_.py b/pygeoapi/provider/xarray_.py index 6dbd9060f..449bebd32 100644 --- a/pygeoapi/provider/xarray_.py +++ b/pygeoapi/provider/xarray_.py @@ -108,6 +108,8 @@ def get_fields(self): if not self._fields: for key, value in self._data.variables.items(): if key not in self._data.coords: + if not {self.time_field, self.x_field, self.y_field}.issubset(value.dims): + continue LOGGER.debug('Adding variable') dtype = value.dtype if dtype.name.startswith('float'):