jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
GeoTools
  • GeoTools
  • GEOT-3004

CQL BBOX Round Trip

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.6.2
  • Fix Version/s: 2.6.3, 2.7-M0
  • Component/s: cql
  • Labels:
    None
  • Environment:
    Mac OS X 10.6.2, Java 1.6.0_17
  • Testcase included:
    yes

Description

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)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    cql_bbox.patch
    22/Mar/10 9:51 PM
    2 kB
    Jared Erickson
  2. Hide
    Zip Archive
    CqlBug.zip
    22/Mar/10 9:51 PM
    4 kB
    Jared Erickson
    1. XML File
      CqlBug/pom.xml 2 kB
    2. Java Source File
      CqlBug/src/test/.../cqlbug/AppTest.java 0.9 kB
    Download Zip
    Show
    Zip Archive
    CqlBug.zip
    22/Mar/10 9:51 PM
    4 kB
    Jared Erickson

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
Hide
Permalink
Mauricio Pazos added a comment - 23/Mar/10 8:15 AM
It was solved in trunk, revision 35095 (backport to 2.6.x)
Show
Mauricio Pazos added a comment - 23/Mar/10 8:15 AM It was solved in trunk, revision 35095 (backport to 2.6.x)
Hide
Permalink
Jared Erickson added a comment - 23/Mar/10 10:24 PM
Wow! That was quick! Mauricio, thank you for apply the patch so quickly.
Show
Jared Erickson added a comment - 23/Mar/10 10:24 PM Wow! That was quick! Mauricio, thank you for apply the patch so quickly.
Hide
Permalink
Mauricio Pazos added a comment - 24/Mar/10 3:09 AM
:), thanks a lot for your patch
Show
Mauricio Pazos added a comment - 24/Mar/10 3:09 AM :), thanks a lot for your patch

People

  • Assignee:
    Mauricio Pazos
    Reporter:
    Jared Erickson
Vote (0)
Watch (0)

Dates

  • Created:
    22/Mar/10 9:51 PM
    Updated:
    24/Mar/10 3:09 AM
    Resolved:
    23/Mar/10 8:15 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.