Skip to content
Mie Winstrup edited this page Apr 20, 2016 · 17 revisions

Purpose of the plugin:

A QGIS plugin to ease handling of metadatainformation for new and existing tables in Postgresdatabase.

How does it work?

Adding metadata to a new file:

The dialogbox to enter metadatainformation is automatically launched when a new file is added to a database with the import function in DB Manager or created as a new file with DB Manager.

Adding metadata to an existing file:

Metadata information to existing tables can be added with the MetaMan-tool from either the Plugin-menu or with the MetaMan-botton. In the dialogue box, navigate to the file to which you want to add metadatainformation and enter the metadata-information.

Changing metadata of an existing file:

Metadata information to existing tables can be changed with the MetaMan-tool from either the Plugin-menu or with the MetaMan-botton. In the dialogue box, navigate to the file to which you want to edit metadatainformation and enter the new metadata-information.

Installation of metadatafunctionality-plugin:

The plugin is currently not available from QGIS official repository, hence the bit more complicated installation:

  1. Save the plugin in the QGIS-plugin folder, on windows-machines often in C:\Users\USERNAME.qgis2\python\plugins

  2. Install the plugin with QGIS respository, search for metadatafunctionality

The metadata-plugin is now added to the Plugins-'faneblad' and a button is added. The metadata plugin consists of two dialogue boxes - the dialogue box to enter the metadata information and a dialogue box to specificy the database where the table in which metadata is stored and the required connection information to the database.

[Picture would be good here]

To get started - the first time:

  1. Create a table to store metadata in a postgresdatabase. The table needs to follow a specific structure - to create a table you can use the sql found under 'Database definition' in the MetaMan Settings-dialoguebox.

  2. In the MetaMan Settings-dialoguebox, specify the connection (host, port, username) to the database in which the metadata is stored. Test the connection to the table with 'Test Connection'.

Clone this wiki locally