Justin Deoliveira wrote:
> Ben Caradoc-Davies wrote:
>> Justin Deoliveira wrote:
>>> So with the (FPT,GU) tuple returned, the binding for 
>>> FeaturePropertyType is up next, and it will be asked for its 
>>> properties being passed in the GU feature.
>> With gml:FeaturePropertyType it works. The problem I have is that I have 
>> gsml:GeologicFeaturePropertyType which has no binding. This property 
>> type is not derived from gml:FeaturePropertyType, nor does it have to be 
>> to conform to the GML encoding rules.
> Interesting... and problematic. Is there a reason why it does not extend 
> from FeaturePropertyType? Or some other type that marks it as a property 
> type.

There is no requirement to do so. The GML encoding rules state that it 
is sufficient to follow the pattern. Model developers will not avoid 
this patten when they know that other implementations can encode it.

The example is from GeoSciML: http://geosciml.org/

An encoder for GML complex features must search the substitution group 
of the enclosed element for permitted types. When I override 
XSAnyTypeBinding to do this, it works.

> I don't have a great idea of how to handle this one. My only thought 
> would be to somehow associate with the geotools type that it is indeed a 
> feature property type, via the type metdata or something.
> I believe Gabriel might have employed a trick like this way back when.

No, I checked, he overrode XSAnyTypeBinding as well. I am still sweating 
blood trying to get trunk to work as well as Gabriel's community-schemas 
version. It is quite an education. :-)

Kind regards,

-- 
Ben Caradoc-Davies <[email protected]>
Software Engineer, CSIRO Exploration and Mining
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to