Ignore:
Timestamp:
Aug 17, 2016, 9:00:52 PM (8 years ago)
Author:
ldelgass
Message:

Add verticalDatum override option to addElevationLayer, prep for adding to
protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/RendererCmd.cpp

    r6422 r6488  
    16961696            }
    16971697        }
     1698        // GDAL does not report vertical datum
     1699        // Options: geodetic (default), egm84, egm96, egm2008
     1700        const char *verticalDatum = NULL;
    16981701        int minLOD = 0;
    16991702        int maxLOD = 23;
     
    17011704            osgEarth::Drivers::GDALOptions opts;
    17021705            opts.url() = url;
    1703             g_renderer->addElevationLayer(name, opts, pos, cache, visible, minLOD, maxLOD);
     1706            g_renderer->addElevationLayer(name, opts, pos, cache, visible, verticalDatum, minLOD, maxLOD);
    17041707        } else if (driver[0] == 't' && strcmp(driver, "tms") == 0) {
    17051708            osgEarth::Drivers::TMSOptions opts;
     
    17071710            //opts.tmsType() = Tcl_GetString(objv[8]);
    17081711            //opts.format() = Tcl_GetString(objv[9]);
    1709             g_renderer->addElevationLayer(name, opts, pos, cache, visible, minLOD, maxLOD);
     1712            g_renderer->addElevationLayer(name, opts, pos, cache, visible, verticalDatum, minLOD, maxLOD);
    17101713        } else if (driver[0] == 'w' && strcmp(driver, "wcs") == 0) {
    17111714            osgEarth::Drivers::WCSOptions opts;
     
    17241727            //opts.srs() = Tcl_GetString(objv[11]);
    17251728            //opts.rangeSubset() = Tcl_GetString(objv[12]);
    1726             g_renderer->addElevationLayer(name, opts, pos, cache, visible, minLOD, maxLOD);
     1729            g_renderer->addElevationLayer(name, opts, pos, cache, visible, verticalDatum, minLOD, maxLOD);
    17271730        } else {
    17281731            Tcl_AppendResult(interp, "unknown elevation driver \"", driver,
Note: See TracChangeset for help on using the changeset viewer.