[mapguide-trac] #1781: GetPLOT command does not finish using raster data

MapGuide Open Source trac_mapguide at osgeo.org
Mon Aug 15 06:24:40 EDT 2011


#1781: GetPLOT command does not finish using raster data
-------------------------------+--------------------------------------------
   Reporter:  christinebao     |       Owner:  ChristineBao
       Type:  defect           |      Status:  new         
   Priority:  low              |   Milestone:  2.3         
  Component:  Mapping Service  |     Version:  2.1.0       
   Severity:  major            |    Keywords:              
External_id:  1406614          |  
-------------------------------+--------------------------------------------

Comment(by christinebao):

 == Tech assessment ==


 '''Cause of defect:'''[[BR]]
 In r5135 a fixing was submitted to add Get/SetMaxRasterImageWidth(),
 Get/SetMaxRasterImageHeight() of SE_Render, and use it in
 RasterAdapter.cpp:[[BR]]

 {{{
         while (imgW >= renderer->GetMaxRasterImageWidth() || imgH >=
 renderer->GetMaxRasterImageHeight())
         {
             imgW >>= 1;
             imgH >>= 1;
         }
 }}}
 These two properties are set for AGGRenderer or GDRenderer in Rendering
 Service, but not set for EMapRenderer in Mapping Service. Then when meet
 the above loop, the renderer->GetMaxRasterImageWidth() will return a
 random number, for example -858993460, and cause it dead loop.

 '''How to fix:'''[[BR]]
 Set the value for Mapping service.

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


More information about the mapguide-trac mailing list