
http://www.geo.euskadi.eus/CSW


- Peticin al capabilites Capabilities:
http://www.geo.euskadi.eus/CSW?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetCapabilities

- Peticin al servicio DescribeRecord:
http://www.geo.euskadi.eus/CSW?service=CSW&version=2.0.2&request=DescribeRecord


- Peticin al servicio GetDomain: -> obtener todos los valores posibles de un campo
POST:
<?xml version="1.0"?>
<csw:GetDomain xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2">
    <csw:PropertyName>Title</csw:PropertyName>
</csw:GetDomain>


- GetRecords
POST:
<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2">
    <csw:Query typeNames="csw:Record">
        <csw:Constraint version="1.1.0">
            <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
                <PropertyIsLike wildCard="%" singleChar="_" escapeChar="\">
                    <PropertyName>AnyText</PropertyName>
                    <Literal>%orto%</Literal>
                </PropertyIsLike>
            </Filter>
        </csw:Constraint>
    </csw:Query>
</csw:GetRecords>

-- resultType="results" --

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results">
    <csw:Query typeNames="csw:Record">
        <csw:Constraint version="1.1.0">
            <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
                <PropertyIsLike wildCard="%" singleChar="_" escapeChar="\">
                    <PropertyName>AnyText</PropertyName>
                    <Literal>%orto%</Literal>
                </PropertyIsLike>
            </Filter>
        </csw:Constraint>
    </csw:Query>
</csw:GetRecords>


-- startPosition="1" .. maxRecords="15" --

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" startPosition="10">
    <csw:Query typeNames="csw:Record">
        <csw:Constraint version="1.1.0">
            <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
                <PropertyIsLike wildCard="%" singleChar="_" escapeChar="\">
                    <PropertyName>AnyText</PropertyName>
                    <Literal>%orto%</Literal>
                </PropertyIsLike>
            </Filter>
        </csw:Constraint>
    </csw:Query>
</csw:GetRecords>


-- Buscar todos los subjects y ver que hay un subject que es catastro, buscar por igual al catastro--
<?xml version="1.0"?>
<csw:GetDomain xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2">
    <csw:PropertyName>subject</csw:PropertyName>
</csw:GetDomain>

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results">
    <csw:Query typeNames="csw:Record">
        <csw:Constraint version="1.1.0">
            <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
                <PropertyIsEqualTo wildCard="%" singleChar="_" escapeChar="\">
                    <PropertyName>subject</PropertyName>
                    <Literal>Catastro</Literal>
                </PropertyIsEqualTo>
            </Filter>
        </csw:Constraint>
    </csw:Query>
</csw:GetRecords>


Obtener toda la informacin (brief, summary [este es el valor por defecto si no se especifica nada], full)
<csw:ElementSetName>full</csw:ElementSetName>

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results">
    <csw:Query typeNames="csw:Record">
		<csw:ElementSetName>full</csw:ElementSetName>
        <csw:Constraint version="1.1.0">
            <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
                <PropertyIsLike wildCard="%" singleChar="_" escapeChar="\">
                    <PropertyName>AnyText</PropertyName>
                    <Literal>%orto%</Literal>
                </PropertyIsLike>
            </Filter>
        </csw:Constraint>
    </csw:Query>
</csw:GetRecords>


- GetRecordById

<?xml version="1.0"?>
<csw:GetRecordById xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2"
    outputSchema="csw:IsoRecord">
    <csw:Id>md_IDEEu_RIESGO_SISMICO_es</csw:Id>
</csw:GetRecordById>