Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to retrieve some data from CSW server running GeoNetwork. I'm using this query but it doesn't work:

http://serverurl/geonetwork/srv/en/csw?
REQUEST=GetRecords&
SERVICE=CSW&
VERSION=2.0.2&
OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&
constraint=AnyText+EqualTo+Africa&
constraintLanguage=CQL_TEXT&
constraint_language_version=1.1.0&
typeNames=csw:Record&
RESULTTYPE=hits

Always returns to me the whole metadata (instead of 0; that's what I expect because there aren't any resources with name 'Africa').

share|improve this question
add comment

1 Answer 1

I don't know for GeoNetwork, but a CSW compliant request should probably look more like the following:

http://serverurl/geonetwork/srv/en/csw?
REQUEST=GetRecords&
SERVICE=CSW&
VERSION=2.0.2&
namespace=xmlns(csw=http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2)&
OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&
constraintLanguage=CQL_TEXT&
constraint=csw:title LIKE 'Africa'&
typeNames=csw:Record&
RESULTTYPE=hits
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.