GetRecordById operation

The mandatory GetRecordById request retrieves a representation (per default the default representation) of one or more specific catalogue records using their identifier(s) (which is mapped to the fileidentifier of an ISO19139 document).

Minimal structure: http://<csw endpoint>?request=GetRecordById&service=CSW&version=2.0.2&id=<fileIdentifier>[,<fileIdentifier>]*

Optional but important request parameters

OUTPUTSCHEMA

By "per default the default representation" it means that a record's return format might not be ISO19139 but Dublin Core or an older form of ISO19115. Hence, in order to simplify our life we'll work always with a single representation, and to do so we should always use the OUTPUTSCHEMA request parameter with the value http://www.isotc211.org/2005/gmd.

ELEMENTSETNAME

The ELEMENTSETNAME takes one of the values [brief|summary|full]. Default value is "summary". It aims at limiting the number of properties returned for a metadata record, supposedly going from the most fundamental ones to the full set of (available) properties for a given record.

Examples

 http://localhost:8080/geonetwork/srv/en/csw?request=GetRecordById&service=CSW&version=2.0.2&id=a669c913-1d64-47a4-8467-f15dab218400&ELEMENTSETNAME=full&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd

POST method version:

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecordById xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
    service="CSW"
    version="2.0.2"
    outputSchema="http://www.isotc211.org/2005/gmd">
  <csw:Id>a669c913-1d64-47a4-8467-f15dab218400</csw:Id>
  <csw:ElementSetName>full</csw:ElementSetName>
</csw:GetRecordById>

Response

The GetRecordById response is as follow:

<csw:GetRecordByIdResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
  <gmd:MD_Metadata 
    xmlns:gmd="http://www.isotc211.org/2005/gmd" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:gml="http://www.opengis.net/gml" 
    xmlns:gts="http://www.isotc211.org/2005/gts" 
    xmlns:gco="http://www.isotc211.org/2005/gco" 
    xmlns:geonet="http://www.fao.org/geonetwork">
    <gmd:fileIdentifier>.....
  </gmd:MD_Metadata>
</csw:GetRecordByIdResponse>

That is, CSW will return a gmd:MD_Metadata element (record) for each requested one. Note GeoNetwork in particular will probably declare the ISO 19139 namespaces on each gmd:MD_Metadata because the format the records are returned is not fixed, but in this case determined by the OUTPUTSCHEMA parameter.

The xsd for the response is:

<xsd:complexType name="GetRecordByIdResponseType"/>
 <xsd:sequence>
  <xsd:choice>
   <xsd:element ref="csw:AbstractRecord" minOccurs="0" maxOccurs="unbounded"> 
    <xsd:any processContents="strict" namespace="##other" minOccurs="0" maxOccurs="unbounded"/> 
   </xsd:element>
  </xsd:choice>
 </xsd:sequence>
</xsd:complexType>

Brief response

