GetRecordById Operation
Excerpted from OGC 04-021r2 OpenGIS Catalogue Services Specification
1.Introduction
The mandatory GetRecordById request retrieves the default representation of catalogue records using their identifier. The GetRecordById operation is an implementation of the Present operation from the general model. This operation presumes that a previous query has been performed in order to obtain the identifiers that may be used with this operation. For example, records returned by a GetRecords operation may contain references to other records in the catalogue that may be retrieved using the GetRecordById operation. This operation is also a subset of the GetRecords operation, and is included as a convenient short form for retrieving and linking to records in a catalogue.
2.XML-Schema
The following XML-Schema
fragment defines the XML encoding of the GetRecordById operation request:
<xsd:element name="GetRecordById" type="csw:GetRecordByIdType"/>
<xsd:complexType name="GetRecordByIdType">
<xsd:complexContent>
<xsd:extension base="csw:RequestBaseType">
<xsd:sequence>
<xsd:element name="Id" type="xsd:anyURI"/>
<xsd:element ref="csw:ElementSetName" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>