ckanext-spatial
ckanext-spatial copied to clipboard
Feature/allow csw constraints
- extends
ckanext.spatial.lib.CswService.getidentifiers()
withconstraints
parameter, which will simply be passed on as theconstraints
parameter to owslib'sget_records2()
- extends
ckanext.spatial.harvesters.CSWHarvester
with newget_constraints()
function-
CSWHarvester
simply returns an empty list (i.e., no constraint), but sub-classes can overwrite this -
get_constraints()
is being called fromgather_stage()
-
-
Note: the current setup means that constraints can only be set if a sub-class of
CSWHarvester
is being used. This is exactly what I need. If constraints need to be used from plainCSWHarvester
, additional code would be needed to allow entering the constraints as part of the harvester's config.