580 | | Add an elevation layer to !MapGuide, the elevation layer should display with grid surface, like Figure1. |
| 580 | Add some elevation data,such as DEM/TIFF file and layer definition with surface style,like |
| 581 | {{{ |
| 582 | <LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd" version="1.0.0"> |
| 583 | <GridLayerDefinition> |
| 584 | <ResourceId>Library://Publish/Data/Raster_1.FeatureSource</ResourceId> |
| 585 | <FeatureName>rasters:davenport</FeatureName> |
| 586 | <Geometry>Image</Geometry> |
| 587 | <GridScaleRange> |
| 588 | <SurfaceStyle> |
| 589 | <Band>1</Band> |
| 590 | <DefaultColor>0000FF00</DefaultColor> |
| 591 | </SurfaceStyle> |
| 592 | <ColorStyle> |
| 593 | <HillShade> |
| 594 | <Band>1</Band> |
| 595 | <Azimuth>45</Azimuth> |
| 596 | <Altitude>45</Altitude> |
| 597 | </HillShade> |
| 598 | <ColorRule> |
| 599 | <LegendLabel>-1.79e+308 to 1.79e+308</LegendLabel> |
| 600 | <Filter>(Height(1) > -1.7976931348623158e+308) AND (Height(1) < 1.7976931348623158e+308)</Filter> |
| 601 | <Color> |
| 602 | <ExplicitColor>FF00FF00</ExplicitColor> |
| 603 | </Color> |
| 604 | </ColorRule> |
| 605 | <ColorRule> |
| 606 | <LegendLabel>{DEFAULT}</LegendLabel> |
| 607 | <Color> |
| 608 | <ExplicitColor>FF006423</ExplicitColor> |
| 609 | </Color> |
| 610 | </ColorRule> |
| 611 | </ColorStyle> |
| 612 | <RebuildFactor>1</RebuildFactor> |
| 613 | </GridScaleRange> |
| 614 | </GridLayerDefinition> |
| 615 | }}} |
| 616 | to a !MapGuide server, the elevation layer should display, like Figure1 in !MapGuide studio. |