[Geoserver-users] WFS cascading fails for GeoJSON

Dear list,

I discovered a uncommon behavior with cascading a WFS (link to docs):

In case I do not specify a version or set “version=2.0.0” in the “” of the store, I get this error when I request a GeoJSON:

<ServiceExceptionReport version=“1.2.0” xsi:schemaLocation=“http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd”>

java.lang.RuntimeException: Parsing failed for FeatureCollection: java.lang.RuntimeException: Unable to set property: boundedBy for eobject: {http://www.opengis.net/wfs/2.0}FeatureCollectionType Parsing failed for FeatureCollection: java.lang.RuntimeException: Unable to set property: boundedBy for eobject: {http://www.opengis.net/wfs/2.0}FeatureCollectionType Unable to set property: boundedBy for eobject: {http://www.opengis.net/wfs/2.0}FeatureCollectionType java.lang.String cannot be cast to net.opengis.wfs20.EnvelopePropertyType


Setting “version=1.0.0” or “version=1.1.0” seems to work fine. Here the summary:- : error - loading GeoJSON fails

  • version=1.0.0 : ok - GeoJSON can be loaded
  • version=1.1.0 : ok - GeoJSON can be loaded
  • version=2.0.0 : error - loading GeoJSON fails

Is this a known limitation?

I could not find anything regarding this behavior in the docs.

regards,
Jakob

···
-- 
Jakob Miksch
Geoinformatiker

meggsimum - Büro für Geoinformatik
Christian Mayer
Schillerstr. 2a    | 67112 Mutterstadt
[chris@...10430...](mailto:chris@...10430...) | [www.meggsimum.de](http://www.meggsimum.de)
T 06231 - 6298988  |

I had a feeling that the geotools wfs-ng module ignored the format option, but maybe it doesn’t. I’m pretty sure that it doesn’t actually handle the returned data differently if it is set. You can raise a ticket against the module with details of how to reproduce it but as it is an unsupported module it will only get fixed if someone has a burning need for it.

Ian

···

Ian Turton