Skip to content

g.gui.cswbrowser

Graphical CSW metadata browser.

g.gui.cswbrowser [--verbose] [--quiet] [--qq] [--ui]

Example:

g.gui.cswbrowser

grass.tools.Tools.g_gui_cswbrowser( verbose=None, quiet=None, superquiet=None)

Example:

tools = Tools()
tools.g_gui_cswbrowser()

This grass.tools API is experimental in version 8.5 and expected to be stable in version 8.6.

grass.script.run_command("g.gui.cswbrowser", verbose=None, quiet=None, superquiet=None)

Example:

gs.run_command("g.gui.cswbrowser")

Parameters

--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

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.

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

DESCRIPTION

g.gui.cswbrowser supports searching and browsing metadata catalogs based on Catalogue Service (CSW) standard .

The module allows to setting up connection to csw by uri and search metadata using advanced filter.

NOTES

For dependencies and installation instructions see the dedicated wiki page.

Setting up connection

After start g.gui.cswbrowser the connection manager is initialized by default connection file which includes some well known catalogs. Connection manager allows to add, to delete and to load connection from xml file.

Search and browse catalog

Searching and browsing panel allows to setup request with using custom filter.

EXAMPLES

Query filter

The filter can be defined by limitation of area by bounding box which can be set by GRASS region or manualy.

Bounding box

  • Bounding box
    Bounding box defined spatial extent for limitation of area. Button "Map extends" allows to set up values from current GRASS region.

  • Keywords
    This filter allows to use basic or advance keyword filtering. In the simple case user can define single keywords or multiple keywords with button "+". Logic operator between keywords is AND(&&). Second, advanced is based on OGC list of expressions which means that can be set filtr with logic relations between keywords or sets of keywords. Dialog for settings kewords text string is under "Advanced" checkbox. Syntax of constraints is based on python list syntax. Each keywords must be in braces \<'> or \<">.

    • OR condition
      a || b || c ["a","b","c"]
  • AND condition
    a && b && c [["a","b","c"]]
  • composition
    (a && b) || c || d || e [["a","b"],["c"],["d"],["e"]] or [["a","b"],"c","d","e"]

Browsing of metadata

In case of successful request, user can browse through results and show request and response in xml format. If services contains uri of WMS, WFS or WMS, module allows to add them directly with using upper toolbar.

SEE ALSO

r.info, v.info.iso, g.gui.metadata, db.csw.harvest, db.csw.admin, db.csw.run

See also related wiki page.

AUTHORS

Matej Krejci, OSGeoREL at the Czech Technical University in Prague, developed during Google Summer of Code 2015 (mentor: Martin Landa)

SOURCE CODE

Available at: g.gui.cswbrowser source code (history)
Latest change: Tuesday Sep 22 07:45:52 2026 in commit 4ddf6e3