Hi Neus,
I would recommend use the osgSim::HeightAboveTerrain class for
intersection with the final generated terrain to get the correct
height.
Robert.
On 8/2/07, Neus Aparicio <[EMAIL PROTECTED]> wrote:
> Hi!
> I have using osgdem. My input dates are file: .tiff
> with lat/lon/elev. I obtain a file and its
> representation is correct.
> But I want to add 3Ds models, so, I obtain the z of
> the terrain and observe that the coordinate z of the
> center of terrain is not correct. How I can obtain
> that coordinate?
>
> Next, I put the head of the file .osg:
> CoordinateSystemNode {
> DataVariance DYNAMIC
> nodeMask 0xffffffff
> cullingActive TRUE
> Format "WKT"
> CoordinateSystem "GEOGCS[\"WGS
> 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS
> 84\",6378137,298.2572235630016,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433],AUTHORITY[\"EPSG\",\"4326\"]]"
> num_children 1
> PagedLOD {
> DataVariance DYNAMIC
> nodeMask 0xffffffff
> cullingActive TRUE
> Center -1.638410091400147 41.35421371459961
> 0.002561626955866814
>
> ....
>
> In summary: The elevation that appears in the center
> of coordinates (red colour) must be 530 m because This
> is the value that I obtain when I open the image in
> Erdas software.
> Where is value and How can I solve it?
>
> Thanks,
>
>
>
> Neus Aparicio Ferrando
>
>
>
> ____________________________________________________________________________________
> Sé un Mejor Amante del Cine
> ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
> http://advision.webevents.yahoo.com/reto/entretenimiento.html
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org