Hi Padmini,

With VPB databases there is a CoordinateSystemNode placed at the top
of the scene so you don't need to create your own one to decorate it.
Instead search the root of the scene graph for this node.  See the
osgsimulation example for how you can do this.

As for the heights not be exactly what you expect it, I don't have an
answer for this without directly debugging your code with your data.
I have way too many tasks on to provide this level support so you'll
need go debug it yourself.

Robert.

On Fri, Aug 13, 2010 at 7:41 AM, Padmini Kiran <bpadm...@bel.co.in> wrote:
> Hi,
>
> This is regarding my earlier post.
> The file that generated is geo-referenced.Using osgpick, i could see the
> lat,lon and some z value.
> for ex.:
> (76.3396,32.292,0.0260343) using osgpick.
>
> i have used ConvertXYZtolatlonheight, but i get some values, which is 
> incorrect. The code is
>
> .............................................
> osg::CoordinateSystemNode* csn = new osg::CoordinateSystemNode;
> csn->setEllipsoidModel(new osg::EllipsoidModel());
> csn->addChild(myModel); //this is pointing to .ive file
>
> os<<" local coords vertex("<< hitr->getLocalIntersectPoint()<<")"<<std::endl;
> os<<" world coords vertex("<< hitr->getWorldIntersectPoint()<<")"<<std::endl;
>
> osg::Vec3 point = hitr->getWorldIntersectPoint();
>
> double latitude;
> double longitude;
> double height;
>
> csn->getEllipsoidModel()->convertXYZToLatLongHeight(point.x(),point.y(),point.z(),latitude,longitude,height);
>
> latitude = osg::RadiansToDegrees(latitude);
> longitude = osg::RadiansToDegrees(longitude);
>
> os<<" lat,long,height("<< latitude << "," << longitude << "," << height << 
> ")" <<std::endl;
>
> gdlist += os.str();
>
> .................................
>
> If i check band1 value for a given (lat,lon) from DTED file using QGIS, i see 
> height value.
>
> From the .ive file, how to retrieve this information.
> Moreover, the file when viewed using osgviewer, the heights are of 5000ft 
> above, but such look doesn't come, is it that i am providing .dt0 file.
>
> Please help, i struck here.
>
>
> Thank you in advance
>
> Cheers,
> Padmini
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30732#30732
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to