GeoServer

Support anyType for complex attributes

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.2
  • Fix Version/s: 2.0.0
  • Component/s: WFS
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

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.
http://jira.codehaus.org/browse/GEOT-2916

Test case in app-schema will be committed when this is committed:
http://jira.codehaus.org/browse/GEOS-3751

Issue Links

Activity

Hide
Justin Deoliveira added a comment -

Patch looks good Rini.

Show
Justin Deoliveira added a comment - Patch looks good Rini.
Hide
Rini Angreani added a comment -

Thank's Justin.

Committed in trunk:

  • src\wfs\src\main\java\org\geoserver\wfs\xml\FeatureTypeSchemaBuilder.java
    Completed: At revision: 13907

Committed in 2.0.x:

  • src\wfs\src\main\java\org\geoserver\wfs\xml\FeatureTypeSchemaBuilder.java
    Completed: At revision: 13908
Show
Rini Angreani added a comment - Thank's Justin. Committed in trunk:
  • src\wfs\src\main\java\org\geoserver\wfs\xml\FeatureTypeSchemaBuilder.java Completed: At revision: 13907
Committed in 2.0.x:
  • src\wfs\src\main\java\org\geoserver\wfs\xml\FeatureTypeSchemaBuilder.java Completed: At revision: 13908
Hide
Andrea Aime added a comment -

Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

Show
Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: