[Geoserver-devel] [JIRA] (GEOS-7226) Default GML links in Layer Preview page do not work for app-schema layers

Stefano Costa created an issue

GeoServer / BugGEOS-7226

Default GML links in Layer Preview page do not work for app-schema layers

Issue Type:

BugBug

Affects Versions:

2.8.0, 2.7.2

Assignee:

Stefano Costa

Components:

Application schema, Wicket UI

Created:

01/Oct/15 6:11 PM

Priority:

MediumMedium

Reporter:

Stefano Costa

The default GML link generated by the layer preview page uses WFS 1.0.0 as protocol and GML2 as output format, but this does not work for app-schema layers, since GML2 does not support complex features at all.

Clicking on the link results in a ServiceException response with the following error message:

java.lang.ClassCastException: org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to org.opengis.feature.simple.SimpleFeatureType org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to org.opengis.feature.simple.SimpleFeatureType

Ideally, the generated GML link for app-schema layers should:

  • use WFS 1.1.0 as protocol
  • use either GML 3.1.1 or GML 3.2 as output format, depending on the schema
  • use the global OWS service instead of virtual services, to avoid problems accessing secondary namespaces

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-07-011#70107-sha1:db940e9)

Atlassian logo