开发者

Elevation Values using Nasa WorldWind SDK

I'm currently using Nasa worldwind SDK so as to get the exact elevation of a precise point on Earth . The 开发者_JAVA百科problem is that i'm getting wrong values . I don't know if it's related to some zoom stuff seeing that I'm not so familiar with this SDK .

I'm very thankful for ur help Here's the code snippet i'm using :

     m = (Model) WorldWind.createConfigurationComponent(AVKey.MODEL_CLASS_NAME);
     worldWindowGLCanvas1.setModel(m);

     nasa=m.getGlobe();
     Angle lat,longitude;
     lat=new Angle(Angle.fromDegreesLatitude(clicked_Geoposition.getLatitude()));
     longitude=new Angle(Angle.fromDegreesLongitude(clicked_Geoposition.getLatitude()));
     double test=nasa.getBestElevation(lat,longitude);


It looks like there may be a bug on the second to the last line. Should it be the following instead?

   longitude=new Angle(Angle.fromDegreesLongitude(clicked_Geoposition.getLongitude()));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