Skip to content

Commit

Permalink
Merge pull request #36 from PDOK/PDOK-16505_ngr_spider_upgrade
Browse files Browse the repository at this point in the history
OGC:API tiles is nu ook een ResourceType in GeoNetwork
  • Loading branch information
kad-velsl authored Apr 23, 2024
2 parents 90750a3 + dd27d18 commit 60ae94d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ngr_spider/csw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ def _get_csw_records_by_protocol(
no_filter: bool = False,
) -> list[CswServiceRecord]:
protocol_key = "OnlineResourceType"
if (
protocol == OAT_PROTOCOL
): # required since NGR does not support OGC API TILES as a seperate protocol
protocol_key = "anyText"

query = f"type='service' AND organisationName='{svc_owner}' AND {protocol_key}='{protocol}'"
records = self._get_csw_records(query, max_results, no_filter)
LOGGER.debug(f"query: {query}")
Expand Down

0 comments on commit 60ae94d

Please sign in to comment.