예제 #1
0
 def helpFile(self):
     folder = os.path.join( OTBUtils.otbDescriptionPath(), 'doc' )
     helpfile = os.path.join( str(folder), self.appkey + ".html")
     if os.path.exists(helpfile):
         return helpfile
     else:
         raise WrongHelpFileException("Could not find help file for this algorithm. \nIf you have it put it in: \n"+str(folder))
예제 #2
0
 def helpFile(self):
     folder = os.path.join(OTBUtils.otbDescriptionPath(), 'doc')
     helpfile = os.path.join(str(folder), self.appkey + ".html")
     if os.path.exists(helpfile):
         return helpfile
     else:
         raise WrongHelpFileException(
             "Could not find help file for this algorithm. \nIf you have it put it in: \n"
             + str(folder))
예제 #3
0
 def createAlgsList(self):
     self.preloadedAlgs = []
     folder = OTBUtils.otbDescriptionPath()
     for descriptionFile in os.listdir(folder):
         if descriptionFile.endswith("txt"):
             try:
                 alg = OTBAlgorithm(os.path.join(folder, descriptionFile))
                 if alg.name.strip() != "":
                     self.preloadedAlgs.append(alg)
                 else:
                     ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, "Could not open OTB algorithm: " + descriptionFile)
             except Exception,e:
                 ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, "Could not open OTB algorithm: " + descriptionFile)
예제 #4
0
 def createAlgsList(self):
     self.preloadedAlgs = []
     folder = OTBUtils.otbDescriptionPath()
     for descriptionFile in os.listdir(folder):
         if descriptionFile.endswith("txt"):
             try:
                 alg = OTBAlgorithm(os.path.join(folder, descriptionFile))
                 if alg.name.strip() != "":
                     self.preloadedAlgs.append(alg)
                 else:
                     ProcessingLog.addToLog(
                         ProcessingLog.LOG_ERROR,
                         "Could not open OTB algorithm: " + descriptionFile)
             except Exception, e:
                 ProcessingLog.addToLog(
                     ProcessingLog.LOG_ERROR,
                     "Could not open OTB algorithm: " + descriptionFile)