在osgEarth/Registry中
if ( !_global_geodetic_profile.valid() )
{
GDAL_SCOPED_LOCK;
if ( !_global_geodetic_profile.valid() ) // double-check pattern
{
const_cast<Registry*>(this)->_global_geodetic_profile = Profile::create(
"epsg:4326",
-180.0, -90.0, 180.0, 90.0,
"",
2, 1 );
}
}
if ( !_spherical_mercator_profile.valid() ) // double-check pattern
{
// automatically figure out proper mercator extents:
const SpatialReference* srs = SpatialReference::create( "spherical-mercator" );
//double e, dummy;
//srs->getGeographicSRS()->transform2D( 180.0, 0.0, srs, e, dummy );
//const_cast<Registry*>(this)->_global_mercator_profile = Profile::create(
// srs, -e, -e, e, e, 1, 1 );
const_cast<Registry*>(this)->_spherical_mercator_profile = Profile::create(
srs, MERC_MINX, MERC_MINY, MERC_MAXX, MERC_MAXY, 1, 1 );
}
geodetic初始瓦片有两个,应该是分成了东西半球。