From b57c410414fecc561c41e90bf8e4863a7e39c31c Mon Sep 17 00:00:00 2001 From: Anton Bakker Date: Tue, 28 Feb 2023 11:35:54 +0100 Subject: [PATCH] add ds-id to oat layers --- ngr_spider/util.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ngr_spider/util.py b/ngr_spider/util.py index 0c31707..8639669 100644 --- a/ngr_spider/util.py +++ b/ngr_spider/util.py @@ -282,13 +282,18 @@ def get_oat_service( description = oat.description if description == "": # fallback description = empty_string_if_none(oat.service_desc.get_info().description) + + layers = oat.get_layers() + for layer in layers: + layer.dataset_metadata_id = service_record.dataset_metadata_id + return OatService( # http://docs.ogc.org/DRAFTS/19-072.html#rc_landing-page-section title=title, abstract=description, metadata_id=md_id, url=oat.service_desc.get_tile_request_url(), - layers=oat.get_layers(), + layers=layers, keywords=oat.service_desc.get_tags(), dataset_metadata_id=service_record.dataset_metadata_id, )