Package es.unex.sextante.parameters

Examples of es.unex.sextante.parameters.Parameter


    Iterator<String> iter = keys.iterator();
    while(iter.hasNext()){
      String sKey = iter.next();
      if (!sKey.equals(GRID_EXTENT)){
        Object paramValue = input.get(sKey);
        Parameter param = paramSet.getParameter(sKey);
        param.setParameterValue(paramValue);
      }
      GridExtent ge = (GridExtent) input.get(GRID_EXTENT);
      m_Algorithm.setGridExtent(ge);
    }
View Full Code Here


      if(SEXTANTE_GRID_CELL_SIZE.equals(sKey) || SEXTANTE_GRID_ENVELOPE.equals(sKey)) {
          // these two parameters we made up to expose the GridExtent, we'll deal with them later
          continue;
      }
      Object paramValue = input.get(sKey);
      Parameter param = paramSet.getParameter(sKey);
      if(paramValue instanceof FeatureCollection) {
        param.setParameterValue(GTVectorLayer.createLayer(DataUtilities.source((FeatureCollection) paramValue), Query.ALL));
      } else if(paramValue instanceof GridCoverage2D) {
          GTRasterLayer layer = new GTRasterLayer();
          gridExtendRequired = true;
          layer.create(paramValue);
          param.setParameterValue(layer);
      } else {
        param.setParameterValue(paramValue);
      }
    }
   
    // check the outputs as well for raster data
    OutputObjectsSet outputs = m_Algorithm.getOutputObjects();
View Full Code Here

      if(SEXTANTE_GRID_CELL_SIZE.equals(sKey) || SEXTANTE_GRID_ENVELOPE.equals(sKey)) {
          // these two parameters we made up to expose the GridExtent, we'll deal with them later
          continue;
      }
      Object paramValue = input.get(sKey);
      Parameter param = paramSet.getParameter(sKey);
      if(paramValue instanceof FeatureCollection) {
        param.setParameterValue(GTVectorLayer.createLayer(DataUtilities.source((FeatureCollection) paramValue), Query.ALL));
      } else if(paramValue instanceof GridCoverage2D) {
          GTRasterLayer layer = new GTRasterLayer();
          gridExtendRequired = true;
          layer.create(paramValue);
          param.setParameterValue(layer);
      } else {
        param.setParameterValue(paramValue);
      }
    }
   
    // check the outputs as well for raster data
    OutputObjectsSet outputs = m_Algorithm.getOutputObjects();
View Full Code Here

TOP

Related Classes of es.unex.sextante.parameters.Parameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.