Skip to content

Conversation

@knudmoeller
Copy link

@knudmoeller knudmoeller commented Nov 20, 2017

  • extends ckanext.spatial.lib.CswService.getidentifiers() with constraints parameter, which will simply be passed on as the constraints parameter to owslib's get_records2()
  • extends ckanext.spatial.harvesters.CSWHarvester with new get_constraints() function
    • CSWHarvester simply returns an empty list (i.e., no constraint), but sub-classes can overwrite this
    • get_constraints() is being called from gather_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 plain CSWHarvester, additional code would be needed to allow entering the constraints as part of the harvester's config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant