0

What is causing this error?

org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:4326," from authority "European Petroleum Survey Group" found for object of type "IdentifiedObject".

https://geo.hyphae.design/geoserver/hyphaegeo/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=hyphaegeo:PrescottGreenviewTest&TYPENAME=hyphaegeo:PrescottGreenviewTest&STARTINDEX=0&COUNT=10000&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=562073.76526905409991741,4185632.69297888176515698,563852.27126529649831355,4187445.67907886626198888,urn:ogc:def:crs:EPSG::4326:

Clicking on this link doesn't produce the error, but pasting it into the address bar does. More importantly, QGIS fails to load the layer with

XML error in Chrome

2020-05-20T12:17:15 CRITICAL Layer Greenview test (Prescott) : Download of features for layer hyphaegeo:PrescottGreenviewTest failed or partially failed: Error when parsing GetFeature response : Error: not well-formed (invalid token) on line 1, column 1804. You may attempt reloading the layer with F5

I have verified:

  • the EPSG.data file is in its place
  • the WFS is on for the workspace
  • 4326 is listed in the WFS settings page

Other than that settings are mostly OOB.

2
  • I get no error on that request - if you are seeing something in the log file please edit the question with that information
    – Ian Turton
    Commented May 20, 2020 at 7:49
  • The bbox values are incorrect for epsg:4326
    – nmtoken
    Commented May 21, 2020 at 13:18

1 Answer 1

1

The error

<ows:ExceptionText> org.opengis.referencing.NoSuchAuthorityCodeException: No code &quot;EPSG:4326,&quot; from authority &quot;European Petroleum Survey Group&quot; found for object of type &quot;IdentifiedObject&quot;. No code &quot;EPSG:4326,&quot; from authority &quot;European Petroleum Survey Group&quot; found for object of type &quot;IdentifiedObject&quot;. </ows:ExceptionText>

Is occurring because you have a spurious trailing colon in your request

https://geo.hyphae.design/geoserver/hyphaegeo/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=hyphaegeo:PrescottGreenviewTest&TYPENAME=hyphaegeo:PrescottGreenviewTest&STARTINDEX=0&COUNT=10000&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=562073.76526905409991741,4185632.69297888176515698,563852.27126529649831355,4187445.67907886626198888,urn:ogc:def:crs:EPSG::4326:

You have urn:ogc:def:crs:EPSG::4326: but it should be urn:ogc:def:crs:EPSG::4326&

The query though still fails to return any values because the bounding box is incorrect for EPSG:4326 (values should be no greater than +/-90,+/-180,+/-90,+/-180 decimal degrees)

7
  • Thank you! Good points. So why would QGIS ask for planar coordinates when the crs is a spherical one? The request is also generated automatically by QGIS, so where does the spurious trailing colon come from?? Commented May 21, 2020 at 19:49
  • What projection is the QGIS project in
    – nmtoken
    Commented May 21, 2020 at 19:51
  • I believe it was a project using 6420, CA state plane III. I tested using a fresh project with 4326 and I get the same error without any bounding box being part of the request. I guess that is due to the trailing colon. Any ideas about the source of that issue? Commented May 22, 2020 at 0:36
  • https://geo.hyphae.design/geoserver/hyphaegeo/wfs?SERVICE=WFS&REQUEST=DescribeFeatureType&typename=hyphaegeo:PrescottGreenviewTest&version=2.0.0 shows WFS is complex type, and QGIS may not be able to handle it directly, there is a GML application schema plugin that you could try
    – nmtoken
    Commented May 22, 2020 at 9:21
  • However, https://geo.hyphae.design/geoserver/hyphaegeo/wfs?SERVICE=WFS&REQUEST=GetFeature&typenames=hyphaegeo:PrescottGreenviewTest&version=2.0.0&count=1& gives an invalid response ~ s4s-att-invalid-value: Invalid attribute value for 'name' in element 'element'. Recorded reason: cvc-datatype-valid.1.2.1: '0count' is not a valid value for 'NCName'. and this is likely the real cause
    – nmtoken
    Commented May 22, 2020 at 9:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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