GeoTools
  1. GeoTools
  2. GEOT-2522

Unable to calculate query extent using Id filter

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.7, 2.6-M2
    • Component/s: arcsde plugin
    • Labels:
      None

      Description

      I can't use a FidFilter to calculate an extent in ArcSDE.

      I believe the problem stems from the fact that ArcSDEQuery.calculateQueryExtent(...) is using FidReader.NULL_READER when calling createQuery rather than obtaining the FID strategy from the typeInfo as is done in the ArcSDEQuery.calculateResultCount(...), which does work correctly with a FidFilter.

      1. calculateQueryExtent
        boundsQuery = createQuery(session, fullSchema, realQuery, FIDReader.NULL_READER,
        versioningHandler);
      1. calculateResultCount
        final FIDReader fidStrategy = typeInfo.getFidStrategy();
        countQuery = createQuery(session, fullSchema, query, fidStrategy, versioningHandler);

      I think ArcSDEQuery.createInprocessViewQuery(...) may have a similar issue since it also just uses a NULL_READER, but my usage doesn't follow this code path so I can't say for sure.

        Activity

        Hide
        Gabriel Roldan added a comment -
        fixed on trunk at r33508
        Show
        Gabriel Roldan added a comment - fixed on trunk at r33508

          People

          • Assignee:
            Gabriel Roldan
            Reporter:
            Shaun Forbes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: