Changeset 6488 for geovis/trunk/RendererCmd.cpp
- Timestamp:
- Aug 17, 2016, 9:00:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/RendererCmd.cpp
r6422 r6488 1696 1696 } 1697 1697 } 1698 // GDAL does not report vertical datum 1699 // Options: geodetic (default), egm84, egm96, egm2008 1700 const char *verticalDatum = NULL; 1698 1701 int minLOD = 0; 1699 1702 int maxLOD = 23; … … 1701 1704 osgEarth::Drivers::GDALOptions opts; 1702 1705 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); 1704 1707 } else if (driver[0] == 't' && strcmp(driver, "tms") == 0) { 1705 1708 osgEarth::Drivers::TMSOptions opts; … … 1707 1710 //opts.tmsType() = Tcl_GetString(objv[8]); 1708 1711 //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); 1710 1713 } else if (driver[0] == 'w' && strcmp(driver, "wcs") == 0) { 1711 1714 osgEarth::Drivers::WCSOptions opts; … … 1724 1727 //opts.srs() = Tcl_GetString(objv[11]); 1725 1728 //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); 1727 1730 } else { 1728 1731 Tcl_AppendResult(interp, "unknown elevation driver \"", driver,
Note: See TracChangeset
for help on using the changeset viewer.