Pointing to Cache data on a local Server

classic Classic list List threaded Threaded
3 messages Options
Nelson A. Cysneros Nelson A. Cysneros
Reply | Threaded
Open this post in threaded view
|

Pointing to Cache data on a local Server

I would like to get osgEarth running in a lab that does not have internet access.  
I was able to move all the cache data I have accumulated to one computer in that lab and got osgEarth to work by specifying the following in the Earth file:


  <cache_only>true</cache_only>

Now I would like to make that cache data available to all computers in the lab, so I uploaded the cache data to a local server in the lab and tried to point osgEarth directly to it. Something like this:

          <image name="bluemarble" driver="tms">
             <url>http://localhost:3131/</url>       
          </image>

It failed with the following stack trace:
----------------------------------------
Opened DynamicLibrary osgPlugins-2.6.1/osgdb_osgearth_tmsd.dll
not well-formed (invalid token), 1
Failed to load TileMap
TMSSource: no TileMap found; checking for client-side settings..
TMSSource:  error reading Tile Map Resource http://localhost:3131/
Loaded tms TileSource
Returning TMS cache
TileMap file is http://localhost:3131//bluemarble/tms.xml
Writing TMS file to  http://localhost:3131//bluemarble/tms.xml
-----------------------------------------------

I'm using the simple_cashing.earth as a template.

Am I going about this the wrong way?

Thanks in advance.







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

Re: Pointing to Cache data on a local Server

Hi Nelson!

It looks to me like you are trying to use the cached output as a true TMS source, which is perfectly appropriate.  What will you want to do if point the URL element to the tms.xml file that is created in your cache directory.  For example, if my cache folder was called "bluemarble" I would stick the cache in a publically accessible web folder and point my URL to http://localhost:3131/bluemarble/tms.xml.

Thanks!

Jason

On Mon, Feb 23, 2009 at 1:26 PM, ncysnero (via Nabble) - No Reply <[hidden email]> wrote:
I would like to get osgEarth running in a lab that does not have internet access.  
I was able to move all the cache data I have accumulated to one computer in that lab and got osgEarth to work by specifying the following in the Earth file:

<!--Run completely off of the cache>-->
  <cache_only>true</cache_only>

Now I would like to make that cache data available to all computers in the lab, so I uploaded the cache data to a local server in the lab and tried to point osgEarth directly to it. Something like this:

          <image name="bluemarble" driver="tms">
             <url>http://localhost:3131/</url>      
          </image>

It failed with the following stack trace:
----------------------------------------
Opened DynamicLibrary osgPlugins-2.6.1/osgdb_osgearth_tmsd.dll
not well-formed (invalid token), 1
Failed to load TileMap
TMSSource: no TileMap found; checking for client-side settings..
TMSSource:  error reading Tile Map Resource http://localhost:3131/
Loaded tms TileSource
Returning TMS cache
TileMap file is http://localhost:3131//bluemarble/tms.xml
Writing TMS file to  http://localhost:3131//bluemarble/tms.xml
-----------------------------------------------

I'm using the simple_cashing.earth as a template.

Am I going about this the wrong way?

Thanks in advance.










View message @ http://n2.nabble.com/Pointing-to-Cache-data-on-a-local-Server-tp2373549p2373549.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.


Nelson A. Cysneros Nelson A. Cysneros
Reply | Threaded
Open this post in threaded view
|

Re: Pointing to Cache data on a local Server

Thanks Jason, worked like a charm.  :)

Nelson