[Geoserver-devel] [JIRA] (GEOS-8235) Java error if retrieving the geometry of a complex feature trough a GetPropertyValue WFS request

Iurie Maxim created an issue

GeoServer / BugGEOS-8235

Java error if retrieving the geometry of a complex feature trough a GetPropertyValue WFS request

Issue Type:

BugBug

Assignee:

Unassigned

Created:

25/Jul/17 8:51 PM

Priority:

MediumMedium

Reporter:

Iurie Maxim

While making several GetPropertyValue WFS requests on complex features (INSPIRE) in order to be used for linking data, it was found that all of them are working except for retrieving the geometry.

The request http://gmlid.eu/RO/ENV/PADS/WFS?service=wfs&version=2.0.0&request=GetPropertyValue&typeNames=ps:ProtectedSite&valueReference=ps:geometry&featureID=RO.ENV.PADS.PS.RONPA0001

provides the following error
“java.lang.ClassCastException: org.geotools.gml3.v3_2.GMLSchema$179 cannot be cast to org.opengis.feature.type.ComplexType org.geotools.gml3.v3_2.GMLSchema$179 cannot be cast to org.opengis.feature.type.ComplexType”

Any other GetPropertyValue request to an element of a complex feature type that is not the geometry is not providing the java error, as for example:

http://gmlid.eu/RO/ENV/PADS/WFS?service=wfs&version=2.0.0&request=GetPropertyValue&typeNames=ps:ProtectedSite&valueReference=ps:siteName&featureID=RO.ENV.PADS.PS.RONPA0001

The WFS is providing a result (with null values returned as namespace prefixes of the complex features as described in the GEOS-8108 bug) but is not providing a java error as in the case of geometries.

Best regards,
Iurie Maxim

Add Comment

Add Comment

Get JIRA notifications on your phone! Download the JIRA Cloud app here.


This message was sent by Atlassian JIRA (v1000.1139.0#100055-sha1:72ed05b)

Atlassian logo