CQL BBOX Round Trip ------------------- Key: GEOT-3004 URL: http://jira.codehaus.org/browse/GEOT-3004 Project: GeoTools Issue Type: Bug Components: core cql Affects Versions: 2.6.2 Environment: Mac OS X 10.6.2, Java 1.6.0_17 Reporter: Jared Erickson Priority: Minor Attachments: cql_bbox.patch, CqlBug.zip
The org.geotools.filter.text.cql2.FilterToCQL class does not correctly create BBOX CQL statements. The order should be minX, minY, maxX, maxY, but it is encoded as minX, maxX, minY, maxY. // Simple BBOX CQL Statement String cql1 = "BBOX(the_geom, 10.0,20.0,30.0,40.0)"; // Create a Filter Filter f = CQL.toFilter(cql1); // Convert Filter back to CQL String cql2 = CQL.toCQL(f); System.out.println("CQL 1 = " + cql1); >>> CQL 1 = BBOX(the_geom, 10.0,20.0,30.0,40.0) System.out.println("CQL 2 = " + cql2); >>> CQL 2 = BBOX(the_geom, 10.0,30.0,20.0,40.0) -- 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 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel