Skip to content

Commit

Permalink
Fix for #965 - filter out ExtendedCapabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Jan 22, 2025
1 parent 810c9b4 commit b85b365
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions owslib/wmts.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from urllib.parse import (urlencode, urlparse, urlunparse, parse_qs,
ParseResult)
from .etree import etree
from .util import clean_ows_url, testXMLValue, getXMLInteger, Authentication, openURL, getXMLTree
from .util import clean_ows_url, testXMLValue, getXMLInteger, Authentication, openURL, getXMLTree, nspath
from .fgdc import Metadata
from .iso import MD_Metadata
from .ows import ServiceProvider, ServiceIdentification, OperationsMetadata
Expand Down Expand Up @@ -227,7 +227,8 @@ def _buildMetadata(self, parse_remote_metadata=False):
# REST only WMTS does not have any Operations
if serviceop is not None:
for elem in serviceop[:]:
self.operations.append(OperationsMetadata(elem))
if elem.tag != nspath('ExtendedCapabilities'):
self.operations.append(OperationsMetadata(elem))

# serviceContents metadata: our assumption is that services use
# a top-level layer as a metadata organizer, nothing more.
Expand Down

0 comments on commit b85b365

Please sign in to comment.