<?xml version="1.0" encoding="UTF-8"?>
<csw:Capabilities version="2.0.2"
  xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:gml="http://www.opengis.net/gml"
  xmlns:ows="http://www.opengis.net/ows"
  xmlns:xlink="http://www.w3.org/1999/xlink">
  <ows:ServiceIdentification>
    <ows:Title>Common Spatial Data Infrastructure (CSDI) Portal</ows:Title>
    <ows:Abstract>CSDI Portal is an entry point of CSDI (a Spatial Data Infrastructure of Hong Kong) which enables users to discover, share, access and use of spatial data contributing from different B/Ds and public organization. The Portal is riding on government cloud-based infrastructure and aims to develop a scalable and secured common sharing platform of spatial data across government departments and public.</ows:Abstract>
    <ows:Keywords>
      <ows:Keyword>Address</ows:Keyword>
	  <ows:Keyword>Administrative Area</ows:Keyword>
	  <ows:Keyword>Building</ows:Keyword>
	  <ows:Keyword>Elevation and Depth</ows:Keyword>
	  <ows:Keyword>Geographic name</ows:Keyword>
	  <ows:Keyword>Land Parcel</ows:Keyword>
	  <ows:Keyword>Orthoimagery</ows:Keyword>
	  <ows:Keyword>Population Distribution</ows:Keyword>
	  <ows:Keyword>Slope and Geology</ows:Keyword>
	  <ows:Keyword>Water</ows:Keyword>
    </ows:Keywords>
    <ows:ServiceType>CSW</ows:ServiceType>
    <ows:ServiceTypeVersion>2.0.2</ows:ServiceTypeVersion>
    <ows:AccessConstraints>Please refer to https://portal.csdi.gov.hk/csdi-webpage/doc/TNC</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>Common Spatial Data Infrastructure (CSDI) Portal</ows:ProviderName>
    <ows:ProviderSite xlink:type="simple" xlink:href="https://portal.csdi.gov.hk/" />
    <ows:ServiceContact>
      <ows:IndividualName>CSDI Technical Support</ows:IndividualName>
      <ows:PositionName />
      <ows:ContactInfo>
        <ows:Phone>
          <ows:Voice></ows:Voice>
          <ows:Facsimile></ows:Facsimile>
        </ows:Phone>
        <ows:Address>
          <ows:DeliveryPoint></ows:DeliveryPoint>
          <ows:City>Hong Kong</ows:City>
          <ows:AdministrativeArea></ows:AdministrativeArea>
          <ows:PostalCode></ows:PostalCode>
          <ows:Country>China</ows:Country>
          <ows:ElectronicMailAddress>csdi-portal@landsd.gov.hk</ows:ElectronicMailAddress>
        </ows:Address>
        <ows:OnlineResource xlink:href="" />
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>

  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://portal.csdi.gov.hk/geoportal/csw" />
          <ows:Post xlink:href="https://portal.csdi.gov.hk/geoportal/csw" />
        </ows:HTTP>
      </ows:DCP>
      <ows:Parameter name="AcceptVersions">
        <ows:Value>2.0.2</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="AcceptFormats">
        <ows:Value>application/xml</ows:Value>
        <ows:Value>text/xml</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="Sections">
        <ows:Value>All</ows:Value>
        <ows:Value>Filter_Capabilities</ows:Value>
      </ows:Parameter>
    </ows:Operation>

    <ows:Operation name="DescribeRecord">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://portal.csdi.gov.hk/geoportal/csw"/>
          <ows:Post xlink:href="https://portal.csdi.gov.hk/geoportal/csw" >
            <ows:Constraint name="PostEncoding">
              <ows:Value>XML</ows:Value> 
            </ows:Constraint>
          </ows:Post>
        </ows:HTTP>
      </ows:DCP>
      <ows:Parameter name="typeName">
        <ows:Value>csw:Record</ows:Value>
        <ows:Value>csw:SummaryRecord</ows:Value>
        <ows:Value>csw:BriefRecord</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="outputFormat">
        <ows:Value>text/xml</ows:Value>
        <ows:Value>application/xml</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="schemaLanguage">
        <ows:Value>XMLSCHEMA</ows:Value>
        <ows:Value>http://www.w3.org/XML/Schema</ows:Value>
      </ows:Parameter>
    </ows:Operation>

    <ows:Operation name="GetRecords">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://portal.csdi.gov.hk/geoportal/csw" />
          <ows:Post xlink:href="https://portal.csdi.gov.hk/geoportal/csw" >
            <ows:Constraint name="PostEncoding">
              <ows:Value>XML</ows:Value> 
            </ows:Constraint>
          </ows:Post>
        </ows:HTTP>
      </ows:DCP>
      <ows:Parameter name="typeName">
        <ows:Value>csw:Record</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="outputFormat">
        <ows:Value>application/xml</ows:Value>
        <ows:Value>application/atom+xml</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="outputSchema">
        <ows:Value>http://www.opengis.net/cat/csw/2.0.2</ows:Value>
        <ows:Value>http://www.isotc211.org/2005/gmd</ows:Value>
        <ows:Value>http://www.w3.org/2005/Atom</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="ElementSetName">
        <ows:Value>brief</ows:Value>
        <ows:Value>summary</ows:Value>
        <ows:Value>full</ows:Value>
      </ows:Parameter>
      <ows:Constraint name="SupportedGMLVersions">
        <ows:Value> http://www.opengis.net/gml/3.2</ows:Value>
        <ows:Value> http://www.opengis.net/gml</ows:Value>
      </ows:Constraint>
      <ows:Constraint name="OpenSearchDescriptionDocument">
        <ows:Value>https://portal.csdi.gov.hk/geoportal/opensearch/description</ows:Value>
      </ows:Constraint>
    </ows:Operation>

    <ows:Operation name="GetRecordById">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://portal.csdi.gov.hk/geoportal/csw" />
          <ows:Post xlink:href="https://portal.csdi.gov.hk/geoportal/csw" />
        </ows:HTTP>
      </ows:DCP>
      <ows:Parameter name="outputFormat">
        <ows:Value>application/xml</ows:Value>
        <ows:Value>application/atom+xml</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="outputSchema">
        <ows:Value>http://www.opengis.net/cat/csw/2.0.2</ows:Value>
        <ows:Value>http://www.isotc211.org/2005/gmd</ows:Value>
        <ows:Value>http://www.w3.org/2005/Atom</ows:Value>
      </ows:Parameter>
      <ows:Parameter name="ElementSetName">
        <ows:Value>brief</ows:Value>
        <ows:Value>summary</ows:Value>
        <ows:Value>full</ows:Value>
      </ows:Parameter>
    </ows:Operation>

    <ows:Constraint name="GetCapabilities-KVP">
      <ows:Value>true</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecords-KVP">
      <ows:Value>true</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecordById-KVP">
      <ows:Value>true</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="OpenSearch">
      <ows:Value>true</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Filter-KVP">
      <ows:Value>true</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="CSW-Response">
      <ows:Value>true</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="ATOM-response">
      <ows:Value>true</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="DefaultSortingAlgorithm">
      <ows:Value>relevance</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="CoreQueryables">
      <ows:Value>AnyText</ows:Value>
      <ows:Value>BoundingBox</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="CoreSortables">
      <ows:Value>Title</ows:Value>
      <ows:Value>Modified</ows:Value>
    </ows:Constraint>

    <ows:Constraint name="GetCapabilities-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecordById-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecords-Basic-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecords-Distributed-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecords-Distributed-KVP">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecords-Async-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetRecords-Async-KVP">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetDomain-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="GetDomain-KVP">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Transaction">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Harvest-Basic-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Harvest-Basic-KVP">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Harvest-Async-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Harvest-Async-KVP">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Harvest-Periodic-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Harvest-Periodic-KVP">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Filter-CQL">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Filter-FES">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Filter-FES-KVP-Advanced">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="Filter-FES-XML">
      <ows:Value>false</ows:Value>
    </ows:Constraint>
    <ows:Constraint name="FedeartedCatalogues">
      <ows:Value />
    </ows:Constraint>
    <ows:Constraint name="WSDL">
      <ows:Value />
    </ows:Constraint>

  </ows:OperationsMetadata>

  <ogc:Filter_Capabilities>
    <ogc:Spatial_Capabilities>
      <ogc:GeometryOperands>
        <ogc:GeometryOperand>gml:Envelope</ogc:GeometryOperand>
      </ogc:GeometryOperands>
      <ogc:SpatialOperators>
        <ogc:SpatialOperator name="BBOX"/>
      </ogc:SpatialOperators>
    </ogc:Spatial_Capabilities>
    <ogc:Scalar_Capabilities>
      <ogc:LogicalOperators/>
      <ogc:ComparisonOperators>
        <ogc:ComparisonOperator>EqualTo</ogc:ComparisonOperator>
      </ogc:ComparisonOperators>
    </ogc:Scalar_Capabilities>
    <ogc:Id_Capabilities>
      <ogc:EID/>
    </ogc:Id_Capabilities>
  </ogc:Filter_Capabilities>
</csw:Capabilities>