earth文件是xml文件,通过xml的方式存放和解析
osgEarthDrivers/earth/ReaderWriterOsgEarth.cpp
virtual ReadResult readNode(const std::string& fileName, const osgDB::Options* readOptions) const
{
osg::ref_ptr<XmlDocument> doc = XmlDocument::load( in, uriContext );
Config docConf = doc->getConfig();
Config conf;
if ( docConf.hasChild( "map" ) )
conf = docConf.child( "map" );
else if ( docConf.hasChild( "earth" ) )
conf = docConf.child( "earth" );
}