Select to view content in your preferred language

ArcGIS Pro Metadata - FGDC CSDGM Standards - Enumerated Domain

739
1
09-20-2023 10:47 AM
Labels (1)
KathleenCrombez1
Occasional Contributor

I am working on a python script that pulls the domain and subtype information from a feature class (or table) and uses that information to update the attribute and entity portion of the metadata.

We are using the FGDC CSDGM standards.

While testing my code I would manually make edits to a test dataset for validation and export the xml files to view the schema changes.

In the ArcGIS Pro attribute editor this is found under Resource > Fields > Entity and Attribute Details

When I add multiple enumerated domain values to an attribute a validation error pops up “at least one type of attribute domain is required.” And I get a red X on the Fields tab.

KathleenCrombez1_0-1695231864162.png

 

KathleenCrombez1_1-1695231864163.png

 

The xml schema it creates for this attribute looks like this:

      <attr>

        <attrlabl>text_field</attrlabl>

        <attrdef>text field definition</attrdef>

        <attrdefs>text field definition source</attrdefs>

        <attrdomv>

          <edom>

            <edomv>v1</edomv>

            <edomvd>value 1</edomvd>

            <edomvds>test definition source</edomvds>

          </edom>

          <edom>

            <edomv>v2</edomv>

            <edomvd>value 2</edomvd>

            <edomvds>test definition source</edomvds>

          </edom>

          <edom>

            <edomv>v3</edomv>

            <edomvd>value 3</edomvd>

            <edomvds>test definition source</edomvds>

          </edom>

        </attrdomv>

There is a single attribute domain value (attrdomv) tag with multiple enumerated domain (edom) tags nested inside of it.

When I run this xml through the USGS metadata validation service (https://www1.usgs.gov/mp/) it reports the following error:

Error

Attribute_Domain_Values (5.1.2.4) permits only one of Enumerated_Domain (5.1.2.4.1) or Range_Domain (5.1.2.4.2) or Codeset_Domain (5.1.2.4.3) or Unrepresentable_Domain (5.1.2.4.4)

 

When I manually alter the schema of the xml file to include multiple attribute domain value (attrdomv) tags each containing a single enumerated domain (edom) tag the error goes away. This is true in both the USGS validator and the built in validator in ArcGIS Pro.

      <attr>

        <attrlabl>text_field</attrlabl>

        <attrdef>text field definition</attrdef>

        <attrdefs>text field definition source</attrdefs>

        <attrdomv>

          <edom>

            <edomv>v1</edomv>

            <edomvd>value 1</edomvd>

            <edomvds>test definition source</edomvds>

          </edom>

        </attrdomv>

        <attrdomv>

          <edom>

            <edomv>v2</edomv>

            <edomvd>value 2</edomvd>

            <edomvds>test definition source</edomvds>

          </edom>

        </attrdomv>

        <attrdomv>

          <edom>

            <edomv>v3</edomv>

            <edomvd>value 3</edomvd>

            <edomvds>test definition source</edomvds>

          </edom>

        </attrdomv>

     

However, the metadata editor now displays strangely for this layer. It is displaying an option to insert a new enumerated domain in between each already established domain.

KathleenCrombez1_2-1695231864169.png

 

KathleenCrombez1_3-1695231864170.png

 

Is this a bug in the metadata editor?

I am working with ArcGIS Pro v2.9.6

Lastly, I just want to confirm that the second example is the proper what to do this. Is it correct that each enumerated domain (edom) tag should be nested inside of its own attribute domain value (attrdomv) tag.

 

Thank you,

Kathleen

1 Reply
EvanThoms1
Occasional Contributor

True, ArcGIS does incorrectly write out CSDGM metadata according to the most recent version of 1998. 

It's explained in detail here, but the short answer is check the 'upgrade' button when you are submitting a file at the USGS metadata validation website and the entity-attribute section will be re-organized.