24.2.6. Client Catalogo MetaSearch¶
24.2.6.1. Introduzione¶
MetaSearch è un plugin di QGIS per interfacciarsi con i servizi di catalogazione metadati, supporto standard del Catalogue Service for the Web (CSW) dell’OGC.
MetaSearch offre un approccio semplice ed intuitivo con un’interfaccia user-friendly per effettuare ricerche in cataloghi di metadati all’interno di QGIS.

Fig. 24.22 Ricerche e risultati di Servizi in MetaSearch¶
24.2.6.2. Lavorare con i cataloghi dei metadati in QGIS¶
MetaSearch is included by default in QGIS, with all of its dependencies, and can be enabled from the QGIS Plugin Manager.
24.2.6.2.1. CSW (Catalog Service for the Web)¶
CSW (Catalog Service for the Web) è una specifica OGC (Open Geospatial Consortium), che definisce un’interfaccia comune per scoprire, esplorare ed interrogare metadati associati ai dati, ai servizi e ad altre possibili risorse.
24.2.6.2.2. Avvio¶
Per avviare MetaSearch, fai click sull’icona oppure seleziona il menù nel menù principale di QGIS. Apparirà la finestra di dialogo MetaSearch. La GUI principale è composta da tre schede: Servizi, Cerca e Impostazioni.
24.2.6.2.3. Managing Catalog Services¶

Fig. 24.23 Managing Catalog Services¶
La scheda Servizi permette all’utente di gestire tutti i servizi di catalogazione disponibili. MetaSearch offre una lista di servizi di catalogo predefiniti, che possono essere integrati premendo il pulsante Aggiungere servizi predefiniti.
To find all listed Catalog Service entries, click the dropdown select box.
To add a Catalog Service entry:
Click the New button
Enter a Name for the service, as well as the URL (endpoint). Note that only the base URL is required (not a full GetCapabilities URL).
If the CSW requires authentication, enter the appropriate User name and Password credentials.
Click OK to add the service to the list of entries.
To edit an existing Catalog Service entry:
Select the entry you would like to edit
Click the Edit button
And modify the Name or URL values
Click OK.
Per cancellare un servizio di catalogazione esistente, sceglielo e premi il pulsante Cancella. Ti verrà richiesta ulteriore conferma alla cancellazione.
MetaSearch permette di caricare e salvare le connessioni usando un file XML. Questo è utile se devi condividere le impostazioni tra più applicazioni. Segue un esempio di file in formato XML.
<?xml version="1.0" encoding="UTF-8"?>
<qgsCSWConnections version="1.0">
<csw name="Data.gov CSW" url="https://catalog.data.gov/csw-all"/>
<csw name="Geonorge - National CSW service for Norway" url="https://www.geonorge.no/geonetwork/srv/eng/csw"/>
<csw name="Geoportale Nazionale - Servizio di ricerca Italiano" url="http://www.pcn.minambiente.it/geoportal/csw"/>
<csw name="LINZ Data Service" url="http://data.linz.govt.nz/feeds/csw"/>
<csw name="Nationaal Georegister (Nederland)" url="http://www.nationaalgeoregister.nl/geonetwork/srv/eng/csw"/>
<csw name="RNDT - Repertorio Nazionale dei Dati Territoriali - Servizio di ricerca" url="http://www.rndt.gov.it/RNDT/CSW"/>
<csw name="UK Location Catalogue Publishing Service" url="http://csw.data.gov.uk/geonetwork/srv/en/csw"/>
<csw name="UNEP/GRID-Geneva Metadata Catalog" url="http://metadata.grid.unep.ch:8080/geonetwork/srv/eng/csw"/>
</qgsCSWConnections>
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.
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 display 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.
24.2.6.2.4. Searching Catalog Services¶

Fig. 24.24 Cercare Servizi di Catalogo¶
La scheda Cerca permette all’utente di cercare servizi di catalogazione per dati e servizi, impostare i parametri di ricerca e visualizzare i risultati.
Sono disponibili i seguenti parametri di ricerca:
Parole chiave: ricerca a testo libero sulle parole chiave;
Da: il servizio di catalogazione su cui effettuare le interrogazioni;
Estensione della mappa: l’area spaziale di interesse su cui effettuare il filtro definita da Xmax, Xmin, Ymax, and Ymin. Fai click su Imposta globalmente per eseguire una ricerca globale, fai click su Estensione della mappa per eseguire una ricerca solo nell’area visibile o immettere manualmente i valori personalizzati come desiderato.
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 header. You can navigate through search results with the directional buttons below the search results.
Select a result and:
click the View Search Results as XML button to open a window with the service response in raw XML format.
se il metadato ha una estensione geografica associata, il rettangolo di delimitazione sarà mostrato sulla mappa;
doppio click su un record ne mostra i metadati con ogni collegamento di accesso associato. Cliccando su un link questo verrà aperto all’interno del browser;
Se il record è un web service dell’OGC (WMS/WMTS, WFS, WCS), il relativo pulsante Aggiungi WMS/WMTS|WFS|WCS verrà abilitato per permettere all’utente di aggiungerlo in QGIS. Quando si fa click su questo pulsante, MetaSearch verificherà che sia un valido servizio OWS. Il servizio verrà aggiunto nel relativo elenco di connessioni QGIS e verrà mostrata la relativa finestra di dialogo per la connessione.

Fig. 24.25 Visualizzazione record Metadati¶
24.2.6.2.5. Impostazioni¶

Fig. 24.26 Impostazioni MetaSearch¶
You can fine tune MetaSearch with the following Settings:
Server Timeout: when searching metadata catalogs, the number of seconds for blocking connection attempt. Default value is 10.
Results paging: when searching metadata catalogs, the number of results to show per page. Default value is 10.