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?
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.
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?