[mapguide-trac] #501: Buffer command does not buffer all selected features

MapGuide Open Source trac_mapguide at osgeo.org
Thu Jul 24 11:10:10 EDT 2008


#501: Buffer command does not buffer all selected features
-------------------------+--------------------------------------------------
 Reporter:  ronnielouie  |         Owner:         
     Type:  defect       |        Status:  new    
 Priority:  high         |     Milestone:  2.1    
Component:  General      |       Version:  2.0.0  
 Severity:  major        |    Resolution:         
 Keywords:               |   External_id:  1057442
-------------------------+--------------------------------------------------
Comment (by nclayton):

 Since the GenerateFilters method is temporary, the code that calls it
 should do a check to see if it exists before calling it, otherwise use
 GenerateFilter.

 For example, in PHP:

 if(method_exists($selectionObject,'GenerateFilters'))
 {
    $filters =
 $selectionObject->GenerateFilters($layer,$layerClassName,$scnt);
    $selString = $filters->GetItem(0);
 }
 else
 {
     $selString = $selectionObject->GenerateFilter($layer,$layerClassName);
 }

 This will save you from having to alter your code again once the
 GenerateFilters method is removed.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/501#comment:3>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list