|
From: Ryan C. <rya...@az...> - 2009-07-30 16:58:46
|
My app-schema daily questions...
>> "Would it ensure via app-schema (see ...) :
>> # gml:id uniqueness : using href to avoid repeating the same element if
used in several associations ?
>
> This has only just been fixed (not in 2.0-beta2). Please try a recent
nightly build.
I'm now using builds of GeoServer and app-schema from 7/29. I'm not sure if
I quite understand what this question was getting at, but in my dreams, it
would work like this: If I ask for MappedFeatures, and ten of the returned
MappedFeatures share the same gsml:GeologicUnit in the gsml:specification
element, I would see the gsml:GeologicUnit spelled out inline for only the
first MappedFeature; in subsequent MappedFeatures, I would see an xpath to
that first gsml:GeologicUnit. This is not critical, but it would shorten a
response document significantly and in theory improve performance. Is this
possible?
Second question: I've built in feature-chaining between gsml:GeologicUnits
and gsml:GeologicEvents. However, in my backend data, only some of the
GeologicUnits have associated events. It works fine when I ask only for
GeologicUnits that have associated events, but seems to gag when I ask for
ones without. Ideally, I would just not see an element in those units
without events. Here's the error I'm getting:
java.lang.ClassCastException: org.geotools.filter.AttributeExpressionImpl
cannot be cast to org.opengis.filter.Filter
Finally, I'm having some trouble using
gsml:CGI_NumericValue/gsml:principalValue. Here is my mapping in
gsml:GeologicEvent:
<AttributeMapping>
<targetAttribute>
gsml:eventAge
</targetAttribute>
<targetAttributeNode>
gsml:CGI_NumericRangePropertyType
</targetAttributeNode>
</AttributeMapping>
<AttributeMapping>
<targetAttribute>
gsml:eventAge/gsml:CGI_NumericRange/gsml:upper/gsml:CGI_NumericValue/gsml:principalValue
</targetAttribute>
<sourceExpression>
<OCQL>ageoldervalue</OCQL>
</sourceExpression>
<ClientProperty>
<name>uom</name>
<value>'Ma'</value>
</ClientProperty>
</AttributeMapping>
I get the following error message:
java.lang.RuntimeException: Encode failed for principalValue. Cause:
org.geotools.feature.ComplexAttributeImpl cannot be cast to
org.geotools.measure.Measure
A similar mapping using gsml:CGI_TermValue/gsml:value instead of
CGI_NumericValue works just fine.
Thanks,
Ryan
|