pycsw
pycsw copied to clipboard
use pygeometa to convert iso19139 to recordgeojson?
https://github.com/geopython/pycsw/blob/bde1825b73f50839a552708bf3fff737f4152abc/pycsw/plugins/profiles/apiso/apiso.py#L675-L697By design pycsw captures a limited subset of iso19139, this subset is then used to populate the recordgeojson of ogcapi-records, which leads to unexpected data loss. I wonder if it would make sense pycsw prepares a recordgeojson as part of the iso19139 ingest and stores it in the database to be returned when the record is requested via ogcapi-records. The pygeometa library could be used to convert iso19139 to recordgeojson via mcf.
Alternatively the pycsw datamodel could be extended to capture additional properties. For us the various contacts with their address details and quality reports with their details are most relevant. I wonder if a similar hierarchical structure could be set up as has been prepared for the distributions/links section.