Rini Angreani created GEOT-4126:
-----------------------------------
Summary: App-schema: Enable specifying row number in getting
sourceExpressionw for denormalised rows
Key: GEOT-4126
URL: https://jira.codehaus.org/browse/GEOT-4126
Project: GeoTools
Issue Type: New Feature
Components: app-schema plugin
Reporter: Rini Angreani
Assignee: Rini Angreani
Timeseries requires gml:beginPosition and gml:endPosition to reflect the
timePositionList range, which is dynamic. Specifying <index> in
<sourceExpression> would solve this. Default value is 0, so if it's not
specified, it'd work as usual (to get the first row's value). You can specify a
fixed integer, or for dynamic results, LAST would get the last row's value.
e.g.
This would always get the top of the range (i.e. first row's value as the
results as sorted by PK):
{code}
<AttributeMapping>
<targetAttribute>
om:OM_Observation/om:phenomenonTime/gml:TimePeriod/gml:beginPosition
</targetAttribute>
<sourceExpression>
<OCQL>POSITION</OCQL>
</sourceExpression>
</AttributeMapping>
{code}
Getting the last row's value:
{code}
<AttributeMapping>
<targetAttribute>
om:OM_Observation/om:phenomenonTime/gml:TimePeriod/gml:endPosition
</targetAttribute>
<sourceExpression>
<OCQL>POSITION</OCQL>
<index>LAST</index>
</sourceExpression>
</AttributeMapping>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel