Skip to content

Commit b85b365

Browse files
committed
Fix for geopython#965 - filter out ExtendedCapabilities
1 parent 810c9b4 commit b85b365

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

owslib/wmts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from urllib.parse import (urlencode, urlparse, urlunparse, parse_qs,
3535
ParseResult)
3636
from .etree import etree
37-
from .util import clean_ows_url, testXMLValue, getXMLInteger, Authentication, openURL, getXMLTree
37+
from .util import clean_ows_url, testXMLValue, getXMLInteger, Authentication, openURL, getXMLTree, nspath
3838
from .fgdc import Metadata
3939
from .iso import MD_Metadata
4040
from .ows import ServiceProvider, ServiceIdentification, OperationsMetadata
@@ -227,7 +227,8 @@ def _buildMetadata(self, parse_remote_metadata=False):
227227
# REST only WMTS does not have any Operations
228228
if serviceop is not None:
229229
for elem in serviceop[:]:
230-
self.operations.append(OperationsMetadata(elem))
230+
if elem.tag != nspath('ExtendedCapabilities'):
231+
self.operations.append(OperationsMetadata(elem))
231232

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

0 commit comments

Comments
 (0)