Example #1
0
  def process(self, pm, req):
    self._log.info("inside process...")
    me=self.__class__.__name__ +'::'+VLAB.me()
    ProcessorUtils.setProcessorLoggingHandler(VLAB.DEFAULT_LOG_PREFIX, 
      req, self.getName(), self.getVersion(), self.getCopyrightInformation())

    #self._log.info("Parameter list:")
    #for i in range(req.getNumParameters()):
    #  self._log.info(req.getParameterAt(i).getName() + " = " + req.getParameterAt(i).getValueAsText())

    self._log.info(me + ': ' + ProcessorConstants.LOG_MSG_START_REQUEST)
    pm.beginTask("Running 3D Vegetation Lab Processor...", 10)

    # ensure at least 1 second to ensure progress popup feedback
    try:
      Thread.sleep(1000); 
    except JException, e:
      raise RuntimeException(e.getMessage())