WorldWind:地面高度

WorldWind: elevation of the ground

我使用 WorldWind 在 android 应用程序中显示一个地球仪。我成功显示了卫星图像。

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.FrameLayout;

import gov.nasa.worldwind.WorldWindow;
import gov.nasa.worldwind.layer.BackgroundLayer;    
import gov.nasa.worldwind.layer.BlueMarbleLandsatLayer;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Create a WorldWindow (a GLSurfaceView)...
        WorldWindow wwd = new WorldWindow(getApplicationContext());
        // ... and add some map layers
        wwd.getLayers().addLayer(new BackgroundLayer());
        wwd.getLayers().addLayer(new BlueMarbleLandsatLayer());            

        // Add the WorldWindow view object to the layout that was reserved for the globe.
        FrameLayout globeLayout = (FrameLayout) findViewById(R.id.globe);
        globeLayout.addView(wwd);
    }

}

根据 WorldWind 网站的示例,我想添加地球上地形的海拔(地势)(以查看山脉、火山......)。 我该怎么办?

谢谢

我找到了答案,你必须添加这行

wwd.getGlobe().getElevationModel().addCoverage(new BasicElevationCoverage());