The data of the lower layer of the relief is not displayed with max_data_level

classic Classic list List threaded Threaded
3 messages Options
_Alex_ _Alex_
Reply | Threaded
Open this post in threaded view
|

The data of the lower layer of the relief is not displayed with max_data_level

Hi!
I use osgEarth latest version. I add several layers of relief. The first layer is a weak resolution. The second layer of higher resolution. The second layer contains areas with nodata. Data from the first layer of relief is not displayed in these areas. These areas display nodata.  For example:


<map version="2">
     <image driver="gdal" name="world-tiff" cache_enabled="false">
        <url>../data/world.tif</url>
        <caching_policy usage="no_cache"/>               
    </image>
       
    <image name="no_data" driver="gdal">
        <url>../data/nodata.tif</url>
    </image>
       
    <elevation name="readymap_elevation" driver="tms">
        <url>http://readymap.org/readymap/tiles/1.0.0/116/</url>
                <max_data_level>4</max_data_level>
    </elevation>
       
    <elevation name="terrain_no_data" driver="gdal">
        <url>../data/nodata.tif</url>
                <max_data_level>5</max_data_level>
    </elevation>
       
    <viewpoints>
        <viewpoint name="Yes terrain data" heading="0.0" height="0" lat="5.0" long="15.0" pitch="-75" range="1000000"/>
                <viewpoint name="No terrain data" heading="0.0" height="0" lat="5.0" long="10.0" pitch="-75" range="1000000"/>
    </viewpoints>
</map>

At point "No terrain data" there is no data from the relief layer "readymap_elevation".


If in TerrainLayer.cpp I comment the line  
    if (options().maxDataLevel().isSet() && localLOD > options().maxDataLevel().get())
    {
        return false;
    }
, then at the point "No terrain data" the data from the terrain layer "readymap_elevation" is displayed.


Data from the first layer of relief should not be displayed with max_data_level or is it a bug in osgEarth?  
_Alex_ _Alex_
Reply | Threaded
Open this post in threaded view
|

Re: The data of the lower layer of the relief is not displayed with max_data_level

I don't know if it is bug or if it is the correct behavior, not adapted for me.
Is it correct work of TerrainLayer with NODATA and max_data_level?
Thanks a lot for the support.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: The data of the lower layer of the relief is not displayed with max_data_level

Alex,
I read your post a few times, but it's not clear what you are trying to achieve. What is your objective in using max_data_level?
Glenn Waldron / Pelican Mapping