Uploaded image for project: 'GeoTools'
  1. GEOT-5696

Feature chaining on xs:anyType encodes superfluous toString text

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 16.3, 17.1, 18-beta
    • Fix Version/s: 16.3, 17.1, 18-beta
    • Component/s: app-schema plugin
    • Labels:
      None

      Description

      The output of GeoServer gs-app-schema-test FeatureChainingWfsTest.testAnyTypeAndAnyElement shows that feature chaining on xs:anyType encodes superfluous feature toString as text, in addition to the correct encoding of the feature:

      <om:Observation gml:id="observation:mf1">
          [...]
          <om:result>[FeatureImpl:MappedFeature&lt;MappedFeatureType id=mf1&gt;=[ComplexAttributeImpl:name&lt;CodeType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=GUNTHORPE FORMATION], ComplexAttributeImpl:positionalAccuracy&lt;CGI_NumericValuePropertyType&gt;=[ComplexAttributeImpl:CGI_NumericValue&lt;CGI_NumericValueType&gt;=[ComplexAttributeImpl:principalValue&lt;MeasureType&gt;=[AttributeImpl:simpleContent&lt;double&gt;=200.0]]], GeometryAttributeImpl:shape&lt;GeometryPropertyType crs=GEOGCS[&quot;WGS 84&quot;, 
        DATUM[&quot;World Geodetic System 1984&quot;, 
          SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563, AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]], 
          AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], 
        PRIMEM[&quot;Greenwich&quot;, 0.0, AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]], 
        UNIT[&quot;degree&quot;, 0.017453292519943295], 
        AXIS[&quot;Geodetic latitude&quot;, NORTH], 
        AXIS[&quot;Geodetic longitude&quot;, EAST], 
        AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]&gt;=POLYGON ((52.5 -1.2, 52.6 -1.2, 52.6 -1.1, 52.5 -1.1, 52.5 -1.2)), ComplexAttributeImpl:samplingFrame&lt;SpatiallyExtensiveSamplingFeaturePropertyType&gt;=[], ComplexAttributeImpl:specification&lt;GeologicFeaturePropertyType&gt;=[FeatureImpl:GeologicUnit&lt;GeologicUnitType id=gu.25699&gt;=[ComplexAttributeImpl:description&lt;StringOrRefType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=Olivine basalt, tuff, microgabbro, minor sedimentary rocks], ComplexAttributeImpl:name&lt;CodeType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=Yaugher Volcanic Group], ComplexAttributeImpl:name&lt;CodeType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=-Py], ComplexAttributeImpl:observationMethod&lt;CGI_TermValuePropertyType&gt;=[ComplexAttributeImpl:CGI_TermValue&lt;CGI_TermValueType&gt;=[ComplexAttributeImpl:value&lt;CodeWithAuthorityType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=urn:ogc:def:nil:OGC::missing]]], AttributeImpl:purpose&lt;DescriptionPurposeType&gt;=instance, ComplexAttributeImpl:geologicUnitType&lt;ReferenceType&gt;=[], ComplexAttributeImpl:composition&lt;CompositionPartPropertyType&gt;=[FeatureImpl:CompositionPart&lt;CompositionPartType id=cp.167775491936278899&gt;=[ComplexAttributeImpl:role&lt;CodeWithAuthorityType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=fictitious component], ComplexAttributeImpl:proportion&lt;CGI_ValuePropertyType&gt;=[FeatureImpl:CGI_TermValue&lt;CGI_TermValueType id=nonexistent&gt;=[ComplexAttributeImpl:value&lt;CodeWithAuthorityType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=nonexistent]]], ComplexAttributeImpl:lithology&lt;ControlledConceptPropertyType&gt;=[FeatureImpl:ControlledConcept&lt;ControlledConceptType id=cc.5&gt;=[ComplexAttributeImpl:name&lt;CodeType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=name_cc_5], ComplexAttributeImpl:name&lt;LocalizedGenericNameType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=name_cc_5], ComplexAttributeImpl:vocabulary&lt;GeologicVocabularyPropertyType&gt;=[]]]]], ComplexAttributeImpl:exposureColor&lt;CGI_TermValuePropertyType&gt;=[FeatureImpl:CGI_TermValue&lt;CGI_TermValueType id=Blue&gt;=[ComplexAttributeImpl:value&lt;CodeWithAuthorityType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=Blue]]], ComplexAttributeImpl:outcropCharacter&lt;CGI_TermValuePropertyType&gt;=[FeatureImpl:CGI_TermValue&lt;CGI_TermValueType id=x&gt;=[ComplexAttributeImpl:value&lt;CodeWithAuthorityType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=x]]], ComplexAttributeImpl:occurrence&lt;MappedFeaturePropertyType&gt;=[]]], ComplexAttributeImpl:observationMethod&lt;CGI_TermValuePropertyType&gt;=[ComplexAttributeImpl:CGI_TermValue&lt;CGI_TermValueType&gt;=[ComplexAttributeImpl:value&lt;CodeWithAuthorityType&gt;=[AttributeImpl:simpleContent&lt;string&gt;=urn:ogc:def:nil:OGC::missing]]]]]
              <gsml:MappedFeature gml:id="mf1">
                  [...]
      

      om:result is of xs:anyType.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                bencaradocdavies Ben Caradoc-Davies
                Reporter:
                bencaradocdavies Ben Caradoc-Davies
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: