[Chameleon-dev] [Bug 514] New: [ROI Tools] ExtractWFS widget ignores ExpressionBuilder's query

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Mon Jul 12 17:51:30 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=514

           Summary: [ROI Tools] ExtractWFS widget ignores
                    ExpressionBuilder's query
           Product: Chameleon
           Version: 1.99
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: dmorissette at dmsolutions.ca


>8.If a query is active in a region of interest, and the Extract WFS 
>> Data button is pushed the GML returned is of the region of interest, 
>> not the GML of the query. Does this make sense? 

Paul wrote:

I have checked the code and it seems to try to accomodate an existing filter on
a layer by restoring it after extraction.  In the specific case of the existing
filter containing a spatial element starting with <bbox or <dwithin or
<intersect, the existing filter will be used for extraction.  Otherwise, the
filter appears to be ignored (which could be a bug) for extraction.

I think that the fix (if it is a bug) could be simple, since it happens in the
specific case that the existing filter has no spatial component, the new filter
could be added (on line 294 in my version of the code) in the else clause of the
section that starts with the comment * Build Spacial Filter:

    else
    {
        $szSpacialFilter = "<AND>".$szSpacialFilter.$szExistingWFSFilter."</AND>";
        // set flag to clear the metadata item after use
        $bClearFilter = true;
    } 

This will obviously need to be tested and I am not in a position to be able to
do that so I defer implementation to Julien :>



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list