NAME
m.csw.update - Update catalogue service for the web connections resources candidates.
KEYWORDS
connections resources,
csw,
metadata
SYNOPSIS
m.csw.update
m.csw.update --help
m.csw.update [-aivnpswlxck] [spreadsheet=name] [url=string] xml=name xsd=name timeout=timeout [separator=separator] [proxy=proxy[,proxy,...]] [header=header[,header,...]] [--help] [--verbose] [--quiet] [--ui]
Flags:
- -a
- Print all active (valid and active) CSW connections resources only
- -i
- Print not active CSW connections resources only
- -v
- Print valid CSW connections resources URLs
- -n
- Print not valid CSW connections resources URLs
- -p
- Print all new CSW connections (valid/not valid, active/not active) resources with following format '{Country}, {Governmental level}, {API provider}: {URL}'
- -s
- Print new CSW connections resources summary info
- -w
- Print default spreadsheet file URL
- -l
- Print default local spreadsheet file URL
- -x
- Validate CSW connections resources XML file against XSD schema
- -c
- Remove and print not active CSW connection resources from XML file
- -k
- Remove and print not valid CSW connections resources from XML file
- --help
- Print usage summary
- --verbose
- Verbose module output
- --quiet
- Quiet module output
- --ui
- Force launching GUI dialog
Parameters:
- spreadsheet=name
- Path to spreadsheet file (ODS format)
- Default: API-cases.ods
- url=string
- Spreadsheet file URL
- xml=name [required]
- Path to CSW connections resources XML file
- Default: connections_resources.xml
- xsd=name [required]
- Path to CSW connections resources validation schema XSD file
- Default: connections_resources.xsd
- timeout=timeout [required]
- Timeout for checking if CSW connections resources URL is active
- Default: 10
- separator=separator
- Separator inside connections resources item string '{Name}{Separator}{URL}' (print only), use "separator"
- Default: ': '
- proxy=proxy[,proxy,...]
- Set the proxy with: "http=<value>,ftp=<value>"
- header=header[,header,...]
- Set the header with: "User-Agent=<value>,Accept=<value>"
- Default: User-Agent=Mozilla/5.0
m.csw.update updates the CSW connections resource XML file (required
by the
g.gui.cswbrowser and
g.gui.metadata modules).
If the
-p flag is used only printing instead of writing is done.
The module also allows validate the connections resources XML file against
XSD schema, remove invalid and not active CSW connections resources
candidates.
For dependencies and installation instructions see the
wiki page.
Stored new connections resources candidates are only those being active and valid.
Default source of the new candidates is a spreadsheet file (*.ods), which
is to be stored in the module's
config/ directory. It is possible to use
the updated document directly from the web address, see
-w flag.
Import and store new resources connections candidates (default):
m.csw.update url=API-cases.ods
Store new resources connections candidates along with printing a summary info:
Print only all new connections resources candidates
(with following format '{Country}, {Governmental level}, {API provider}: {URL}')
with summary info:
Print only active new connections resources candidates with summary info:
Validate the default connections resources XML file against XSD schema plus
validate individual CSW connection resources (remove and print non active
CSWs):
g.gui.cswbrowser,
g.gui.metadata
See also related
wiki page.
Tomas Zigo
SOURCE CODE
Available at:
m.csw.update source code
(history)
Latest change: Thursday Feb 03 09:32:35 2022 in commit: f17c792f5de56c64ecfbe63ec315307872cf9d5c
Main index |
Miscellaneous index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2024
GRASS Development Team,
GRASS GIS 8.5.0dev Reference Manual