osgEarth 2.1.1
|
Functions | |
SpatialReference * | createQscSRS () |
SpatialReference* seamless::anonymous_namespace{QSC.cpp}::createQscSRS | ( | ) |
Definition at line 628 of file QSC.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 QscSpatialReference( handle ); } else { OE_WARN << "[osgEarth::SRS] Unable to create SRS: " << init << std::endl; OSRDestroySpatialReference( handle ); } return result; }