|
发表于 2014-6-4 13:53:45
|
显示全部楼层
试试这个:
const osgEarth::SpatialReference* LonLatSRS = osgEarth::SpatialReference::get("wgs84");
osgEarth::GeoPoint gp = osgEarth::GeoPoint(LonLatSRS,Lon,Lat);
osgEarth::ElevationQuery* eq = new osgEarth::ElevationQuery(m_pMapNode->getMap());
double dTerrain = 0.0;
eq->getElevation(gp, dTerrain); |
|