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)

      1. cql_bbox.patch
        2 kB
        Jared Erickson

        Activity

        Hide
        Mauricio Pazos added a comment -
        It was solved in trunk, revision 35095 (backport to 2.6.x)
        Show
        Mauricio Pazos added a comment - It was solved in trunk, revision 35095 (backport to 2.6.x)
        Hide
        Jared Erickson added a comment -
        Wow! That was quick! Mauricio, thank you for apply the patch so quickly.
        Show
        Jared Erickson added a comment - Wow! That was quick! Mauricio, thank you for apply the patch so quickly.
        Hide
        Mauricio Pazos added a comment -
        :), thanks a lot for your patch
        Show
        Mauricio Pazos added a comment - :), thanks a lot for your patch

          People

          • Assignee:
            Mauricio Pazos
            Reporter:
            Jared Erickson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: