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

GetMetadata response for a layer is invalid (gmd:linkage is expected) #5668

Closed
nmtoken opened this Issue Sep 27, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@nmtoken
Copy link

nmtoken commented Sep 27, 2018

The GetMetadata response for a layer is invalid for example the following request response is invalid because (around line 58)

                  <gmd:electronicMailAddress>
            <gco:CharacterString>enquiries@bgs.ac.uk</gco:CharacterString>
          </gmd:electronicMailAddress>
        </gmd:CI_Address>
      </gmd:address>
      <gmd:onlineResource>
        <gmd:CI_OnlineResource/>
      </gmd:onlineResource>
    </gmd:CI_Contact>

The content of element 'gmd:CI_OnlineResource' is not complete. One of '{"http://www.isotc211.org/2005/gmd":linkage}' is expected.

The expectation here is something like:

          </gmd:electronicMailAddress>
        </gmd:CI_Address>
      </gmd:address>
      <gmd:onlineResource>
        <gmd:CI_OnlineResource>
          <gmd:linkage><gmd:URL>http://www.bgs.ac.uk/</gmd:URL></gmd:linkage>
        </gmd:CI_OnlineResource>
      </gmd:onlineResource>
    </gmd:CI_Contact>

Where the linkage is the OnlineResource of the service metadata. As can be seen in the GetCapabilities response.

<!-- MapServer version 7.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<Service>
  <Name>WMS</Name>
  <Title>Uganda ARGI pilot project data service</Title>
  <Abstract>This is a test web service constructed to help demonstrate ways of sharing data for the ARGI Uganda pilot project</Abstract>
  <KeywordList>
      <Keyword>Uganda</Keyword>
      <Keyword>MD_LANG@ENG</Keyword>
      <Keyword>MD_DATE@2018-09-18</Keyword>
      <Keyword vocabulary="GEMET">Geology</Keyword>
      <Keyword vocabulary="ISO">infoMapAccessService</Keyword>
  </KeywordList>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.bgs.ac.uk/"/>

as specified through: "OWS_SERVICE_ONLINERESOURCE" "http://www.bgs.ac.uk/"

@tomkralidis tomkralidis self-assigned this Oct 19, 2018

tomkralidis added a commit to tomkralidis/mapserver that referenced this issue Oct 20, 2018

jmckenna added a commit that referenced this issue Oct 22, 2018

Merge pull request #5686 from tomkralidis/issue-5668
fix ISO metadata link validity (#5668)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.