.. only:: html
|updatedisclaimer|
.. index:: Catalog services, Metadata
single: Plugins; Metasearch
.. _metasearch:
MetaSearch Catalog Client
=========================
.. only:: html
.. contents::
:local:
Introduction
------------
MetaSearch is a QGIS plugin to interact with metadata catalog services,
supporting the OGC Catalog Service for the Web (CSW) standard.
MetaSearch provides an easy and intuitive approach and user-friendly interface
to searching metadata catalogs within QGIS.
.. _figure_metasearch_results:
.. figure:: /static/user_manual/plugins/metasearch-splash.png
:align: center
Search and results of Services in Metasearch
Installation
------------
MetaSearch is included by default with QGIS 2.0 and higher. All dependencies
are included within MetaSearch.
Install MetaSearch from the QGIS plugin manager, or manually from
http://plugins.qgis.org/plugins/MetaSearch.
Working with Metadata Catalogs in QGIS
--------------------------------------
CSW (Catalog Service for the Web)
...................................
`CSW (Catalog Service for the Web)`_ is an
`OGC (Open Geospatial Consortium)`_ specification, that defines common
interfaces to discover, browse and query metadata about data, services,
and other potential resources.
Startup
.......
To start MetaSearch, click |metasearch| icon or select :menuselection:`Web -->
MetaSearch --> MetaSearch` via the QGIS main menu. The MetaSearch dialog will
appear. The main GUI consists of three tabs: :guilabel:`Services`,
:guilabel:`Search` and :guilabel:`Settings`.
Managing Catalog Services
.........................
.. _figure_metasearch_catalog:
.. figure:: /static/user_manual/plugins/metasearch-services.png
:align: center
Managing Catalog Services
The :guilabel:`Services` tab allows the user to manage all available catalog
services. MetaSearch provides a default list of Catalog Services, which can
be added by pressing **[Add default services]** button.
To all listed Catalog Service entries, click the dropdown select box.
To add a Catalog Service entry, click the **[New]** button, and enter a
:guilabel:`Name` for the service, as well as the :guilabel:`URL` (endpoint).
Note that only the base URL is required (not a full GetCapabilities URL).
Clicking **[OK]** will add the service to the list of entries.
To edit an existing Catalog Service entry, select the entry you would like to
edit and click the **[Edit]** button, and modify the :guilabel:`Name` or
:guilabel:`URL` values, then click **[OK]**.
To delete a Catalog Service entry, select the entry you would like to delete
and click the **[Delete]** button. You will be asked to confirm deleting the
entry.
MetaSearch allows for loading and saving connections to an XML file. This is
useful when you need to share settings between applications. Below is an
example of the XML file format.
.. code-block:: xml
To load a list of entries, click the **[Load]** button. A new window will
appear; click the **[Browse]** button and navigate to the XML file of entries
you wish to load and click **[Open]**. The list of entries will be displayed.
Select the entries you wish to add from the list and click **[Load]**.
Click the **[Service info]** button to displays information about the selected
Catalog Service such as service identification, service provider and contact
information. If you would like to view the raw XML response, click the
**[GetCapabilities response]** button. A separate window will open displaying
Capabilities XML.
Searching Catalog Services
..........................
.. _figure_metasearch_search:
.. figure:: /static/user_manual/plugins/metasearch-search.png
:align: center
Searching catalog services
The :guilabel:`Search` tab allows the user to query Catalog Services for data
and services, set various search parameters and view results.
The following search parameters are available:
* :guilabel:`Keywords`: free text search keywords;
* :guilabel:`From`: the Catalog Service to perform the query against;
* **Bounding box**: the spatial area of interest to filter on defined by
:guilabel:`Xmax`, :guilabel:`Xmin`, :guilabel:`Ymax`, and :guilabel:`Ymin`.
Click **[Set global]** to do a global search, click **[Map extent]** to do a
search on the visible area only or manually enter custom values as desired.
Clicking the **[Search]** button will search the selected Metadata Catalog.
Search results are displayed in a list and are sortable by clicking on the
column title. You can navigate through search results with the directional
buttons below the search results. Clicking the **[View search results as XML]**
button opens a window with the service response in raw XML format.
Clicking a result will provides the following options:
* if the metadata record has an associated bounding box, a footprint of the
bounding box will be displayed on the map;
* double-clicking the record displays the record metadata with any associated
access links. Clicking the links opens the link in the user's web browser;
* if the record is an OGC web service (WMS/WMTS, WFS, WCS), the appropriate
**[Add to WMS/WMTS|WFS|WCS]** buttons will be enabled for the user to add to
QGIS. When clicking this button, MetaSearch will verify if this is a valid
OWS. The OWS will then be added to the appropriate QGIS connection list, and
the appropriate WMS/WMTS|WFS|WCS connection dialog will then appear.
.. _figure_metasearch_metadata:
.. figure:: /static/user_manual/plugins/metasearch-record-metadata.png
:align: center
Metadata record display
Settings
........
.. _figure_metasearch_setting:
.. figure:: /static/user_manual/plugins/metasearch-settings.png
:align: center
Metasearch setting
You can fine tune MetaSearch with the following :guilabel:`settings`:
* :guilabel:`Connection naming`: when adding an OWS connection
(WMS/WMTS|WFS|WCS), the connection is stored with the various QGIS layer
provider. Use this setting to set whether to use the name provided from
MetaSearch, whether to overwrite or to use a temporary name;
* :guilabel:`Results paging`: when searching metadata catalogs, the number of
results to show per page. Default value is 10;
* :guilabel:`Timeout`: when searching metadata catalogs, the number of
seconds for blocking connection attempt. Default value is 10.
.. _`CSW (Catalog Service for the Web)`: http://www.opengeospatial.org/standards/cat
.. _`OGC (Open Geospatial Consortium)`: http://www.opengeospatial.org