db.csw.harvest
CSW database manager
db.csw.harvest source=string destination=string [max=integer] [--verbose] [--quiet] [--qq] [--ui]
Example:
db.csw.harvest source=string destination=string
grass.script.run_command("db.csw.harvest", source, destination, max=None, verbose=None, quiet=None, superquiet=None)
Example:
gs.run_command("db.csw.harvest", source="string", destination="string")
grass.tools.Tools.db_csw_harvest(source, destination, max=None, verbose=None, quiet=None, superquiet=None)
Example:
tools = Tools()
tools.db_csw_harvest(source="string", destination="string")
This grass.tools API is experimental in version 8.5 and expected to be stable in version 8.6.
Parameters
source=string [required]
    uri source
    uri to csw source
destination=string [required]
    uri destination
    uri to csw destination
max=integer
    max records
    uri to csw destination
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog
source : str, required
    uri source
    uri to csw source
destination : str, required
    uri destination
    uri to csw destination
max : int, optional
    max records
    uri to csw destination
verbose : bool, optional
    Verbose module output
    Default: None
quiet : bool, optional
    Quiet module output
    Default: None
superquiet : bool, optional
    Very quiet module output
    Default: None  
source : str, required
    uri source
    uri to csw source
destination : str, required
    uri destination
    uri to csw destination
max : int, optional
    max records
    uri to csw destination
verbose : bool, optional
    Verbose module output
    Default: None
quiet : bool, optional
    Quiet module output
    Default: None
superquiet : bool, optional
    Very quiet module output
    Default: None  
Returns:
result : grass.tools.support.ToolResult | None
If the tool produces text as standard output, a ToolResult object will be returned. Otherwise, None will be returned.
Raises:
grass.tools.ToolError: When the tool ended with an error.
DESCRIPTION
Module db.csw.harvest allows to harvest metadata between two catalogues.
NOTES
For dependencies and installation instructions see wiki page. For importing metadata to local server transactions must be allowed. The parameter "transactions" is stored in the configure file "default.cfq" (by default in pycsw installation folder).
EXAMPLES
Harvesting of a remote catalogue to local:
db.csw.harvest source=https://geodati.gov.it/RNDT/csw destination=http://localhost:8000/
SEE ALSO
r.info, v.info.iso, g.gui.metadata, g.gui.cswbrowser, db.csw.admin, db.csw.run
See also related wiki page.
AUTHOR
Matej Krejci, OSGeoREL at the Czech Technical University in Prague, developed during Google Summer of Code 2015 (mentors: Martin Landa)
SOURCE CODE
Available at: db.csw.harvest source code
(history)
Latest change: Saturday Aug 09 10:30:07 2025 in commit 4b03638