Changeset 5889 for geovis


Ignore:
Timestamp:
Sep 28, 2015 11:40:30 PM (9 years ago)
Author:
ldelgass
Message:

Store layer name in feature options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/RendererCmd.cpp

    r5888 r5889  
    15471547        if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
    15481548            osgEarth::Drivers::OGRFeatureOptions opts;
     1549            opts.name() = name;
    15491550            if (osgDB::getLowerCaseFileExtension(url) == "csv") {
    15501551                url = loadCSVLayer(url.c_str());
     
    15541555        } else if (driver[0] == 't' && strcmp(driver, "tfs") == 0) {
    15551556            osgEarth::Drivers::TFSFeatureOptions opts;
     1557            opts.name() = name;
    15561558            opts.url() = url;
    15571559            opts.format() = format;
     
    15591561        } else if (driver[0] == 'w' && strcmp(driver, "wfs") == 0) {
    15601562            osgEarth::Drivers::WFSFeatureOptions opts;
     1563            opts.name() = name;
    15611564            opts.url() = url;
    15621565            opts.outputFormat() = format;
     
    16551658        if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
    16561659            osgEarth::Drivers::OGRFeatureOptions opts;
     1660            opts.name() = name;
    16571661            if (osgDB::getLowerCaseFileExtension(url) == "csv") {
    16581662                url = loadCSVLayer(url.c_str());
     
    16621666        } else if (driver[0] == 't' && strcmp(driver, "tfs") == 0) {
    16631667            osgEarth::Drivers::TFSFeatureOptions opts;
     1668            opts.name() = name;
    16641669            opts.url() = url;
    16651670            opts.format() = format;
     
    16671672        } else if (driver[0] == 'w' && strcmp(driver, "wfs") == 0) {
    16681673            osgEarth::Drivers::WFSFeatureOptions opts;
     1674            opts.name() = name;
    16691675            opts.url() = url;
    16701676            opts.outputFormat() = format;
     
    17531759        if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
    17541760            osgEarth::Drivers::OGRFeatureOptions opts;
     1761            opts.name() = name;
    17551762            if (osgDB::getLowerCaseFileExtension(url) == "csv") {
    17561763                url = loadCSVLayer(url.c_str());
     
    17601767        } else if (driver[0] == 't' && strcmp(driver, "tfs") == 0) {
    17611768            osgEarth::Drivers::TFSFeatureOptions opts;
     1769            opts.name() = name;
    17621770            opts.url() = url;
    17631771            opts.format() = format;
     
    17651773        } else if (driver[0] == 'w' && strcmp(driver, "wfs") == 0) {
    17661774            osgEarth::Drivers::WFSFeatureOptions opts;
     1775            opts.name() = name;
    17671776            opts.url() = url;
    17681777            opts.outputFormat() = format;
     
    18701879        if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
    18711880            osgEarth::Drivers::OGRFeatureOptions opts;
     1881            opts.name() = name;
    18721882            if (osgDB::getLowerCaseFileExtension(url) == "csv") {
    18731883                url = loadCSVLayer(url.c_str());
     
    18771887        } else if (driver[0] == 't' && strcmp(driver, "tfs") == 0) {
    18781888            osgEarth::Drivers::TFSFeatureOptions opts;
     1889            opts.name() = name;
    18791890            opts.url() = url;
    18801891            opts.format() = format;
     
    18821893        } else if (driver[0] == 'w' && strcmp(driver, "wfs") == 0) {
    18831894            osgEarth::Drivers::WFSFeatureOptions opts;
     1895            opts.name() = name;
    18841896            opts.url() = url;
    18851897            opts.outputFormat() = format;
     
    19982010        if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
    19992011            osgEarth::Drivers::OGRFeatureOptions opts;
     2012            opts.name() = name;
    20002013            if (osgDB::getLowerCaseFileExtension(url) == "csv") {
    20012014                url = loadCSVLayer(url.c_str());
     
    20052018        } else if (driver[0] == 't' && strcmp(driver, "tfs") == 0) {
    20062019            osgEarth::Drivers::TFSFeatureOptions opts;
     2020            opts.name() = name;
    20072021            opts.url() = url;
    20082022            opts.format() = format;
     
    20102024        } else if (driver[0] == 'w' && strcmp(driver, "wfs") == 0) {
    20112025            osgEarth::Drivers::WFSFeatureOptions opts;
     2026            opts.name() = name;
    20122027            opts.url() = url;
    20132028            opts.outputFormat() = format;
     
    21092124        if (driver[0] == 'o' && strcmp(driver, "ogr") == 0) {
    21102125            osgEarth::Drivers::OGRFeatureOptions opts;
     2126            opts.name() = name;
    21112127            if (osgDB::getLowerCaseFileExtension(url) == "csv") {
    21122128                url = loadCSVLayer(url.c_str());
     
    21162132        } else if (driver[0] == 't' && strcmp(driver, "tfs") == 0) {
    21172133            osgEarth::Drivers::TFSFeatureOptions opts;
     2134            opts.name() = name;
    21182135            opts.url() = url;
    21192136            opts.format() = format;
     
    21212138        } else if (driver[0] == 'w' && strcmp(driver, "wfs") == 0) {
    21222139            osgEarth::Drivers::WFSFeatureOptions opts;
     2140            opts.name() = name;
    21232141            opts.url() = url;
    21242142            opts.outputFormat() = format;
Note: See TracChangeset for help on using the changeset viewer.