Changes between Version 18 and Version 19 of MapGuideRfc16
- Timestamp:
- 03/04/07 15:51:25 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc16
v18 v19 37 37 === Layer Definition Schema Modifications === 38 38 39 The layer definition schema contains numerous <!ExtendedData1> elements that allow the schema to be extended without breaking forward or backward compatibility. The changes proposed in this RFC would initially be added into one of these elements, and would eventually be moved to the main part of the schema whenever the next schema version update is carried out. See [wiki:MapGuideRfc10 MapGuide RFC 10] for more details.40 41 39 The affected section of the original schema looks like this: 42 40 … … 68 66 <xs:element name="PointTypeStyle" type="PointTypeStyleType">... 69 67 </xs:choice> 70 <xs:element name="ExtendedData1" minOccurs="0" > 71 <xs:complexType> 72 <xs:sequence> 73 <xs:element name="ElevationSettings" type="ElevationSettingsType" minOccurs="0" /> 74 <xs:element name="ExtendedData2" type="ExtendedDataType" minOccurs="0" /> 75 </xs:sequence> 76 </xs:complexType> 77 </xs:element> 68 <xs:element name="ElevationSettings" type="ElevationSettingsType" minOccurs="0" /> 69 <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0" /> 78 70 </xs:sequence> 79 71 </xs:complexType> … … 83 75 <xs:element name="ZExtrusion" type="xs:string" minOccurs="0" /> 84 76 <xs:element name="ZOffsetType" type="ElevationTypeType" minOccurs="0" /> 77 <xs:element name="Unit" type="LengthUnitType"> 85 78 <xs:element name="ExtendedData1" type="ExtendedDataType" minOccurs="0" /> 86 79 </xs:sequence> … … 99 92 Descriptions of the key parameters are given below: 100 93 101 ||ZOffset||An expression that evaluates to the height of the base of the feature in meters||102 ||ZExtrusion||An expression that evaluates to the desired vertical extrusion (in meters) to be applied to the feature||94 ||ZOffset||An expression that evaluates to the height of the base of the feature in the units specified in the <Unit> element|| 95 ||ZExtrusion||An expression that evaluates to the desired vertical extrusion (in specified units) to be applied to the feature|| 103 96 ||ZOffsetType||A string value, either "!RelativeToGround" or "Absolute", that indicates how to interpret the ZOffset value|| 97 ||Unit||A string value corresponding to one of the values in the existing LengthUnitType type|| 104 98 105 99 Additional !ExtendedData elements have been added to allow for future extensions to this part of the schema. … … 115 109 ... 116 110 ... 117 <ExtendedData1> 118 <ElevationSettings> 111 <ElevationSettings> 119 112 <ZOffset>0</ZOffset> 120 113 <ZExtrusion>HEIGHT_AGL</ZExtrusion> 121 114 <ZOffsetType>RelativeToGround</ZOffsetType> 122 </ElevationSettings>123 </E xtendedData1>115 <Unit>Meters</Unit> 116 </ElevationSettings> 124 117 </VectorScaleRange> 125 118 </VectorLayerDefinition> … … 129 122 === MDF Model and Parser Modifications === 130 123 131 The MDF Model would require the addition of t wo new classes: '''!ElevationSettings''' and '''!VectorScaleRangeExtendedData1''', corresponding to the <!ElevationSettings> and custom <!ExtendedData1> elements respectively. Similarly, the MDF Parser would require two new classes: '''IOElevationSettings''' and '''IOVectorScaleRangeExtendedData1'''.124 The MDF Model would require the addition of the new class: '''!ElevationSettings''', corresponding to the <!ElevationSettings> elements. Similarly, the MDF Parser would require the new class: '''IOElevationSettings'''. 132 125 133 The parser class es would be responsible for reading and writing the elevation settings to and from XML. The model classes would be used to store and access those settings. The methods implemented by each class would be very simple get/set or read/write functions.126 The parser class would be responsible for reading and writing the elevation settings to and from XML. The model class would be used to store and access those settings. The methods implemented by each class would be very simple get/set or read/write functions. 134 127 135 128 === Stylization Modifications ===