geopython/pygeometa

Add support for QGIS metadata storage format qmd

Opened this issue · 4 comments

I would like to contribute in pygeometa by adding the support of the QGIS metadata *.qmd storage file, which is XMLbased

I have seen there are multiple ways to do so

  • Use a pure python approach like for DCAT (if I am correct)
  • use a Jinja template file such as the ISO formats
  • Use a yml file ?

What do you think is the best approach here ? I would say Jinja

I would like to contribute in pygeometa by adding the support of the QGIS metadata *.qmd storage file, which is XMLbased

What is the workflow then? Creating a QGIS resource QMD from an MCF?

I have seen there are multiple ways to do so

* Use a pure python approach like for DCAT (if I am correct)

* use a Jinja template file such as the ISO formats

* Use a yml file ?

What do you think is the best approach here ? I would say Jinja

Agree. While you could use any approach given the design of the pygeometa base output schema plugins, Jinja2 is probably the most approachable overall. You could also use lxml or xml.etree if you want/need finer control.

I would like to contribute in pygeometa by adding the support of the QGIS metadata *.qmd storage file, which is XMLbased

What is the workflow then? Creating a QGIS resource QMD from an MCF?

IMHO, the most interesting use case would be the other way round. QGIS already has a very nice UI for authoring metadata. However, it only supports one schema, which is not very helpful in the majority of use cases. It would be really helpful to be able to import this file in pygeometa and apply a transformation to another schema (e.g.: OGC API Records, ISO1915, STAC). Then people could use QGIS+pygeometa as a pipeline for authoring standards based metadata 🙂

@doublebyte1 good idea. Please open a separate issue?

@doublebyte1 good idea. Please open a separate issue?

@tomkralidis There is an issue from @PascalLike here: #222