geopython / geopython/pygeometa

Add support for importing QGIS qmd files

Open
#222 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
127
Forks
52
Avg merge
3d 8h
Merged PRs (30d)
1

Description

As mentioned in this issue https://github.com/geopython/pygeometa/issues/150, it would be very useful to have pygemeta able to export to `qmd` files.

Ad @doublebyte [suggested](https://github.com/geopython/pygeometa/issues/150#issuecomment-1519549365), it would also be useful to import `qmd` files.

`qmd` is an XML format and follows this [schema](https://github.com/qgis/QGIS/blob/master/resources/qgis-base-metadata.xsd). Importing it to `mcf` could enable the export to all current and future supported formats, including [OGC API Records metadata](https://github.com/opengeospatial/ogcapi-records/blob/master/core/openapi/schemas/recordGeoJSON.yaml).

If I understand correctly, the [things to do](https://github.com/geopython/pygeometa/blob/master/docs/content/tutorial.md#adding-a-metadata-schema-to-the-core) should be:

- To put a **qmd** folder in schemas
- To create a `qmd` class who extends [BaseOutputSchema](https://github.com/geopython/pygeometa/blob/master/pygeometa/schemas/base.py)
- This class must implement a method `def import_(self, metadata: str)` to do the mapping from `qmd` to `mcf`
- To register the new schema [here](https://github.com/geopython/pygeometa/blob/master/pygeometa/schemas/__init__.py#L55)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.