having cache issues with 2.10.1

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

having cache issues with 2.10.1

i recently upgraded my project's OsgEarth library dependencies to version 2.10.1 from 2.9. Now the cache will not load, and i get this error message from the terminal:

[osgEarth]* [TerrainLayer] Layer "readymap_imagery" Layer "readymap_imagery" is requesting a "tms" cache, but a "0" cache exists at the specified location. The cache will ignored for this layer

I have these environment variables set (just as they were for version 2.9):

OSGEARTH_CACHE_DRIVER=filesystem
OSGEARTH_CACHE_PATH=/home/centos7user/Downloads/cache

i started from a clean cache folder. It is definitely writing files to cache, it just won't read anything from it and i get no imagery without the network connection.

on a lark I tried OSGEARTH_CACHE_DRIVER=tms and get this error from the terminal:

[osgEarth]* [CacheFactory] Sorry, but TMS caching is no longer supported; try "filesystem" instead

Does anyone have any back story info on this issue that could be of any help, thanks in advance ...

gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: having cache issues with 2.10.1

Tim,
Do you have an earth file you can show?
Glenn Waldron / Pelican Mapping
Tim Carbonneau Tim Carbonneau
Reply | Threaded
Open this post in threaded view
|

Re: having cache issues with 2.10.1

roger, based on ocean.earth from the tests folder in the distro, then i added some data overlays, thanks ....


<map name="readymap.org" type="geocentric">



    <elevation name="readymap_elevation" driver="tms" vdatum="egm96">
        <url>http://readymap.org/readymap/tiles/1.0.0/116/</url>
    </elevation>

        <image name="readymap_imagery" driver="tms">
        <url>http://readymap.org/readymap/tiles/1.0.0/7/</url>
    </image>
   
    <simple_ocean>
        <max_altitude>1e10</max_altitude>
        <texture>/home/centos7user/Downloads/OSGEARTH_DATA_HOME/textures/water_modulate.png</texture>
        <texture_lod>13</texture_lod>
        <use_bathymetry>true</use_bathymetry>
    </simple_ocean>

    <feature_model name="cities">

        <features name="cities" driver="ogr">
            <url>../earth_add_ons/cities.gpkg</url>
        </features>
       
        <layout>
            <level name="far"    style="large"  max_range="1e10"/>
            <level name="medium" style="medium" max_range="3000000"/>
            <level name="close"  style="small"  max_range="200000"/>
        </layout>

        <styles>
            <selector name="large" class="label-large">
                <query>
                    <expr> 
<![CDATA[ rank_max >= 12 ]]>
 </expr>
                </query>
            </selector>
           
            <selector name="medium" class="label-medium">
                <query>
                    <expr> 
<![CDATA[ rank_max >= 8 AND rank_max < 12 ]]>
 </expr>
                </query>
            </selector>
           
            <selector name="small" class="label-small">
                <query>
                    <expr> 
<![CDATA[ rank_max < 8 ]]>
 </expr>
                </query>
            </selector>
           
            <style type="text/css"> label { text-declutter: true; text-content: [name]; text-encoding: utf-8; text-align: center_center; text-priority: [rank_max]; text-halo: #2f2f2f; } label-large : label { text-size: 24.0; text-color: #ffff00; } label-medium : label { text-size: 20.0; } label-small : label { text-size: 16.0; } </style>        </styles>
       
    </feature_model>

    <feature_model name="states">
        <features name="states" driver="ogr">
            <url>../earth_add_ons/usa.shp</url>
        </features>       
        <styles>
            <style type="text/css"> states { stroke: #ffff00; stroke-width: 2px; render-depth-offset: true; stroke-tessellation-size: 100km; altitude-clamping: terrain-drape; } </style>        </styles>       
    </feature_model>

    <feature_model name="roads">
        <features name="roads" driver="ogr">
            <url>../earth_add_ons/ne_10m_roads.shp</url>
        </features>
        <styles>
            <style type="text/css"> roads { stroke: #ff0000; stroke-width: 1.75px; render-depth-offset: true; stroke-tessellation-size: 100km; altitude-clamping: terrain-drape; } </style>        </styles>       
    </feature_model>
   
    <feature_model name="rivers">
        <features name="rivers" driver="ogr">
            <url>../earth_add_ons/ne_10m_rivers_north_america.shp</url>
        </features>
        <styles>
            <style type="text/css"> rivers { stroke: #0000ff; stroke-width: 1.25px; render-depth-offset: true; stroke-tessellation-size: 100km; altitude-clamping: terrain-drape; } </style>        </styles>       
    </feature_model> 
   
    <feature_model name="urban_area1">
        <features name="urban_area1" driver="ogr">
            <url>../earth_add_ons/ne_50m_urban_areas.shp</url>
        </features>
        <styles>
            <style type="text/css"> urban_area1 { fill: #fcac348f; altitude-clamping: terrain-drape; } </style>        </styles>
    </feature_model> 
   
    <feature_model name="urban_area2">
        <features name="urban_area2" driver="ogr">
            <url>../earth_add_ons/ne_10m_urban_areas.shp</url>
        </features>
        <styles>
            <style type="text/css"> urban_area2 { stroke: #fcac34; stroke-width: 2px; stroke-tessellation-size: 100km; altitude-clamping: terrain-drape; } </style>        </styles>
    </feature_model>
   
    <feature_model name="airports">
        <features name="airports" driver="ogr">
            <url>../earth_add_ons/ne_10m_airports.shp</url>
        </features>
        <styles>
            <style type="text/css"> airports { icon: "../earth_add_ons/Air-Civilian.png"; icon-align: center-center; icon-declutter: true; text-content: [name]; text-encoding: utf-8; text-align: right_center; text-size: 12.0; text-color: #00f0ff; altitude-clamping: terrain-drape; } </style>        </styles> 
    </feature_model>
   
    <viewpoints>
        <viewpoint name="Blue Marble">
            <heading>0.</heading>
            <pitch>-90.</pitch>
            <range>14000000.0m</range>
            <long>-86.689</long>
            <lat>34.684</lat>
            <height>40000.</height>
            <srs>+proj=longlat +datum=WGS84 +no_defs </srs>
        </viewpoint>
    </viewpoints>
</map>