Skip to content

Commit

Permalink
Merge pull request #311 from ckan/Zharktas-patch-1
Browse files Browse the repository at this point in the history
Use csw2 from owslib
  • Loading branch information
amercader authored Oct 31, 2023
2 parents 28c82eb + 0e236cc commit 7d39faa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/spatial/lib/csw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CswService(OwsService):
"""
Perform various operations on a CSW service
"""
from owslib.csw import CatalogueServiceWeb as _Implementation
from owslib.catalogue.csw2 import CatalogueServiceWeb as _Implementation

def __init__(self, endpoint=None):
super(CswService, self).__init__(endpoint)
Expand All @@ -74,7 +74,7 @@ def __init__(self, endpoint=None):
def getrecords(self, qtype=None, keywords=[],
typenames="csw:Record", esn="brief",
skip=0, count=10, outputschema="gmd", **kw):
from owslib.csw import namespaces
from owslib.catalogue.csw2 import namespaces
constraints = []
csw = self._ows(**kw)

Expand Down Expand Up @@ -102,7 +102,7 @@ def getrecords(self, qtype=None, keywords=[],
def getidentifiers(self, qtype=None, typenames="csw:Record", esn="brief",
keywords=[], limit=None, page=10, outputschema="gmd",
startposition=0, cql=None, **kw):
from owslib.csw import namespaces
from owslib.catalogue.csw2 import namespaces
constraints = []
csw = self._ows(**kw)

Expand Down Expand Up @@ -154,7 +154,7 @@ def getidentifiers(self, qtype=None, typenames="csw:Record", esn="brief",
kwa["startposition"] = startposition

def getrecordbyid(self, ids=[], esn="full", outputschema="gmd", **kw):
from owslib.csw import namespaces
from owslib.catalogue.csw2 import namespaces
csw = self._ows(**kw)
kwa = {
"esn": esn,
Expand Down

0 comments on commit 7d39faa

Please sign in to comment.