Changes between Version 3 and Version 4 of MapGuideRfc17
- Timestamp:
- 02/26/07 09:10:25 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc17
v3 v4 37 37 The schema modifications could be made forward/backward compatible by adding them to the <!ExtendedData1> elements that already exist in the schema. See [wiki:MapGuideRfc10 MapGuide RFC 10] for details on extended data. However, it seems likely that [wiki:MapGuideRfc14 MapGuide RFC 14] will require a schema version update, in which case the modifications from this RFC (and [wiki:MapGuideRfc16 MapGuide RFC 16]) can be rolled into the same update. The schema changes described below assume we are not using extended data. 38 38 39 The element type that specifies the style of polylines and polygon edges in the layer definition schema is < StrokeType>. It would be modified from this:39 The element type that specifies the style of polylines and polygon edges in the layer definition schema is <!StrokeType>. It would be modified from this: 40 40 41 41 {{{ … … 86 86 }}} 87 87 88 The SizeContextType type already exists in the layer definition schema, and is used to specify the size context for symbols and labels.88 The !SizeContextType type already exists in the layer definition schema, and is used to specify the size context for symbols and labels. 89 89 90 90 ==== Example === … … 92 92 The following XML snippet represents a polyline line style using the new schema: 93 93 {{{ 94 <LineTypeStyle> 95 <LineRule> 96 ... 97 ... 98 <LineSymbolization2D> 99 <LineStyle>Solid</LineStyle> 100 <Thickness>0.5</Thickness> 101 <Color>FF808080</Color> 102 <Unit>Inches</Unit> 103 <SizeContext>MappingUnits</SizeContext> 104 </LineSymbolization2D> 105 </LineRule> 106 </LineTypeStyle> 94 107 }}} 95 108 … … 98 111 The MDF Model uses the '''Stroke''' class to store line style information. This class would require new methods to get and set the size context. These would be identical to the corresponding existing methods in the '''Symbol''' class that serve the same purpose. 99 112 100 The MDF Parser uses the '''IOStroke''' class to read and write the XML stroke definitions. It would be updated to handle reading and writing of the new SizeContext element.113 The MDF Parser uses the '''IOStroke''' class to read and write the XML stroke definitions. It would be updated to handle reading and writing of the new !SizeContext element. 101 114 102 115 === Stylization Modifications ===