Tools for Reading and Writing ISO/OGC Geographic Metadata
geometa provides facilities to manipulate geographic metadata defined with OGC/ISO 19115 and 19139 (XML) standards, including an API to create in R representations of geographic metadata, as defined in the above standards, and write it to XML, or even to read an XML metadata into R.
A mechanism should be put in place to validate metadata. Each subclass of ISOMetadataElement should implement a validate or isValid method that should implement the metadata validation rules specified by the standards:
A first systemic way to implement metadata validation rules is to rely on XML schemas provided with ISO/TS 19139:2007 specification (XML Encoding). In R, the function xmlSchemaValidate from XML package allows to validate xml document vs. schemas. Validation would then be triggered once metadata is encoded to XML.
Metadata validation may be set as option to TRUE by default, FALSE would deactivate the validation. Invalid metadata is not necessarily blocking. This maybe left to user. If not blocking, geometa will report a warning log. If blocking a stop will be called.
Requires support of GM_Point (gml:Point) quid how to do that in R. A good idea would be to rely on rgdal GML driver, but its focus is on feature collections, not raw geometry formats. Exactly the same issue as for EX_BoundingPolygon which requires GM_Object