目标:(三十六)中的问题102
osgEarth::Profile关注空间范围、初始LOD数目等信息。GeoExtent中有SpatialReference信息,因此通过Profile能获取到SpatialReference信息。每一个高程、影像层都有自己的Profile。
osgEarth/Profile
class OSGEARTH_EXPORT Profile : public osg::Referenced
{
GeoExtent _extent;
GeoExtent _latlong_extent;
unsigned _numTilesWideAtLod0;
unsigned _numTilesHighAtLod0;
std::string _fullSignature;
std::string _horizSignature;
}
osgEarth::SpatialReference关注投影方式、椭球体等信息
osgEarth/SpatialReference
class OSGEARTH_EXPORT SpatialReference : public osg::Referenced
{
bool _initialized;
void* _handle;
bool _owns_handle;
bool _is_geographic;
bool _is_mercator;
bool _is_spherical_mercator;
bool _is_north_polar, _is_south_polar;
bool _is_cube;
bool _is_contiguous;
bool _is_user_defined;
bool _is_ltp;
bool _is_plate_carre;
bool _is_ecef;
unsigned _ellipsoidId;
std::string _name;
Key _key;
std::string _wkt;
std::string _proj4;
std::string _init_type;
std::string _datum;
Units _units;
osg::ref_ptr<osg::EllipsoidModel> _ellipsoid;
osg::ref_ptr<SpatialReference> _geo_srs;
osg::ref_ptr<SpatialReference> _geodetic_srs; // _geo_srs with a NULL vdatum.
osg::ref_ptr<SpatialReference> _ecef_srs;
osg::ref_ptr<VerticalDatum> _vdatum;
typedef std::map<std::string,void*> TransformHandleCache;
TransformHandleCache _transformHandleCache;
}
待继续分析列表:
9、earth文件中都有哪些options((九)中问题)
10、如何根据earth文件options创建不同的地理信息引擎节点((九)中问题)<