Skip to content

include featurecatalogue information into iso19139:2007 #311

@pvgenuchten

Description

@pvgenuchten

to encode the attributes element of MCF into iso19139, we'd need an extension of the iso19139 file, this extension need to be hosted at some location, maybe we can host it at https://geopython.github.io/pygeometa/iso19139/featurecatalogue.xsd

iso19139:2007 did not encode the featurecatalogue information, although it was suggested in iso19115:2003

it should be possible to extend iso19139:2007 to support featurecataloguing according to iso19115:2003, below is a setup for such extension point

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:gmd="http://www.isotc211.org/2005/gmd"
    xmlns:gco="http://www.isotc211.org/2005/gco"
    xmlns:gfc="http://www.example.org/iso19139/gfc"
    targetNamespace="http://www.example.org/iso19139/gfc"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <!-- Import core ISO 19139 schemas -->
    <xs:import namespace="http://www.isotc211.org/2005/gmd"
               schemaLocation="http://standards.iso.org/iso/19139/20070417/gmd/gmd.xsd"/>

    <xs:import namespace="http://www.isotc211.org/2005/gco"
               schemaLocation="http://standards.iso.org/iso/19139/20070417/gco/gco.xsd"/>

    <xs:import namespace="http://www.isotc211.org/2005/gfc"
           schemaLocation="http://schemas.isotc211.org/19110/gfc.xsd"/>

    <!-- ====================================================== -->
    <!-- MD_FeatureCatalogueDescription_Type                    -->
    <!-- ====================================================== -->

    <xs:complexType name="MD_FeatureCatalogueDescription_Type">
        <xs:complexContent>
            <xs:extension base="gmd:AbstractMD_ContentInformation_Type">
                <xs:sequence>

                    <!-- complianceCode : Boolean -->
                    <xs:element name="complianceCode"
                                type="gco:Boolean_PropertyType"
                                minOccurs="0"/>

                    <!-- language : CharacterString [0..*] -->
                    <xs:element name="language"
                                type="gco:CharacterString_PropertyType"
                                minOccurs="0"
                                maxOccurs="unbounded"/>

                    <!-- includedWithDataset : Boolean -->
                    <xs:element name="includedWithDataset"
                                type="gco:Boolean_PropertyType"
                                minOccurs="0"/>

                    <xs:element name="featureType"
                        type="gfc:FC_FeatureType_PropertyType"
                        minOccurs="0"
                        maxOccurs="unbounded"/>

                    <!-- featureCatalogueCitation : CI_Citation [1..*] -->
                    <xs:element name="featureCatalogueCitation"
                                type="gmd:CI_Citation_PropertyType"
                                minOccurs="1"
                                maxOccurs="unbounded"/>

                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <!-- ====================================================== -->
    <!-- Global element substitutable for MD_ContentInformation -->
    <!-- ====================================================== -->

    <xs:element name="MD_FeatureCatalogueDescription"
                type="gfc:MD_FeatureCatalogueDescription_Type"
                substitutionGroup="gmd:MD_ContentInformation"/>

</xs:schema>

an iso19139.xml file would reference this as:

<gmd:MD_Metadata
  xmlns:gmd="http://www.isotc211.org/2005/gmd"
  xmlns:gco="http://www.isotc211.org/2005/gco"
  xmlns:gfc="http://www.example.org/iso19139/gfc"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="
    http://www.isotc211.org/2005/gmd
      http://standards.iso.org/iso/19139/20070417/gmd/gmd.xsd
    http://www.example.org/iso19139/gfc
      gmd-featurecatalogue-extension.xsd">

and the xml would looks like:

<gmd:MD FeatureCatalogueDescription>
<gmd:featureTypes>
<gfc:featureType>...

relates to #197 and #232

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions