<elevation_interpolation> Element

(Documentation :: Earth Files?)

This element controls how elevation values are upsampled. Elevation values are upsampled from parent tiles if imagery is available for a given key but elevation is not. For example, if you have an elevation datasource with a maximum LOD of 7 in a map with imagery which has a maximum LOD of 17, elevation values for LOD 8-17 must be upsampled from a LOD 7 parent tile.

Possible values are:

nearest Nearest neighbor interpolation is used
bilinear Bilinear interpolation is used
average Average interpolation is used
triangulate Elevations are interpolated to follow the triangles that would be generated by the 4 sample points surrounding the point to be interpolated.

Examples

<map type="geocentric">
      
   <image name="image" driver="gdal">
       <url>c:/data/image.tif</url>
   </image>

    <heightfield name = "elevation" driver = "gdal">
      <url>c:/data/elevation.tif</url>
    </heightfield>

    <!--Specify nearest interpolation -->
    <elevation_interpolation>nearest</elevation_interpolation>
    
</map>

back to element reference