[mapguide-trac] #616: Incorrect XML definition

MapGuide Open Source trac_mapguide at osgeo.org
Fri Jul 4 01:57:20 EDT 2008


#616: Incorrect XML definition
-----------------------+----------------------------------------------------
   Reporter:  jnel     |       Owner:  ksgeograf                       
       Type:  defect   |      Status:  new                             
   Priority:  medium   |   Milestone:                                  
  Component:  Maestro  |     Version:  2.0.1                           
   Severity:  minor    |    Keywords:  Parameteroverrides XML Structure
External_id:           |  
-----------------------+----------------------------------------------------
 When i create a compound symboldefinition in Maestro, the XML provided in
 the Autodesk document
 (building_symbol_libraries_with_autodesk_mapguide_enterprise_2009.pdf) for
 the hospital symbol is:
 <?xml version="1.0" encoding="UTF-8"?>
 <SimpleSymbolDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-
 instance"
 xsi:noNamespaceSchemaLocation="SymbolDefinition-1.0.0.xsd"
 version="1.0.0">
 <Name>Hospital</Name>
 <Description>International Hospital Symbol</Description>
 <Graphics>
 <Path>
 <Geometry>M -2.5,2.5 H 2.5 V -2.5 H -2.5 Z</Geometry>
 <FillColor>FF0000FF</FillColor>
 <LineColor>FFFFFFFF</LineColor>
 <LineWeight>0.75</LineWeight>
 <LineWeightScalable>false</LineWeightScalable>
 </Path>
 <Path>
 <Geometry>M -1.0,1.25 V -1.25 Z M 1.0,1.25 V -1.25 Z M -1.0,0.0 H 1.0
 Z</Geometry>
 <LineColor>FFFFFFFF</LineColor>
 <LineWeight>0.75</LineWeight>
 <LineWeightScalable>false</LineWeightScalable>
 </Path>
 </Graphics>
 <PointUsage/>
 '''<ParameterDefinition/>'''
 </SimpleSymbolDefinition>

 On the second last line the parameterdefinition structure is incorrect.

 When i generate the layerdefinition in Maestro I provide it the following

  <CompositeSymbolization>
             <SymbolInstance>
 <ResourceId>Library://sys/Symbols/Road.SymbolDefinition</ResourceId>
               <ParameterOverrides>
               </ParameterOverrides>
             </SymbolInstance>
           </CompositeSymbolization>

 I Validate and save this definition, without error.

 When I look at the xml again It is:


 <CompositeRule>
           <LegendLabel />
           <CompositeSymbolization>
             <SymbolInstance>
 <ResourceId>Library://sys/Symbols/Road.SymbolDefinition</ResourceId>
             <ParameterOverrides />
             </SymbolInstance>
           </CompositeSymbolization>
         </CompositeRule>

 I Believe the ParameterOverrides  is illegal xml structure

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/616>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list