<cache_only> Element
(Documentation :: Earth Files?)
The <cache_only> element controls whether or not osgEarth will run completely off of the cache. This is useful for running in a "cache-only" mode if you want to populate your local cache and run completely offline. By default, the <cache_only> is false. Setting its value to true will inform osgEarth to use cached data exclusively.
You can also setting the OSGEARTH_CACHE_ONLY environment to put osgEarth in cache only mode. The presence of this environment variable will override any settings in Earth files.
Example:
<map name="MyMap" type="geocentric">
<!--Add a TMS image source-->
<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>
<cache type="tilecache">
<path>c:/osgearth_cache</path>
</cache>
<!--Run completely off of the cache-->
<cache_only>true</cache_only>
</map>
