Bogus WARN in GroupingFeatureIterator3 when processing multivalued source properties ------------------------------------------------------------------------------------
Key: GEOT-1872 URL: http://jira.codehaus.org/browse/GEOT-1872 Project: GeoTools Issue Type: Bug Components: data complex Affects Versions: 2.4.5 Reporter: Ben Caradoc-Davies Assignee: Ben Caradoc-Davies When GroupingFeatureIterator3 is processing multivalued source properties, XPath.step() is flooding the console and logs with warnings because it is used to process names without namespace prefixes (see examples below). I could fix this to add the default prefix to silence the warning, but I was wondering if this is necessary. The names are multivalued source property names, that is, names of columns in the database view. It looks like XPath is being used to normalise the names, but in all the examples I have seen these are just simple names like "lithology" or "BGS_ID" or "LITHOLOGY_". Is the use of XPath.steps() in GroupingFeatureIterator3 still necessary? Are source property names ever xpaths, or are they always only simple names? That is, can I simplify the code be removing this bit? Under what circumstances can a source property name be a (non-simple-name) xpath? Examples: 2008-07-02 16:06:39,004 WARN [complex.filter] - Using root's namespace urn:cgi:xmlns:CGI:GeoSciML:2.0 for step named 'lithology', as no prefix was stated 2008-07-02 16:06:39,004 WARN [complex.filter] - Using root's namespace urn:cgi:xmlns:CGI:GeoSciML:2.0 for step named 'componentrole_cdspace', as no prefix was stated 2008-07-02 16:06:39,004 WARN [complex.filter] - Using root's namespace urn:cgi:xmlns:CGI:GeoSciML:2.0 for step named 'proportion', as no prefix was stated 2008-07-02 16:06:39,004 WARN [complex.filter] - Using root's namespace urn:cgi:xmlns:CGI:GeoSciML:2.0 for step named 'componentrole', as no prefix was stated or in unit tests 3/07/2008 09:41:58 org.geotools.data.complex.filter.XPath deglose WARNING: Using root's namespace http://www.opengis.net/xmml for step named 'BGS_ID', as no prefix was stated 3/07/2008 09:41:58 org.geotools.data.complex.filter.XPath deglose WARNING: Using root's namespace http://www.opengis.net/xmml for step named 'LITHOLOGY_', as no prefix was stated -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel