diff --git a/xpublish_wms/grid.py b/xpublish_wms/grid.py index 6f3c9b9..4cca298 100644 --- a/xpublish_wms/grid.py +++ b/xpublish_wms/grid.py @@ -12,7 +12,7 @@ class GridType(Enum): @classmethod def from_ds(cls, ds: xr.Dataset): - if "grid" in ds.cf.cf_roles["grid_topology"]: + if "grid_topology" in ds.cf.cf_roles: return cls.SGRID try: