[mapguide-trac] #504: StylizationUtil::GetCompositeSymbolizationBounds doesn't handle expressions

MapGuide Open Source trac_mapguide at osgeo.org
Mon Mar 17 12:14:55 EDT 2008


#504: StylizationUtil::GetCompositeSymbolizationBounds doesn't handle expressions
----------------------------+-----------------------------------------------
 Reporter:  waltweltonlair  |         Owner:  waltweltonlair
     Type:  defect          |        Status:  assigned      
 Priority:  medium          |     Milestone:  2.1           
Component:  General         |       Version:  2.0.0         
 Severity:  major           |    Resolution:                
 Keywords:                  |   External_id:                
----------------------------+-----------------------------------------------
Comment (by waltweltonlair):

 In Stylization the ExpressionHelper::!GetExpressionEngine method is used
 to obtain an expression engine initialized with the custom stylization
 functions.  As part of this call strings need to be read from the platform
 resource file.  Therefore in order for this call to succeed the platform
 must have been previously initialized via a call to
 MgConfiguration::!LoadConfiguration (which includes specifying the path to
 the resource file).

 Until recently !MapGuide Studio (which calls
 StylizationUtil::!GetCompositeSymbolizationBounds) did not initialize the
 platform, which is why NULL was being used for the expression engine.  But
 now that Studio does initialize the platform we can change this code to
 create the engine.

 In general, any application which uses the platform must initialize it via
 a call to MgConfiguration::!LoadConfiguration.

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


More information about the mapguide-trac mailing list