osgEarth 2.1.1
Functions | Variables

seamless::anonymous_namespace{Euler.cpp} Namespace Reference

Functions

SpatialReferencecreateEulerSRS ()

Variables

CacheInitializer s_cacheInitializer

Function Documentation

SpatialReference* seamless::anonymous_namespace{Euler.cpp}::createEulerSRS ( )

Definition at line 960 of file Euler.cpp.

{
    // root the cube srs with a WGS84 intermediate ellipsoid.
    std::string init = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";

    SpatialReference* result = 0;
    GDAL_SCOPED_LOCK;
    void* handle = OSRNewSpatialReference(0);
    if ( OSRImportFromProj4( handle, init.c_str() ) == OGRERR_NONE )
        {
        result = new EulerSpatialReference( handle );
        }
        else
        {
        OE_WARN << "[osgEarth::SRS] Unable to create SRS: " << init << std::endl;
        OSRDestroySpatialReference( handle );
        }
    return result;
}

Here is the caller graph for this function:


Variable Documentation

CacheInitializer seamless::anonymous_namespace{Euler.cpp}::s_cacheInitializer

Definition at line 994 of file Euler.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines