Skip to content

Commit

Permalink
Layer reprs.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Nov 8, 2024
1 parent a5bbe0d commit 220b62f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion datacube_ows/ows_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ def make_ready(self, *args, **kwargs) -> None:
self.unready_layers = still_unready
super().make_ready(*args, **kwargs)

def __repr__(self) -> str:
return f"OWS Folder <{self.title}>"


class TimeRes(Enum):
SUBDAY = "subday"
Expand Down Expand Up @@ -1041,6 +1044,9 @@ def lookup_impl(cls, cfg: "OWSConfig", keyvals: dict[str, str], subs: CFG_DICT |
except KeyError:
raise OWSEntryNotFound(f"Layer {keyvals['layer']} not found")

def __repr__(self) -> str:
return f"OWS Layer <{self.name}>"


class OWSProductLayer(OWSNamedLayer):
multi_product = False
Expand Down Expand Up @@ -1425,7 +1431,14 @@ def make_gml_name(name):
"but has a vertical coordinate that is not 'latitude'")
# default_geographic_CRS is used by WCS1
if not self.wcs:
self.default_geographic_CRS = ""
self.default_geographic_CRS["EPSG:3832"] = {
"geographic": False,
"horizontal_coord": "x",
"vertical_coord": "y",
"vertical_coord_first": False,
"gml_name": make_gml_name("EPSG:3832"),
"alias_of": None
}
elif not geographic_CRSs:
raise ConfigException(f"At least one geographic CRS must be supplied")
elif "EPSG:4326" in geographic_CRSs or "WGS-84" in geographic_CRSs:
Expand Down

0 comments on commit 220b62f

Please sign in to comment.