Changeset 563 for trunk/thirds


Ignore:
Timestamp:
Feb 9, 2015, 4:48:34 PM (5 years ago)
Author:
djay
Message:

Add kmz output support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/thirds/otb2zcfg/otb2zcfg.cxx

    r555 r563  
    7878  std::cout << "     mimeType = image/png" << std::endl;
    7979  std::cout << "    </Supported>" << std::endl;
     80}
     81
     82void printKmz(){
     83  std::cout << "    <Default>" << std::endl;
     84  std::cout << "     mimeType = application/vnd.google-earth.kmz" << std::endl;
     85  std::cout << "     encoding = utf-8" << std::endl;
     86  std::cout << "     extension = kmz" << std::endl;
     87  std::cout << "    </Default>" << std::endl;
    8088}
    8189
     
    362370                        if(descr.find(dtype4)!= std::string::npos || descr.find(dtype5)!= std::string::npos)
    363371                          printVector();
    364                         else
    365                           printUnknown();
     372                        else{
     373                          std::string dtype6("kmz");
     374                          std::string dtype7("Kmz");
     375                          if(descr.find(dtype6)!= std::string::npos || descr.find(dtype6)!= std::string::npos)
     376                            printKmz();
     377                          else
     378                            printUnknown();
     379                        }
    366380                      }
    367381                    }
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png