pmauduit / groovy-wxs-lib

a Groovy library to retrieve WxS data from remote servers and parse them
0 stars 0 forks source link

CSW GetRecords response from GeoNetwork CSW implementation is not reliable #2

Open pmauduit opened 8 years ago

pmauduit commented 8 years ago

Differences between a GetRecords or GetRecordById an the xml.metadata.get service.

For a service metadata, we cannot find back the operatesOn or coupledResources informations in the response.

Reproduced with 'fr-org.geobretagne.rectorat.wfs' document on geobretagne.

pmauduit commented 8 years ago

In fact, GetRecordById using GET request seems ok:

http://geobretagne.fr/geonetwork/srv/eng/csw?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&id=fr-org.geobretagne.cg29.wfs&outputSchema=csw:IsoRecord

Exactly the same request transformed as POST does not send back the same MD:

<?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" ElementSetName="full">
            <csw:Id>fr-org.geobretagne.cg29.wfs</csw:Id>
</csw:GetRecordById>

It also seems impossible to get the "complete" MD from a GetRecords response, even by tweaking the appropriate parameters:

http://geobretagne.fr/geonetwork/srv/eng/csw?request=GetRecords&service=CSW&version=2.0.2&namespace=xmlns%28csw%3Dhttp%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2%29%2Cxmlns%28gmd%3Dhttp%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd%29&constraint=AnyText+like+%27%25geobretagne.cg29%25%27&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&typeNames=csw%3ARecord&resultType=results&outputSchema=csw:IsoRecord&type=service

pmauduit commented 8 years ago

GetRecords:

http://geobretagne.fr/geonetwork/srv/eng/csw?request=GetRecords&service=CSW&version=2.0.2&namespace=xmlns%28csw%3Dhttp%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2%29%2Cxmlns%28gmd%3Dhttp%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd%29&constraint=AnyText+like+%27%25geobretagne.cg29%25%27&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&typeNames=csw%3ARecord&resultType=results&outputSchema=csw:IsoRecord&type=service