gsml:BoreholeCollar location property  being encoded twice with patch from 
GEOT-3183 
-------------------------------------------------------------------------------------

                 Key: GEOT-3228
                 URL: http://jira.codehaus.org/browse/GEOT-3228
             Project: GeoTools
          Issue Type: Bug
          Components: core xml
    Affects Versions: 2.6.3
            Reporter: Xiangtan Lin
            Assignee: Xiangtan Lin
             Fix For: 2.6.5
         Attachments: DuplicateLocation.patch

GEOT-3183 patch added functionality of sorting feature property to their 
original order in schema. However it introduced a new issue that 
gsml:BoreholeCollar location property being encoded twice. 

Mapping: 
<AttributeMapping> 
 
<targetAttribute>gsml:collarLocation/gsml:BoreholeCollar/gsml:location</targetAttribute>
 
<sourceExpression> 
  <OCQL>GEOM_LOCATION</OCQL> 
</sourceExpression> 
</AttributeMapping> 

Duplicate Result: 
 <gsml:location> 
 <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4283";> 
  <gml:pos>-28.4139 121.142</gml:pos> 
  </gml:Point> 
  </gsml:location> 
 <gsml:location> 
 <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4283";> 
  <gml:pos>-28.4139 121.142</gml:pos> 
  </gml:Point> 
 </gsml:location>

The issue is caused by the fact that gsml:BoreholeCollar has two location 
element, gml:location and gsml:location, and the GEOT-3183 patch only checked 
element name and failed to compare element target namespace when sorting the 
feature properties. 




-- 
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

        

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to