Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with MD_VectorSpatialRepresentation #197

Open
mattCensus opened this issue Aug 2, 2018 · 1 comment
Open

Problem with MD_VectorSpatialRepresentation #197

mattCensus opened this issue Aug 2, 2018 · 1 comment

Comments

@mattCensus
Copy link

Oxygen is throwing a flag for the following code:

mdb:spatialRepresentationInfo
mri:MD_VectorSpatialRepresentation
mri:geometricObjects
mri:MD_GeometricObjects
mri:geometricObjectType
<mri:MD_GeometricObjectTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_GeometricObjectTypeCode"
codeListValue="complex"
codeSpace="001">
complex </mri:MD_GeometricObjectTypeCode>
</mri:geometricObjectType>
mri:geometricObjectCount
gco:Integer56</gco:Integer>
</mri:geometricObjectCount>
</mri:MD_GeometricObjects>
</mri:geometricObjects>
</mri:MD_VectorSpatialRepresentation>
</mdb:spatialRepresentationInfo>

It says one of mcc AbstractGenericName is expected. What am I doing wrong. My interpretation of the UML diagram makes me think I am correct. Any help would be appreciated.

@smrgeoinfo
Copy link
Contributor

MD_VestorSpatialRepresentation is defined in the msr namespace, not the mri namespace.

   <mdb:spatialRepresentationInfo>
      <msr:MD_VectorSpatialRepresentation>
         <msr:geometricObjects>
            <msr:MD_GeometricObjects>
               <msr:geometricObjectType>
                  <msr:MD_GeometricObjectTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_GeometricObjectTypeCode" codeListValue="complex" codeSpace="001">complex</msr:MD_GeometricObjectTypeCode>
               </msr:geometricObjectType>
               <msr:geometricObjectCount>
                  <gco:Integer>56</gco:Integer>
               </msr:geometricObjectCount>
            </msr:MD_GeometricObjects>
         </msr:geometricObjects>
      </msr:MD_VectorSpatialRepresentation>
   </mdb:spatialRepresentationInfo>

validates in Oxygen for me. Make sure you have the correct schema location, you'll need to use the mds schema; this brings msr with it.
in mdb:MD_Metadata element, include attribute
xsi:schemaLocation="http://standards.iso.org/iso/19115/-3/mds/1.0 http://standards.iso.org/iso/19115/-3/mds/1.0/mds.xsd"

Or you could start with mdb in schema location and add msr schema location explicitly (if you're not using any of the other extensions in mds).
mdb:MD_Metadata element, include attribute
xsi:schemaLocation="http://standards.iso.org/iso/19115/-3/mdb/1.0 http://standards.iso.org/iso/19115/-3/mdb/1.0/mdb.xsd
http://standards.iso.org/iso/19115/-3/msr/1.0 http://standards.iso.org/iso/19115/-3/msr/1.0/msr.xsd"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants