I have a GeoNetwork catalog with a lot of ISO 19115 metadata. I want to use ogc filters to search into my catalog through CSW services (GetRecords).

So, I use http POST requests. The post data respect GeoNetwork XML schema.




<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords service="CSW" version="2.0.2" xmlns:csw="http://www/opengis.net/ogc"  
  <csw:Query typeNames="csw:Record>
    <ElementSetName typeNames="csw:Record>full</ElementSetName>
    <csw:Constaint version="1.1.0">
            <gml:lowerCorner>5 42</gml:lowerCorner>
            <gml:upperCorner>8 50</gml:upperCorner>

It works for logical requests (title is ...) but I do not have any result for spatial requests. The response status code is 200 but I have 0 record returned even if I have metadata in the bounding box (Envelope).

Is my post data correct?

Do the lower corner and upper corner correspond to "long lat"?

Do you know good documentation about ogc filter?

I also use ogc filter to update metadata in my GeoNetwork catalog (transaction CSW services) but I can filter only by some tags.

Do you know how to add filters to GeoNetwork? Have I to modify the config-cw.xml GeoNetwork file?

  • Why have you tagged this with Java, do you want to make such requests programmatically? – nmtoken Jul 20 '17 at 16:39
  • The csw GetCapabilities response will give you the list of properties you can filter on and the filters – nmtoken Jul 20 '17 at 17:12
  • Yes, I do all my requests programmatically. I have to send a lot of requests and I need to automate the process. – victor.brinon Jul 21 '17 at 8:11
  • I found the filters list. Do you know how to add filters? I tried to modify the config-csw.xml geonetwork file but without success for now. – victor.brinon Jul 21 '17 at 8:12
  • Do you know how to add filters? that's a question for the GeoNetwork developers I think. – nmtoken Jul 21 '17 at 8:27

Browse other questions tagged or ask your own question.