[GeoNetwork-devel] Unable to have result from CSW using BBOX

Hi,
I’m testing the GN csw of trunk version using the CSW Demo Request available in the administrator menu.

I notice that

Using this standard request:

<?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”>

</csw:Constraint>
</csw:Query>
</csw:GetRecords>

The CSW rightly respond:

<?xml version="1.0" encoding="UTF-8"?>

<csw:GetRecordsResponse xmlns:csw=“http://www.opengis.net/cat/csw/2.0.2” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd”>
<csw:SearchStatus timestamp=“2011-08-20T17:39:36” />
<csw:SearchResults numberOfRecordsMatched=“1” numberOfRecordsReturned=“1” elementSet=“summary” nextRecord=“0” />
</csw:GetRecordsResponse>

Instead if I try to use this other request generated using another CSW client:

<?xml version="1.0"?>

<csw:GetRecords xmlns:csw=“http://www.opengis.net/cat/csw/2.0.2” xmlns:ows=“http://www.opengis.net/ows” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” maxRecords=“18” outputFormat=“application/xml” outputSchema=“http://www.opengis.net/cat/csw/2.0.2” resultType=“results” service=“CSW” version=“2.0.2” xsi:schemaLocation=“http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd”>
<csw:Query typeNames=“csw:Record”>
csw:ElementSetNamefull</csw:ElementSetName>
<csw:Constraint version=“1.1.0”>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
ogc:BBOX
ogc:PropertyNameows:BoundingBox</ogc:PropertyName>
<gml:Envelope xmlns:gml=“http://www.opengis.net/gml”>
gml:lowerCorner-180 -90</gml:lowerCorner>
gml:upperCorner180 90</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>

The CSW responde 0 results.

<?xml version="1.0" encoding="UTF-8"?>

<csw:GetRecordsResponse xmlns:csw=“http://www.opengis.net/cat/csw/2.0.2” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd”>
<csw:SearchStatus timestamp=“2011-08-20T17:43:30” />
<csw:SearchResults numberOfRecordsMatched=“0” numberOfRecordsReturned=“0” elementSet=“full” nextRecord=“0” />
</csw:GetRecordsResponse>

I don’t understand why this happened because the BBOX is all-world.

Andrea Peri
. . . . . . . . .
qwerty àèìòù