Note: This document is for an older version of GRASS GIS that has been discontinued. You should upgrade, and read the current manual page.
NAME
db.csw.admin - CSW database manager
KEYWORDS
csw,
metadata
SYNOPSIS
db.csw.admin
db.csw.admin --help
db.csw.admin [-rsiohdfa] configure=name [load_records=string] [export_records=string] [gen_sitemap=name] [url_csw=string] [file_xml=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
Flags:
- -r
- Load records recursively
- Load records from directory recursively
- -s
- Setup database
- Creates repository tables and indexes
- -i
- Database indexes
- Rebuild repository database indexes
- -o
- Optimize db
- Optimize repository database
- -h
- Refresh harvested records
- Optimize repository database
- -d
- Delete all records(!!)
- Delete all records without prompting
- -f
- Force confirmation
- Force confirmation of task
- -a
- Automatic configuration
- Set database according GRASS default and confugure server
- --overwrite
- Allow output files to overwrite existing files
- --help
- Print usage summary
- --verbose
- Verbose module output
- --quiet
- Quiet module output
- --ui
- Force launching GUI dialog
Parameters:
- configure=name [required]
- path to configure file (default.cfg)
- Default: /var/www/html/pycsw/default.cfg
- load_records=string
- Load metadata(folder)
- Loads metadata records from directory into repository
- export_records=string
- Create db dump(folder)
- Dump metadata records from repository into directory
- gen_sitemap=name
- Sitemap
- Generate XML Sitemap
- url_csw=string
- Url of CSW
- Execute a CSW request via HTTP POST: URL of CSW
- file_xml=name
- XML file
- Execute a CSW request via HTTP POST: XML FILE
Module
db.csw.admin allows to handle csw server.
For dependencies and installation instructions see
wiki page.
For using this module must be installed pycsw libraries. Default path to configure folder is setup to pycsw install
folder(LINUX) /var/www/html/pycsw in another case, path to config file must by set by user.
In configure file must be setup few parameters for proper work of pycsw library.
- server.home
Path to folder with installed pycsw
- database.homez
Path to database with data of catalog. By default is set to SQLite database. E.g GRASS GIS sqlite database.
- server.url
For using local serever this parameter should by set to http://localhost:8000/
db.csw.harvest source=http://geodati.gov.it/RNDT/csw destination=http://localhost:8000/
r.info,
v.info.iso,
g.gui.metadata,
g.gui.cswbrowser,
db.csw.harvest,
db.csw.run
See also related wiki page.
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.admin source code
(history)
Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55
Main index |
Database index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2023
GRASS Development Team,
GRASS GIS 7.8.9dev Reference Manual