Changes between Version 11 and Version 12 of MapGuideRfc16
- Timestamp:
- 02/22/07 11:50:11 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc16
v11 v12 33 33 == Proposed Solution == 34 34 35 The proposed solution contains modifications to: the layer definition XML schema, the MDF Model, the MDF Parser, the KML Service, and the Rendering/Stylization project.35 The proposed solution contains modifications to: the Layer Definition XML schema, the MDF Model, the MDF Parser, and the Stylization project. 36 36 37 37 === Layer Definition Schema Modifications === … … 111 111 The parser classes 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. 112 112 113 === Rendering /Stylization Modifications ===113 === Stylization Modifications === 114 114 115 115 A few changes would be required to the internal stylization interfaces in order to pass the elevation settings through the framework to the Stylize() methods of the affected !GeometryAdapters. Inside these methods, the offset and extrusion expressions would be evaluated for the current feature, and the resulting floating point values would be passed as additional parameters into the Renderer::!StartFeature() command. The method signature chages are as follows: … … 156 156 }}} 157 157 158 All concrete classes that i mplement these interface methods would need to be updated to reflect the changes.158 All concrete classes that inherit from !GeometryAdapter would need to be updated to use the new Stylize() method signature. 159 159 160 === KML Service Modifications === 160 All concrete classes that implement the Renderer interface would need to be updated to reflect the changes, though only !KmlRenderer would currently make use of the new parameters. 161 162 ==== !KmlRenderer Modifications ==== 161 163 162 164 The KML Service generates KML using the !KmlRenderer class - a concrete implementation of the Renderer interface. This class would be updated to set the Z coordinate of the generated geometries to be equal to (zOffset + zExtrusion). Also, if zExtrusion > 0, we would write out the KML element <extrude>1</extrude> to indicate that the features should be extruded down to the ground. If zOffset > 0, we will stil extrude the features down to the ground level, since Google Earth does not currently provide a means for rendering floating extruded objects.