TMS DEM Cache

classic Classic list List threaded Threaded
2 messages Options
marcoma9023 marcoma9023
Reply | Threaded
Open this post in threaded view
|

TMS DEM Cache

HI,

I'm currently obtain the elevation data using a TMSOptions driver.

TMSOptions elevationOption;
elevationOption.url() = ELEVATION_URL;
map->addLayer(new ElevationLayer("Elevation", elevationOption));

Then, the elevation data is correctly loaded, but is there a better solution?
With a TMS is there a possibility of caching the DEM?

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

Re: TMS DEM Cache

In osgEarth 3.0 you can use the new API like so:

TMSElevationLayer* layer = new TMSElevationLayer();
layer->setName("Elevation");
layer->setURL(ELEVATION_URL);
map->addLayer(layer);

Hope this helps.
Glenn Waldron / Pelican Mapping