Dear Ricardo, I gave a check and looks that this is a bug in AppSchema extension: the top level AttributeMapping is used just to retrieve the id value and the ClientProperty element is ignored. I would recommend that you go ahead and open a JIRA bug ticket for it.
Best regards, Marco Volpini Il giorno lun 17 mag 2021 alle ore 18:55 Ricardo.Gualberto--- via Geoserver-devel <[email protected]> ha scritto: > 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 in the GetFeature response > > <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*"> > > > > > > > CONFIDENTIALITY NOTICE: This email and any attachments are for the sole > use of the intended recipient and may contain material that is proprietary, > confidential, privileged or otherwise legally protected or restricted under > applicable government laws. Any review, disclosure, distributing or other > use without expressed permission of the sender is strictly prohibited. If > you are not the intended recipient, please contact the sender and delete > all copies without reading, printing, or saving. > > _______________________________________________ > Geoserver-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-devel >
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
