Skip to content

Commit

Permalink
add ds-id to oat layers
Browse files Browse the repository at this point in the history
  • Loading branch information
arbakker committed Feb 28, 2023
1 parent 4f69fa4 commit b57c410
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ngr_spider/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit b57c410

Please sign in to comment.