Support polymorphism in app-schema
----------------------------------

                 Key: GEOT-2674
                 URL: http://jira.codehaus.org/browse/GEOT-2674
             Project: GeoTools
          Issue Type: Improvement
          Components: data app-schema
            Reporter: Ben Caradoc-Davies
            Assignee: Rini Angreani


Application schema support currently requires all property types to be known at 
mapping time, so does not support polymorphism.

Application schemas often use polymorphism for data representation. For 
example, GeoSciML 2.0 http://www.geosciml.org/geosciml/2.0/doc/ uses 
gsml:CGI_ValuePropertyType containing a gsml:CGI_ValueType, which might be a 
gsml:CGI_TermValueType or a gsml:CGI_NumericValueType. The use of 
gsml:CGI_TermValueType is the canonical means of representing missing, unknown, 
or withheld data, which numeric data should be represented using 

For example, gsml:MappedFeature has a property gsml:positionalAccuracy of type 
CGI_ValuePropertyType. Users want to be able to encode some features with:

<gsml:positionalAccuracy>
<gsml:CGI_TermValue>
<gsml:value 
codeSpace="http://urn.opengis.net/";>urn:ogc:def:nil:OGC::missing</gsml:value>
</gsml:CGI_TermValue>
</gsml:positionalAccuracy>

and other features with:

<gsml:positionalAccuracy>
<gsml:CGI_NumericValue>
<gsml:principalValue uom="urn:ogc:def:uom:UCUM::m">500</gsml:principalValue>
</gsml:CGI_NumericValue>
</gsml:positionalAccuracy>

app-schema does not support this polymorphism.

Use cases are yet to be determined.
- Is it enough to have conditionals on mappings? 
- Is polymorphism required for feature chaining, that is, different types of 
chained feature depending on the source data behind the enclosing feature?


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

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to