MapGuide Open Source:  Home |  Download |  Internals

Ticket #616 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

Incorrect XML definition

Reported by: jnel Assigned to: ksgeograf
Priority: medium Milestone:
Component: Maestro Version: 2.0.1
Severity: minor Keywords: Parameteroverrides XML Structure
Cc: External ID:

Description

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

Change History

07/07/08 21:23:44 changed by jnel

  • status changed from new to closed.
  • resolution set to fixed.

This is not a bug. The Structure is correct according to Layerdefinition-1.1.0.xsd

Apparantly it is valid XML

Apologies for a false alarm

07/08/08 03:28:53 changed by ksgeograf

No worries. I was on vacation, so I just saw the post today :).