Hi:

The solution was in the same example code I am using (osgpick), but
Glenn Waldron from osggis told me the hint.

Quotiong: {
1) Find the osg::CoordinateSystemNode (CSN) atop your VPB database scene graph;
2) Get the EllipsoidModel from the CSN
3) call EllipsoidModel::convertXYZToLatLongHeight().
}

Tha's exactly what osgpick does to get the current elevation.

Regards,

-- A.


On Mon, Oct 12, 2009 at 1:12 AM, Alejandro Aguilar Sierra
<algsie...@gmail.com> wrote:
> Hello:
>
> I want to be able to pick local coordinates from a terrain and convert
> them to model coordinates so I can obtain GIS data from a GIS data
> base, using those coordinates. Using the osgpick example code, I can
> get local and world geometries. I suppose I must get the corresponding
> TerrainTile, and call getLocator()->convertLocalToModel . Am I right?
>
> How can I get the picked terrain tile object?
>
> Regards,
>
> --
> Alejandro
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to