<normalize_edges> Element

(Documentation :: Earth Files?)

The <normalize_edges> element controls whether or not osgEarth normalize the edges of terrain tiles to ensure that they line up exactly. This is useful when you are using an elevation datasource such as WMS where neighboring terrain tiles will not have the exact same values on the edges. <normalize_edges> is true by default.

Example:

<map name="MyMap" type="geocentric">

  <image name="TMS" driver="tms">
    <url>http://labs.metacarta.com/wms-c/Basic.py/1.0.0/satellite/</url>  
    <format>jpeg</format>
    <tile_size>256</tile_size>
  </image>

   <heightfield name="srtm" driver="wms">
       <url>http://localhost/cgi-bin/mapserv.exe?map=srtm30_plus.map</url>
       <layers>srtm30plus</layers>
       <format>tiff</format>
       <tile_size>32</tile_size>
   </heightfield> 

   <!--Normalize edges-->
   <normalize_edges>true</normalize_edges>
</map>

back to element reference