highsource / ogc-schemas

XML<->Java and XML<->JS for OGC XSDs.
BSD 2-Clause "Simplified" License
82 stars 49 forks source link

In Filter 1.1.0 two propertyName elements are mapped to different properties #177

Closed highsource closed 8 years ago

highsource commented 8 years ago

This XML:

<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
    <ogc:Equals>
        <ogc:PropertyName>test1</ogc:PropertyName>
        <ogc:PropertyName>test2</ogc:PropertyName>
    </ogc:Equals>
</ogc:Filter>

Results in the following:

{ TYPE_NAME: 'Filter_1_1_0.BinarySpatialOpType',
  propertyName2:
   { TYPE_NAME: 'Filter_1_1_0.PropertyNameType',
     content: [ 'test2' ] } }

propertyName1 is missing.