Changeset 456

Show
Ignore:
Timestamp:
11/14/08 18:19:21 (2 months ago)
Author:
armin
Message:

patch from T. Raffin for use layers with complex queries that are too long to select results cause maxscaledenom is not used.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pmapper/trunk/incphp/map/map.php

    r402 r456  
    356356                $mapLay = $this->map->getLayerByName($ai); 
    357357                if ((in_array($mapLay->name, $this->groups) || in_array($mapLay->group, $this->groups)) && checkScale($this->map, $mapLay, $this->map->scale)) { 
    358                    $useAltImgFormat = 1; 
    359                    break; 
    360                 }  
     358                       $useAltImgFormat = 1; 
     359                       break; 
     360                } 
    361361            } 
    362362        } 
     
    457457        } elseif ($zoom_type == "zoomgroup") { 
    458458            $this->pmap_zoomgroup(); 
    459          
     459             
    460460        } 
    461461     
     
    625625        $this->map->setextent($groupExt['minx'], $groupExt['miny'], $groupExt['maxx'], $groupExt['maxy']); 
    626626    } 
    627          
     627     
    628628     
    629629    /** 
     
    734734        } else { 
    735735            // Add selected shape to new layer 
     736 
     737            // Modified by Thomas RAFFIN (SIRAP) 
     738            // use layers with complex queries that are too long to select results  
     739            // cause maxscaledenom is not used... 
     740            if ($qLayer->getMetaData("PM_RESULT_DATASUBSTITION") != "") { 
     741                $olddata = $qLayer->data; 
     742                $qLayer->set("data", $qLayer->getMetaData("PM_RESULT_DATASUBSTITION")); 
     743            } 
     744 
    736745            $qLayer->open(); 
    737746            foreach ($shpindexes as $resShpIdx) { 
     
    757766             
    758767            $qLayer->close(); 
     768 
     769            // Modified by Thomas RAFFIN (SIRAP) 
     770            // reset data tag 
     771            if (isset($olddata)) { 
     772                $qLayer->set("data", $olddata); 
     773            } 
     774 
    759775        } 
    760776