Sample response for the request  http://localhost:8080/geonetwork/srv/en/csw?request=GetRecordById&service=CSW&version=2.0.2&id=a669c913-1d64-47a4-8467-f15dab218400&ELEMENTSETNAME=brief&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecordByIdResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
  <gmd:MD_Metadata 
    xmlns:gmd="http://www.isotc211.org/2005/gmd" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:gml="http://www.opengis.net/gml" 
    xmlns:gts="http://www.isotc211.org/2005/gts" 
    xmlns:gco="http://www.isotc211.org/2005/gco" 
    xmlns:geonet="http://www.fao.org/geonetwork">
    <gmd:fileIdentifier>
      <gco:CharacterString>a669c913-1d64-47a4-8467-f15dab218400</gco:CharacterString>
    </gmd:fileIdentifier>
    <gmd:identificationInfo>
      <gmd:MD_DataIdentification>
        <gmd:citation>

          <gmd:CI_Citation>
            <gmd:title>
              <gco:CharacterString>Hydrological Basins in Africa (Sample record, please remove!)</gco:CharacterString>
            </gmd:title>
          </gmd:CI_Citation>
        </gmd:citation>
        <gmd:graphicOverview>
          <gmd:MD_BrowseGraphic>

            <gmd:fileName>
              <gco:CharacterString>thumbnail_s.gif</gco:CharacterString>
            </gmd:fileName>
          </gmd:MD_BrowseGraphic>
        </gmd:graphicOverview>
        <gmd:graphicOverview>
          <gmd:MD_BrowseGraphic>
            <gmd:fileName>

              <gco:CharacterString>thumbnail.gif</gco:CharacterString>
            </gmd:fileName>
          </gmd:MD_BrowseGraphic>
        </gmd:graphicOverview>
        <gmd:extent>
          <gmd:EX_Extent>
            <gmd:geographicElement>
              <gmd:EX_GeographicBoundingBox>

                <gmd:westBoundLongitude>
                  <gco:Decimal>-17.3</gco:Decimal>
                </gmd:westBoundLongitude>
                <gmd:southBoundLatitude>
                  <gco:Decimal>-34.6</gco:Decimal>
                </gmd:southBoundLatitude>
                <gmd:eastBoundLongitude>
                  <gco:Decimal>51.1</gco:Decimal>

                </gmd:eastBoundLongitude>
                <gmd:northBoundLatitude>
                  <gco:Decimal>38.2</gco:Decimal>
                </gmd:northBoundLatitude>
              </gmd:EX_GeographicBoundingBox>
            </gmd:geographicElement>
          </gmd:EX_Extent>
        </gmd:extent>

      </gmd:MD_DataIdentification>
    </gmd:identificationInfo>
  </gmd:MD_Metadata>
</csw:GetRecordByIdResponse>

Summary response

Sample response for the request  http://localhost:8080/geonetwork/srv/en/csw?request=GetRecordById&service=CSW&version=2.0.2&id=a669c913-1d64-47a4-8467-f15dab218400&ELEMENTSETNAME=summary&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecordByIdResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
  <gmd:MD_Metadata 
    xmlns:gmd="http://www.isotc211.org/2005/gmd" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:gml="http://www.opengis.net/gml" 
    xmlns:gts="http://www.isotc211.org/2005/gts" 
    xmlns:gco="http://www.isotc211.org/2005/gco" 
    xmlns:geonet="http://www.fao.org/geonetwork">
    <gmd:fileIdentifier>
      <gco:CharacterString>a669c913-1d64-47a4-8467-f15dab218400</gco:CharacterString>
    </gmd:fileIdentifier>
    <gmd:language>
      <gco:CharacterString>eng</gco:CharacterString>
    </gmd:language>

    <gmd:characterSet>
      <gmd:MD_CharacterSetCode codeListValue="utf8" codeList="./resources/codeList.xml#MD_CharacterSetCode" />
    </gmd:characterSet>
    <gmd:dateStamp>
      <gco:DateTime>2007-11-06T12:13:00</gco:DateTime>
    </gmd:dateStamp>
    <gmd:metadataStandardName>
      <gco:CharacterString>ISO 19115:2003/19139</gco:CharacterString>

    </gmd:metadataStandardName>
    <gmd:metadataStandardVersion>
      <gco:CharacterString>1.0</gco:CharacterString>
    </gmd:metadataStandardVersion>
    <gmd:referenceSystemInfo>
      <gmd:MD_ReferenceSystem>
        <gmd:referenceSystemIdentifier>
          <gmd:RS_Identifier>

            <gmd:code>
              <gco:CharacterString>WGS 1984</gco:CharacterString>
            </gmd:code>
          </gmd:RS_Identifier>
        </gmd:referenceSystemIdentifier>
      </gmd:MD_ReferenceSystem>
    </gmd:referenceSystemInfo>
    <gmd:identificationInfo>

      <gmd:MD_DataIdentification>
        <gmd:citation>
          <gmd:CI_Citation>
            <gmd:title>
              <gco:CharacterString>Hydrological Basins in Africa (Sample record, please remove!)</gco:CharacterString>
            </gmd:title>
          </gmd:CI_Citation>
        </gmd:citation>

        <gmd:abstract>
          <gco:CharacterString>Major hydrological basins and their sub-basins. This dataset divides the African continent according to its hydrological characteristics.
