Hello,

I have a simple feature chaining setup

<AttributeMapping>
        <targetAttribute>geo:gnssReceiver</targetAttribute>
        <sourceExpression>
                <OCQL>fourid</OCQL>
                <linkElement>geo:GnssReceiver</linkElement>
                <linkField>FEATURE_LINK[1]</linkField>
        </sourceExpression>
        <isMultiple>true</isMultiple>
        <encodeIfEmpty>false</encodeIfEmpty>
</AttributeMapping>

which produces a GML property geo:gnssReceiver with a value of a
geo:GnssReceiver object. There may be multiple occurrences of this property.

I need to include some attributes on the object level that are not the same
for every instance of geo:GnssReceiver. Specifically I have a metadata
attribute called dateInserted to keep track of changes. Is this possible at
the object level? I want it to look like this when encoded:

<geo:gnssReceiver>
        <geo:GnssReceiver gml:id="sitelog_receiver.1.ADE1"
dateInserted="2017-11-10">
          ...
        </geo:GnssReceiver>
</geo:gnssReceiver>

I have tried, without success, to add a <ClientProperty> to the the nested
mapping file like so:

<AttributeMapping>
    <targetAttribute>geo:GnssReceiver</targetAttribute>
    <ClientProperty>
        <name>dateInserted</name>
        <value>database-dateinserted-field</value>
    </ClientProperty>
</AttributeMapping>

Any guidance on how to proceed is much appreciated.

-Gavin
​
-- 
Gavin Medley
Software Engineer, UNAVCO
6350 Nautilus Drive
Boulder, CO 80301-5394
Mobile: 505-819-1270 <(505)%20819-1270>
[email protected]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to