Elevation data

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

Elevation data

Hello,

I need to find the height value of a given point. Can anyone expalin the difference between Terrain::getHeight and ElevationPool?

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

Re: Elevation data

yucey,

Terrain::getHeight will intersect a ray with the in-memory scene graph. So your accuracy will be limited to what is current paged in.

ElevationPool queries the source elevation data, so you can get more accurate readings, but the computation might take longer if osgEarth has to fetch data from the source to complete the query.

Hope this helps!
Glenn Waldron / Pelican Mapping
yucey yucey
Reply | Threaded
Open this post in threaded view
|

Re: Elevation data

Thanks gwaldron,

It is so much clear now.