The dataset consists of the following information:- numerical code and name of the major basin (MAJ_BAS and MAJ_NAME); - area of the major basin in square km (MAJ_AREA); - numerical code and name of the sub-basin (SUB_BAS and SUB_NAME); - area of the sub-basin in square km (SUB_AREA); - numerical code of the sub-basin towards which the sub-basin flows (TO_SUBBAS) (the codes -888 and -999 have been assigned respectively to internal sub-basins and to sub-basins draining into the sea)</gco:CharacterString>
        </gmd:abstract>
        <gmd:graphicOverview>
          <gmd:MD_BrowseGraphic>
            <gmd:fileName>
              <gco:CharacterString>thumbnail_s.gif</gco:CharacterString>
            </gmd:fileName>

          </gmd:MD_BrowseGraphic>
        </gmd:graphicOverview>
        <gmd:graphicOverview>
          <gmd:MD_BrowseGraphic>
            <gmd:fileName>
              <gco:CharacterString>thumbnail.gif</gco:CharacterString>
            </gmd:fileName>
          </gmd:MD_BrowseGraphic>

        </gmd:graphicOverview>
        <gmd:resourceConstraints>
          <gmd:MD_Constraints>
            <gmd:useLimitation>
              <gco:CharacterString />
            </gmd:useLimitation>
          </gmd:MD_Constraints>
        </gmd:resourceConstraints>
        <gmd:spatialRepresentationType>

          <gmd:MD_SpatialRepresentationTypeCode codeList="./resources/codeList.xml#MD_SpatialRepresentationTypeCode" codeListValue="vector" />
        </gmd:spatialRepresentationType>
        <gmd:spatialResolution>
          <gmd:MD_Resolution>
            <gmd:equivalentScale>
              <gmd:MD_RepresentativeFraction>
                <gmd:denominator>
                  <gco:Integer>5000000</gco:Integer>

                </gmd:denominator>
              </gmd:MD_RepresentativeFraction>
            </gmd:equivalentScale>
          </gmd:MD_Resolution>
        </gmd:spatialResolution>
        <gmd:language>
          <gco:CharacterString>eng</gco:CharacterString>
        </gmd:language>

        <gmd:characterSet>
          <gmd:MD_CharacterSetCode codeList="./resources/codeList.xml#MD_CharacterSetCode" codeListValue="utf8" />
        </gmd:characterSet>
        <gmd:topicCategory>
          <gmd:MD_TopicCategoryCode>inlandWaters</gmd:MD_TopicCategoryCode>
        </gmd:topicCategory>
        <gmd:extent>
          <gmd:EX_Extent>

            <gmd:geographicElement>
              <gmd:EX_GeographicBoundingBox>
                <gmd:westBoundLongitude>
                  <gco:Decimal>-17.3</gco:Decimal>
                </gmd:westBoundLongitude>
                <gmd:southBoundLatitude>
                  <gco:Decimal>-34.6</gco:Decimal>
                </gmd:southBoundLatitude>

                <gmd:eastBoundLongitude>
                  <gco:Decimal>51.1</gco:Decimal>
                </gmd:eastBoundLongitude>
                <gmd:northBoundLatitude>
                  <gco:Decimal>38.2</gco:Decimal>
                </gmd:northBoundLatitude>
              </gmd:EX_GeographicBoundingBox>
            </gmd:geographicElement>

          </gmd:EX_Extent>
        </gmd:extent>
      </gmd:MD_DataIdentification>
    </gmd:identificationInfo>
    <gmd:distributionInfo>
      <gmd:MD_Distribution>
        <gmd:distributionFormat>
          <gmd:MD_Format>
            <gmd:name>

              <gco:CharacterString>ShapeFile</gco:CharacterString>
            </gmd:name>
            <gmd:version>
              <gco:CharacterString>Grass Version 6.1</gco:CharacterString>
            </gmd:version>
          </gmd:MD_Format>
        </gmd:distributionFormat>
        <gmd:transferOptions>

          <gmd:MD_DigitalTransferOptions>
            <gmd:onLine>
              <gmd:CI_OnlineResource>
                <gmd:linkage>
                  <gmd:URL>http://www.fao.org/ag/AGL/aglw/aquastat/watresafrica/index.stm</gmd:URL>
                </gmd:linkage>
              </gmd:CI_OnlineResource>
            </gmd:onLine>

            <gmd:onLine>
              <gmd:CI_OnlineResource>
                <gmd:linkage>
                  <gmd:URL>http://localhost:8080/geonetwork/srv/en/resources.get?id=10&amp;fname=basins.zip&amp;access=private</gmd:URL>
                </gmd:linkage>
              </gmd:CI_OnlineResource>
            </gmd:onLine>

            <gmd:onLine>
              <gmd:CI_OnlineResource>
                <gmd:linkage>
                  <gmd:URL>http://geonetwork3.fao.org/ows/296</gmd:URL>
                </gmd:linkage>
              </gmd:CI_OnlineResource>
            </gmd:onLine>
          </gmd:MD_DigitalTransferOptions>

        </gmd:transferOptions>
      </gmd:MD_Distribution>
    </gmd:distributionInfo>
    <gmd:dataQualityInfo>
      <gmd:DQ_DataQuality>
        <gmd:lineage>
          <gmd:LI_Lineage>
            <gmd:statement>
              <gco:CharacterString>The linework of the map is obtained by delineating drainage basin boundaries from an hydrologically corrected digital elevation model with a resolution of 1 * 1 km.</gco:CharacterString>

            </gmd:statement>
          </gmd:LI_Lineage>
        </gmd:lineage>
      </gmd:DQ_DataQuality>
    </gmd:dataQualityInfo>
  </gmd:MD_Metadata>
