how to specify the camera altitude relative to ground

Aug 13, 2010 at 1:49 PM
hi all, is it possible to specify the 'Altitude' relatively to the ground ? or is there a way to get the ground elevation for a given lon/lat ? thanks.
Aug 25, 2010 at 9:23 PM

The VEMap.Altitude property is relative to the ground.

If you need the elevation of the ground (from the center of the Earth) then you'll want to do something like:


                double surfaceElevation = map.globeControl.Host.WorldEngine.GetSurfaceElevation(new LatLon(lat, lon));

Note that this requires also adding references to certain MapPoint assemblies to your project and using the MapPoint LatLon class.

Sep 3, 2010 at 8:23 AM

Thanks, this is exactly what I need, but... this function always returns 0.

For example :

map.globeControl.Host.WorldEngine.GetSurfaceElevation(new LatLon(-68.1473495,-16.4767501));

returns 0.

I was excepting a bigger value (for a point in Lapaz city :o) ).

Any idea about that ? Is there something to initialize before calling this function ?