Capturing image and elevation details?

classic Classic list List threaded Threaded
4 messages Options
Johnson prem Johnson prem
Reply | Threaded
Open this post in threaded view
|

Capturing image and elevation details?

Hi

I want to capture/extract image and elevation data for given geographic extent separately into file
(Image layers and elevation layers are already added into map) from geocentric map.
osgscreencapture shows similar thing but captures frame buffer content as a single image.
Is that possible from osgearth directly?


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

Re: Capturing image and elevation details?

Hi,
No, unfortunately there is not a way to do that in osgEarth.
Glenn Waldron / Pelican Mapping
Johnson prem Johnson prem
Reply | Threaded
Open this post in threaded view
|

Re: Capturing image and elevation details?

gwaldron

I am looking at getelevations() from osgEarthUtil::ElevationQuery.
Not yet positive result. But when tried to get height for given a geographic
coordinate, it s doing well. Let me try it out for geographic extent too the same.
I am not sure if i m on right track? This is for capturing elevation information alone.
I Need to think about how to extract raster image from image layer.


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

Re: Capturing image and elevation details?

Just a couple of ideas.

I would use osg capture to get image pixels, then create a GeoTIFF with the frustum intersection corners. Then you can use QGIS or whatever to get elevation for that image. If you want to do it with osgearth, maybe raytrace the pixels and get intersection with terrain?