</csw:GetRecordByIdResponse>

Full response

Sample response for the request  http://localhost:8080/geonetwork/srv/en/csw?request=GetRecordById&service=CSW&version=2.0.2&id=a669c913-1d64-47a4-8467-f15dab218400&ELEMENTSETNAME=full&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecordByIdResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
  <gmd:MD_Metadata 
    xmlns:gmd="http://www.isotc211.org/2005/gmd" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:gml="http://www.opengis.net/gml" 
    xmlns:gts="http://www.isotc211.org/2005/gts" 
    xmlns:gco="http://www.isotc211.org/2005/gco" 
    xmlns:geonet="http://www.fao.org/geonetwork">
    <gmd:fileIdentifier>
      <gco:CharacterString>a669c913-1d64-47a4-8467-f15dab218400</gco:CharacterString>
    </gmd:fileIdentifier>
    <gmd:language>
      <gco:CharacterString>eng</gco:CharacterString>
    </gmd:language>

    <gmd:characterSet>
      <gmd:MD_CharacterSetCode codeListValue="utf8" codeList="./resources/codeList.xml#MD_CharacterSetCode" />
    </gmd:characterSet>
    <gmd:contact>
      <gmd:CI_ResponsibleParty>
        <gmd:individualName>
          <gco:CharacterString>Jippe Hoogeveen</gco:CharacterString>
        </gmd:individualName>

        <gmd:organisationName>
          <gco:CharacterString>FAO - NRCW</gco:CharacterString>
        </gmd:organisationName>
        <gmd:positionName>
          <gco:CharacterString>Technical Officer</gco:CharacterString>
        </gmd:positionName>
        <gmd:contactInfo>
          <gmd:CI_Contact>

            <gmd:phone>
              <gmd:CI_Telephone>
                <gmd:voice>
                  <gco:CharacterString />
                </gmd:voice>
                <gmd:facsimile>
                  <gco:CharacterString />
                </gmd:facsimile>
              </gmd:CI_Telephone>

            </gmd:phone>
            <gmd:address>
              <gmd:CI_Address>
                <gmd:deliveryPoint>
                  <gco:CharacterString>Viale delle Terme di Caracalla</gco:CharacterString>
                </gmd:deliveryPoint>
                <gmd:city>
                  <gco:CharacterString>Rome</gco:CharacterString>

                </gmd:city>
                <gmd:administrativeArea>
                  <gco:CharacterString />
                </gmd:administrativeArea>
                <gmd:postalCode>
                  <gco:CharacterString>00153</gco:CharacterString>
                </gmd:postalCode>
                <gmd:country>

                  <gco:CharacterString>Italy</gco:CharacterString>
                </gmd:country>
                <gmd:electronicMailAddress>
                  <gco:CharacterString>jippe.hoogeveen@fao.org</gco:CharacterString>
                </gmd:electronicMailAddress>
              </gmd:CI_Address>
            </gmd:address>
          </gmd:CI_Contact>

        </gmd:contactInfo>
        <gmd:role>
          <gmd:CI_RoleCode codeList="./resources/codeList.xml#CI_RoleCode" codeListValue="pointOfContact" />
        </gmd:role>
      </gmd:CI_ResponsibleParty>
    </gmd:contact>
    <gmd:dateStamp>
      <gco:DateTime>2007-11-06T12:13:00</gco:DateTime>

    </gmd:dateStamp>
    <gmd:metadataStandardName>
      <gco:CharacterString>ISO 19115:2003/19139</gco:CharacterString>
    </gmd:metadataStandardName>
    <gmd:metadataStandardVersion>
      <gco:CharacterString>1.0</gco:CharacterString>
    </gmd:metadataStandardVersion>
    <gmd:spatialRepresentationInfo />

    <gmd:referenceSystemInfo>
      <gmd:MD_ReferenceSystem>
        <gmd:referenceSystemIdentifier>
          <gmd:RS_Identifier>
            <gmd:code>
              <gco:CharacterString>WGS 1984</gco:CharacterString>
            </gmd:code>
          </gmd:RS_Identifier>

        </gmd:referenceSystemIdentifier>
      </gmd:MD_ReferenceSystem>
    </gmd:referenceSystemInfo>
    <gmd:identificationInfo>
      <gmd:MD_DataIdentification>
        <gmd:citation>
          <gmd:CI_Citation>
            <gmd:title>
              <gco:CharacterString>Hydrological Basins in Africa (Sample record, please remove!)</gco:CharacterString>

            </gmd:title>
            <gmd:date>
              <gmd:CI_Date>
                <gmd:date>
                  <gco:DateTime>2000-07-19T14:45:00</gco:DateTime>
                </gmd:date>
                <gmd:dateType>
                  <gmd:CI_DateTypeCode codeList="./resources/codeList.xml#CI_DateTypeCode" codeListValue="creation" />

                </gmd:dateType>
              </gmd:CI_Date>
            </gmd:date>
            <gmd:edition>
              <gco:CharacterString>First</gco:CharacterString>
            </gmd:edition>
            <gmd:presentationForm>
              <gmd:CI_PresentationFormCode codeList="./resources/codeList.xml#CI_PresentationFormCode" codeListValue="mapDigital" />

            </gmd:presentationForm>
          </gmd:CI_Citation>
        </gmd:citation>
        <gmd:abstract>
          <gco:CharacterString>Major hydrological basins and their sub-basins. This dataset divides the African continent according to its hydrological characteristics.
