[Git][debian-gis-team/owslib][upstream] New upstream version 0.29.1
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Apr 13 04:31:58 BST 2023
Bas Couwenberg pushed to branch upstream at Debian GIS Project / owslib
Commits:
7017b13c by Bas Couwenberg at 2023-04-13T05:21:57+02:00
New upstream version 0.29.1
- - - - -
4 changed files:
- VERSION.txt
- owslib/__init__.py
- owslib/iso.py
- tests/doctests/iso_parse.txt
Changes:
=====================================
VERSION.txt
=====================================
@@ -1 +1 @@
-0.29.0
+0.29.1
=====================================
owslib/__init__.py
=====================================
@@ -1 +1 @@
-__version__ = '0.29.0'
+__version__ = '0.29.1'
=====================================
owslib/iso.py
=====================================
@@ -747,35 +747,20 @@ class DQ_DataQuality(object):
self.specificationdate.append(val)
-class SV_ServiceIdentification(object):
+class SV_ServiceIdentification(MD_DataIdentification):
""" process SV_ServiceIdentification """
def __init__(self, md=None):
+
+ super().__init__(md, 'service')
+
if md is None:
- self.title = None
- self.abstract = None
- self.contact = None
- self.identtype = 'service'
self.type = None
self.version = None
self.fees = None
- self.bbox = None
self.couplingtype = None
self.operations = []
self.operateson = []
else:
- val = md.find(util.nspath_eval('gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString', namespaces))
- self.title = util.testXMLValue(val)
-
- val = md.find(util.nspath_eval('gmd:abstract/gco:CharacterString', namespaces))
- self.abstract = util.testXMLValue(val)
-
- self.contact = None
- val = md.find(util.nspath_eval(
- 'gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty', namespaces))
- if val is not None:
- self.contact = CI_ResponsibleParty(val)
-
- self.identtype = 'service'
val = md.find(util.nspath_eval('srv:serviceType/gco:LocalName', namespaces))
self.type = util.testXMLValue(val)
@@ -786,13 +771,6 @@ class SV_ServiceIdentification(object):
'srv:accessProperties/gmd:MD_StandardOrderProcess/gmd:fees/gco:CharacterString', namespaces))
self.fees = util.testXMLValue(val)
- val = md.find(util.nspath_eval('srv:extent/gmd:EX_Extent', namespaces))
-
- if val is not None:
- self.bbox = EX_Extent(val)
- else:
- self.bbox = None
-
self.couplingtype = _testCodeListValue(md.find(util.nspath_eval(
'gmd:couplingType/gmd:SV_CouplingType', namespaces)))
=====================================
tests/doctests/iso_parse.txt
=====================================
@@ -3,7 +3,7 @@ Imports
>>> from tests.utils import resource_file
>>> from owslib.etree import etree
- >>> from owslib.iso import MD_Metadata
+ >>> from owslib.iso import MD_Metadata
Print testing some metadata elements
@@ -15,14 +15,14 @@ Print testing some metadata elements
>>> x.identification[1].title
'Parameter-elevation Regressions on Independent Slopes Model Monthly Climate Data for the Continental United States. February 2013 Snapshot'
- >>> x.identification[1].abstract[0:40]
- 'This dataset was created using the PRISM'
-
- >>> x.identification[1].contact.name
- 'Christopher Daley'
-
- >>> x.identification[1].contact.email
- 'daley at nacse.org'
-
- >>> x.identification[1].operations[0]['connectpoint'][0].url
- 'http://cida.usgs.gov/thredds/dodsC/prism'
+ >>> x.identification[1].abstract[0:40]
+ 'This dataset was created using the PRISM'
+
+ >>> x.contact[0].name
+ 'Christopher Daley'
+
+ >>> x.contact[0].email
+ 'daley at nacse.org'
+
+ >>> x.identification[1].operations[0]['connectpoint'][0].url
+ 'http://cida.usgs.gov/thredds/dodsC/prism'
View it on GitLab: https://salsa.debian.org/debian-gis-team/owslib/-/commit/7017b13cc16ff1ce0d7108ce26a99a8832810861
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/owslib/-/commit/7017b13cc16ff1ce0d7108ce26a99a8832810861
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230413/80d898d3/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list