Changeset 6516 for geovis/trunk


Ignore:
Timestamp:
Aug 31, 2016 2:40:22 AM (8 years ago)
Author:
ldelgass
Message:

Support all the feature drivers for terrain mask layers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/RendererCmd.cpp

    r6511 r6516  
    19951995            }
    19961996        }
    1997         if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
    1998             osgEarth::Drivers::OGRFeatureOptions maskBoundaryOpts;
    1999             maskBoundaryOpts.url() = url;
    2000             maskOpts.featureOptions() = maskBoundaryOpts;
     1997        if (driver[0] == 'd' && strcmp(driver, "db") == 0) {
     1998            osgEarth::Drivers::OGRFeatureOptions opts;
     1999            opts.name() = name;
     2000            opts.connection() = url;
     2001            opts.layer() = typeName;
     2002            maskOpts.featureOptions() = opts;
     2003        } else if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
     2004            osgEarth::Drivers::OGRFeatureOptions opts;
     2005            opts.name() = name;
     2006            opts.url() = url;
     2007            maskOpts.featureOptions() = opts;
     2008        } else if (driver[0] == 't' && strcmp(driver, "tfs") == 0) {
     2009            osgEarth::Drivers::TFSFeatureOptions opts;
     2010            opts.name() = name;
     2011            opts.url() = url;
     2012            opts.format() = format;
     2013            maskOpts.featureOptions() = opts;
     2014        } else if (driver[0] == 'w' && strcmp(driver, "wfs") == 0) {
     2015            osgEarth::Drivers::WFSFeatureOptions opts;
     2016            opts.name() = name;
     2017            opts.url() = url;
     2018            opts.outputFormat() = format;
     2019            opts.typeName() = typeName;
     2020            maskOpts.featureOptions() = opts;
    20012021        } else {
    20022022            Tcl_AppendResult(interp, "unknown mask driver \"", driver,
Note: See TracChangeset for help on using the changeset viewer.