The dataset consists of the following information:- numerical code and name of the major basin (MAJ_BAS and MAJ_NAME); - area of the major basin in square km (MAJ_AREA); - numerical code and name of the sub-basin (SUB_BAS and SUB_NAME); - area of the sub-basin in square km (SUB_AREA); - numerical code of the sub-basin towards which the sub-basin flows (TO_SUBBAS) (the codes -888 and -999 have been assigned respectively to internal sub-basins and to sub-basins draining into the sea)</gco:CharacterString>
        </gmd:abstract>
        <gmd:purpose>
          <gco:CharacterString>This dataset is developed as part of a GIS-based information system on water resources for the African continent. It has been published in the framework of the AQUASTAT - programme of the Land and Water Division of the Food and Agriculture Organization of the United Nations, as part of FAO Land and Water Digital Media Series #13: "Atlas of Water Resources and Irrigation in Africa".

For a wider distribution and to support other projects at FAO this map is also distributed in a DVD as part of a publication entitled: "Jenness, J.; Dooley, J.; Aguilar-Manjarrez, J.; Riva, C. African Water Resource Database. GIS-based tools for inland aquatic resource management. 2. Technical manual and workbook. CIFA Technical Paper. No. 33, Part 2. Rome, FAO. 2007. 308 p."</gco:CharacterString>

        </gmd:purpose>
        <gmd:status>
          <gmd:MD_ProgressCode codeList="./resources/codeList.xml#MD_ProgressCode" codeListValue="completed" />
        </gmd:status>
        <gmd:resourceMaintenance>
          <gmd:MD_MaintenanceInformation>
            <gmd:maintenanceAndUpdateFrequency>
              <gmd:MD_MaintenanceFrequencyCode codeList="./resources/codeList.xml#MD_MaintenanceFrequencyCode" codeListValue="asNeeded" />
            </gmd:maintenanceAndUpdateFrequency>

          </gmd:MD_MaintenanceInformation>
        </gmd:resourceMaintenance>
        <gmd:graphicOverview>
          <gmd:MD_BrowseGraphic>
            <gmd:fileName>
              <gco:CharacterString>thumbnail_s.gif</gco:CharacterString>
            </gmd:fileName>
            <gmd:fileDescription>

              <gco:CharacterString>thumbnail</gco:CharacterString>
            </gmd:fileDescription>
            <gmd:fileType>
              <gco:CharacterString>gif</gco:CharacterString>
            </gmd:fileType>
          </gmd:MD_BrowseGraphic>
        </gmd:graphicOverview>
        <gmd:graphicOverview>

          <gmd:MD_BrowseGraphic>
            <gmd:fileName>
              <gco:CharacterString>thumbnail.gif</gco:CharacterString>
            </gmd:fileName>
            <gmd:fileDescription>
              <gco:CharacterString>large_thumbnail</gco:CharacterString>
            </gmd:fileDescription>
            <gmd:fileType>

              <gco:CharacterString>gif</gco:CharacterString>
            </gmd:fileType>
          </gmd:MD_BrowseGraphic>
        </gmd:graphicOverview>
        <gmd:descriptiveKeywords>
          <gmd:MD_Keywords>
            <gmd:keyword>
              <gco:CharacterString>watersheds</gco:CharacterString>

            </gmd:keyword>
            <gmd:keyword>
              <gco:CharacterString>river basins</gco:CharacterString>
            </gmd:keyword>
            <gmd:keyword>
              <gco:CharacterString>water resources</gco:CharacterString>
            </gmd:keyword>
            <gmd:keyword>

              <gco:CharacterString>hydrology</gco:CharacterString>
            </gmd:keyword>
            <gmd:keyword>
              <gco:CharacterString>AQUASTAT</gco:CharacterString>
            </gmd:keyword>
            <gmd:keyword>
              <gco:CharacterString>AWRD</gco:CharacterString>

            </gmd:keyword>
            <gmd:type>
              <gmd:MD_KeywordTypeCode codeList="./resources/codeList.xml#MD_KeywordTypeCode" codeListValue="theme" />
            </gmd:type>
          </gmd:MD_Keywords>
        </gmd:descriptiveKeywords>
        <gmd:descriptiveKeywords>
          <gmd:MD_Keywords>
            <gmd:keyword>

              <gco:CharacterString>Africa</gco:CharacterString>
            </gmd:keyword>
            <gmd:type>
              <gmd:MD_KeywordTypeCode codeList="./resources/codeList.xml#MD_KeywordTypeCode" codeListValue="place" />
            </gmd:type>
          </gmd:MD_Keywords>
        </gmd:descriptiveKeywords>
        <gmd:resourceConstraints>

          <gmd:MD_Constraints>
            <gmd:useLimitation>
              <gco:CharacterString />
            </gmd:useLimitation>
          </gmd:MD_Constraints>
        </gmd:resourceConstraints>
        <gmd:spatialRepresentationType>
          <gmd:MD_SpatialRepresentationTypeCode codeList="./resources/codeList.xml#MD_SpatialRepresentationTypeCode" codeListValue="vector" />
        </gmd:spatialRepresentationType>

        <gmd:spatialResolution>
          <gmd:MD_Resolution>
            <gmd:equivalentScale>
              <gmd:MD_RepresentativeFraction>
                <gmd:denominator>
                  <gco:Integer>5000000</gco:Integer>
                </gmd:denominator>
              </gmd:MD_RepresentativeFraction>

            </gmd:equivalentScale>
          </gmd:MD_Resolution>
        </gmd:spatialResolution>
        <gmd:language>
          <gco:CharacterString>eng</gco:CharacterString>
        </gmd:language>
        <gmd:characterSet>
          <gmd:MD_CharacterSetCode codeList="./resources/codeList.xml#MD_CharacterSetCode" codeListValue="utf8" />

        </gmd:characterSet>
        <gmd:topicCategory>
          <gmd:MD_TopicCategoryCode>inlandWaters</gmd:MD_TopicCategoryCode>
        </gmd:topicCategory>
        <gmd:extent>
          <gmd:EX_Extent>
            <gmd:temporalElement>
              <gmd:EX_TemporalExtent>

                <gmd:extent>
                  <gml:TimePeriod gml:id="timeperiod1">
                    <gml:beginPosition>2006-01-01T04:29:00</gml:beginPosition>
                    <gml:endPosition>2008-01-08T04:29:00</gml:endPosition>
                  </gml:TimePeriod>
                </gmd:extent>
              </gmd:EX_TemporalExtent>
            </gmd:temporalElement>

          </gmd:EX_Extent>
        </gmd:extent>
        <gmd:extent>
          <gmd:EX_Extent>
            <gmd:geographicElement>
              <gmd:EX_GeographicBoundingBox>
                <gmd:westBoundLongitude>
                  <gco:Decimal>-17.3</gco:Decimal>

                </gmd:westBoundLongitude>
                <gmd:eastBoundLongitude>
                  <gco:Decimal>51.1</gco:Decimal>
                </gmd:eastBoundLongitude>
                <gmd:southBoundLatitude>
                  <gco:Decimal>-34.6</gco:Decimal>
                </gmd:southBoundLatitude>
                <gmd:northBoundLatitude>

                  <gco:Decimal>38.2</gco:Decimal>
                </gmd:northBoundLatitude>
              </gmd:EX_GeographicBoundingBox>
            </gmd:geographicElement>
          </gmd:EX_Extent>
        </gmd:extent>
        <gmd:supplementalInformation>
          <gco:CharacterString>You can customize the template to suit your needs. You can add and remove fields and fill out default information (e.g. contact details). Fields you can not change in the default view may be accessible in the more comprehensive (and more complex) advanced view. You can even use the XML editor to create custom structures, but they have to be validated by the system, so know what you do :-)</gco:CharacterString>

        </gmd:supplementalInformation>
      </gmd:MD_DataIdentification>
    </gmd:identificationInfo>
    <gmd:distributionInfo>
      <gmd:MD_Distribution>
        <gmd:distributionFormat>
          <gmd:MD_Format>
            <gmd:name>
              <gco:CharacterString>ShapeFile</gco:CharacterString>

            </gmd:name>
            <gmd:version>
              <gco:CharacterString>Grass Version 6.1</gco:CharacterString>
            </gmd:version>
          </gmd:MD_Format>
        </gmd:distributionFormat>
        <gmd:transferOptions>
          <gmd:MD_DigitalTransferOptions>

            <gmd:onLine>
              <gmd:CI_OnlineResource>
                <gmd:linkage>
                  <gmd:URL>http://www.fao.org/ag/AGL/aglw/aquastat/watresafrica/index.stm</gmd:URL>
                </gmd:linkage>
                <gmd:protocol>
                  <gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
                </gmd:protocol>

                <gmd:name>
                  <gco:CharacterString />
                </gmd:name>
                <gmd:description>
                  <gco:CharacterString>Online link to the  'Water Resources and Irrigation in Africa'- website</gco:CharacterString>
                </gmd:description>
              </gmd:CI_OnlineResource>
            </gmd:onLine>

            <gmd:onLine>
              <gmd:CI_OnlineResource>
                <gmd:linkage>
                  <gmd:URL>http://localhost:8080/geonetwork/srv/en/resources.get?id=10&amp;fname=basins.zip&amp;access=private</gmd:URL>
                </gmd:linkage>
                <gmd:protocol>
                  <gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString>

                </gmd:protocol>
                <gmd:name>
                  <gco:CharacterString>basins.zip</gco:CharacterString>
                </gmd:name>
                <gmd:description>
                  <gco:CharacterString>Hydrological basins in Africa (Shapefile Format)</gco:CharacterString>
                </gmd:description>
              </gmd:CI_OnlineResource>

            </gmd:onLine>
            <gmd:onLine>
              <gmd:CI_OnlineResource>
                <gmd:linkage>
                  <gmd:URL>http://geonetwork3.fao.org/ows/296</gmd:URL>
                </gmd:linkage>
                <gmd:protocol>
                  <gco:CharacterString>OGC:WMS-1.1.1-http-get-map</gco:CharacterString>

                </gmd:protocol>
                <gmd:name>
                  <gco:CharacterString>hydrological_basins</gco:CharacterString>
                </gmd:name>
                <gmd:description>
                  <gco:CharacterString>Hydrological basins in Africa</gco:CharacterString>
                </gmd:description>
              </gmd:CI_OnlineResource>

            </gmd:onLine>
          </gmd:MD_DigitalTransferOptions>
        </gmd:transferOptions>
      </gmd:MD_Distribution>
    </gmd:distributionInfo>
    <gmd:dataQualityInfo>
      <gmd:DQ_DataQuality>
        <gmd:scope>
          <gmd:DQ_Scope>

            <gmd:level>
              <gmd:MD_ScopeCode codeList="./resources/codeList.xml#MD_ScopeCode" codeListValue="dataset" />
            </gmd:level>
          </gmd:DQ_Scope>
        </gmd:scope>
        <gmd:lineage>
          <gmd:LI_Lineage>
            <gmd:statement>
              <gco:CharacterString>The linework of the map is obtained by delineating drainage basin boundaries from an hydrologically corrected digital elevation model with a resolution of 1 * 1 km.</gco:CharacterString>

            </gmd:statement>
          </gmd:LI_Lineage>
        </gmd:lineage>
      </gmd:DQ_DataQuality>
    </gmd:dataQualityInfo>
  </gmd:MD_Metadata>
</csw:GetRecordByIdResponse>

back to CSW_sample_requests_and_responses