Ting,
I'm not sure what a "Gaussian projected coordinate system" is.. can you
elaborate?

To use the VPB driver, you have to specify several additional options so
that osgEarth knows how to load the model. Look at the docs here:
http://www.osgearth.org/wiki/TileSourcePluginVPB and look at the
vpb_earth_bayarea.earth sample.

I also suggest you set the environment variable OSGEARTH_NOTIFY_LEVEL=INFO
and see if the output gives you any clues.


Glenn Waldron : Pelican Mapping : +1.703.652.4791


On Tue, Aug 10, 2010 at 10:25 PM, ting zhang <[email protected]> wrote:

> Hi,
>
> I write a map.earth file according to the original examples of .earth files
> in osgEarth project. The map.earth file is as follows:
>
> <map name="tkm" type="projected">
>        <heightfield name="terrain-dem" driver="vpb">
>                <url> C:\Test.ive </url>
>        </heightfield>
> </map>
>
> where “Test.ive” file is generated by VPB0.9.10 and it’s a terrain file
> using Gaussian projected coordinate system.. Therefore, the type in .earth
> file is "projected".
> Then in my win32 console program, I read the map.earth in my project, the
> codes are as follows:
>
> // header files …
> ……
> int _tmain(int argc, _TCHAR* argv[])
> {
>        int num =1;
>        char* path = "D:/maps.earth";
>        osg::ArgumentParser arguments(&num,&path);
>        osgViewer::Viewer viewer(arguments);
>        osg::ref_ptr<osg::Node> Test_node =
> osgDB::readNodeFile(“D:/maps.earth”);
>        viewer.setSceneData(Test_node.get());
>        viewer.realize();
>        std::cout<<path<<std::endl;
>        viewer.run();
>        return 0;
> }
>
> The compilation is correct. When debugging the code, I find the Test_node
> point is not empty. However, the ive terrain file is not shown in the whole
> scene. In the whole scene, there is nothing but the blue background. I use
> cow.osg to replace Test.ive for tests. However, I cannot find the cow,
> either.
> I wonder what is going on with my osgEarth, are there some problems with my
> coordinate setting or something else? Plus, all the osgEarth dll libraries
> have been put in the environmental path. Thank you.
>
>
> Thank you!
>
> Cheers,
> ting
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30683#30683
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to