Ying, gsml:CGI_NumericValuePropertyType is a perfectly legal type for gsml:positionalAccuracy. However, you have misspelled it as "gsml:CGI_NumbericValuePropertyType" (you have an extra "b" in the type name). Change: gsml:CGI_NumbericValuePropertyType to: gsml:CGI_NumericValuePropertyType
Your targetAttribute xpath is also misspelled (with an extra "b"): gsml:positionalAccuracy/gsml:CGI_NumbericValue/gsml:value should be: gsml:positionalAccuracy/gsml:CGI_NumericValue/gsml:value Kind regards, Ben. On 13/10/10 22:47, ssss wrote: > Hi, > > A simple question concerning GeoSciM: > > When I deal with the gsml:positionalAccuracy in GeoSciML, I think it is more > reasonable to use gsml:CGI_NumbericValue. However, when I check the user > manual from > > http://docs.geoserver.org/trunk/en/user/data/app-schema/mapping-file.html > > The example is like > > > <AttributeMapping> > <targetAttribute>gsml:positionalAccuracy</targetAttribute> > <targetAttributeNode>gsml:CGI_TermValuePropertyType</targetAttributeNode> > </AttributeMapping> > > where gsml:CGI_TermValue is considered. > > So if define > > <AttributeMapping> > > <targetAttribute>gsml:positionalAccuracy</targetAttribute> > > <targetAttributeNode>gsml:CGI_NumbericValuePropertyType</targetAttributeNode> > </AttributeMapping> > <AttributeMapping> > > <targetAttribute>gsml:positionalAccuracy/gsml:CGI_NumbericValue/gsml:value</targetAttribute> > <sourceExpression> > <OCQL>MF_POSACCU</OCQL> > </sourceExpression> > <ClientProperty> > <name>uom</name> > <value>'urn:ogc:def:uom:UCUM:m'</value> > </ClientProperty> > </AttributeMapping> > > I get error message. > > My question is which one, gsml:CGI_NumbericValue or gsml:CGI_TermValue is > right in gsml:positionalAccuracy? > > Thanks, > > Ying -- Ben Caradoc-Davies <[email protected]> Software Engineering Team Leader CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
