2

I am trying to connect my GeoNetwork to QGIS using the CSW protocol. The GetCapabilities request is OK.

But when I try to search some metadata this exception is raised:

Search error: 'Raised exception while searching metadata : 
java.lang.IllegalArgumentException: Error when parsing spatial filter (version: 1.1.0):
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
  <ogc:BBOX>
    <ogc:PropertyName>ows:BoundingBox</ogc:PropertyName>
    <gml311:Envelope xmlns:gml311="http://www.opengis.net/gml" srsName="urn:ogc:def:crs:OGC:1.3:CRS84">
      <gml311:lowerCorner>-23 -90</gml311:lowerCorner>
      <gml311:upperCorner>23 90</gml311:upperCorner>
    </gml311:Envelope>
  </ogc:BBOX>
</ogc:Filter>. 

Error is: java.lang.RuntimeException: Parsing failed for Envelope: 
java.lang.RuntimeException: Could not create crs: urn:ogc:def:crs:OGC:1.3:CRS84'
  • How are you doing the connection, what search are you doing? – nmtoken Oct 1 '19 at 13:41
  • It seems a problem in GN side trying to decode the srsName property. – juanluisrp Oct 2 '19 at 10:17
3

GeoNetwork 3.6 uses GeoTools 16.0. This version of GeoTools doesn't support urn:ogc:def:crs:OGC:1.3:CRS84 CRS. The support for this CRS was introduced in GeoTools 17.1. GeoNetwork 3.8 still uses the GT 16 so the problem still exists in current GN release.

Issue in GN for tracking the problem: #4072

  • But If the GetCapabilities of the CSW service does not advertise that CRS, isn't QGIS at fault for requesting it? – nmtoken Oct 2 '19 at 11:25
  • AFAIK CSW GetCapabilities doesn't contain any reference to CRS names – juanluisrp Oct 2 '19 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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