0

On app-schema configuration file I have several elements with ClientProperty which shows the property on a WFS GetFeature response but when a ClientProperty is defined for a top element like the SIGMET defined below the id is returned but the two ClientProperties reportstatus and permissibleusage are not! Any ideas why ClientProperty doesn't work on a top element?

    <FeatureTypeMapping>
        <sourceDataStore>iwxxm_sigmet_postgres</sourceDataStore>
        <!-- sourceType is a database table or view -->
        <sourceType>sigmet</sourceType>
        <targetElement>iwxxm:SIGMET</targetElement>
        <attributeMappings>
            <AttributeMapping>
                <targetAttribute>iwxxm:SIGMET</targetAttribute>
                <idExpression>
                    <OCQL>gmlid</OCQL>
                </idExpression>
                <ClientProperty>
                    <name>reportStatus</name>
                    <value>reportstatus</value>
                </ClientProperty>
                <ClientProperty>
                    <name>permissibleUsage</name>
                    <value>if_then_else(isNull(permissibleusage), Expression.NIL, permissibleusage)</value>
                </ClientProperty>
            </AttributeMapping>

I'm getting back

<iwxxm:SIGMET gml:id="a946ee46-2cfb-4e65-8c07-e7f5f8670af01">

but it should be something like

<iwxxm:SIGMET gml:id="a946ee46-2cfb-4e65-8c07-e7f5f8670af01" reportStatus="NORMAL"  permissibleUsage="OPERATIONAL">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.