Support anyType for complex attributes
--------------------------------------
Key: GEOS-3750
URL: http://jira.codehaus.org/browse/GEOS-3750
Project: GeoServer
Issue Type: Bug
Components: WFS
Affects Versions: 2.0.2
Reporter: Rini Angreani
Assignee: Andrea Aime
Fix For: 2.0.0
Attachments: SISS-630-GS.patch
When complex values are assigned to xs:anyType, they're not encoded.
This is needed for Observation and Measurement.
In om:ObservationType, result is of anyType (see http://schemas.opengis.net/om/1.0.0/observation.xsd).
If we assign features in it, nothing is encoded in it.
Explanation for my patch in FeatureTypeSchemaBuilder:
Skip the part to find the binding for the type if it's an xs:anyType, because it wouldn't be found in findTypeName() since it's not in any profiles (and would throw exception). Alternatively, I could add it to GML3Profile, but I chose to skip it instead because it's faster this way.
In Geotools, I added support for this scenario in SubstitutionGroupXSAnyTypeBinding.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira