[Chameleon-dev] [Bug 1709] New: ExpressionBuilder does not deal correctly with reprojection

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed May 2 02:19:51 EDT 2007


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

           Summary: ExpressionBuilder does not deal correctly with
                    reprojection
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at osgis.nl


The BBOX filter which is constructed, is constructed in the layer's SRS, and not
in the map's SRS, which does not make sense at all.

The change should be made in ExpressionBuilder.widget.php in buildFilterString:

Old function (layer projection, fall back on map's projection):

        $szProjection = trim( $oLayer->getprojection() );
        if ( strlen( $szProjection ) <= 0 )
            $szProjection = trim( $this->moMapObject->oMap->getprojection() );

Change (use map's projection, fall back on layer's projection):

        // get projection
        $szProjection = trim( $this->moMapObject->oMap->getprojection() );
        if ( strlen( $szProjection ) <= 0 )
            $szProjection = trim( $oLayer->getprojection() );



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


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list