Package es.unex.sextante.core

Examples of es.unex.sextante.core.OutputObjectsSet


   */
  private Map<String, Object> createReturnMapFromOutputObjects() {

    Map<String, Object> results = new HashMap<String, Object>();

    OutputObjectsSet outputs = m_Algorithm.getOutputObjects();
    for (int i = 0; i < outputs.getOutputObjectsCount(); i++) {
      Output output = outputs.getOutput(i);
      Object outputObject = output.getOutputObject();
      // if the output object is a layer or a table, we return
      // the inner GeoTools object
      if (outputObject instanceof IDataObject){
        IDataObject dataObject = (IDataObject) outputObject;
View Full Code Here


            throws IllegalArgumentException {
        checkName(name);
        GeoAlgorithm algorithm = Sextante.getAlgorithmFromCommandLineName(name.getLocalPart());

        Class outputClass = null;
        OutputObjectsSet ooset = algorithm.getOutputObjects();
        Map<String, Parameter<?>> outputInfo = new HashMap<String, Parameter<?>>();

        for (int i = 0; i < ooset.getOutputObjectsCount(); i++) {
            Output output = ooset.getOutput(i);

            if (output instanceof OutputVectorLayer) {
                outputClass = FeatureCollection.class;
            } else if (output instanceof OutputRasterLayer) {
                outputClass = GridCoverage.class;
View Full Code Here

   */
  private Map<String, Object> createReturnMapFromOutputObjects() {
    try {
      Map<String, Object> results = new HashMap<String, Object>();
 
      OutputObjectsSet outputs = m_Algorithm.getOutputObjects();
      for (int i = 0; i < outputs.getOutputObjectsCount(); i++) {
        Output output = outputs.getOutput(i);
        Object outputObject = output.getOutputObject();
        // if the output object is a layer or a table, we return
        // the inner GeoTools object
        if (outputObject instanceof IDataObject){
          IDataObject dataObject = (IDataObject) outputObject;
View Full Code Here

        param.setParameterValue(paramValue);
      }
    }
   
    // check the outputs as well for raster data
    OutputObjectsSet outputs = m_Algorithm.getOutputObjects();
        for (int i = 0; i < outputs.getOutputObjectsCount(); i++) {
            Output output = outputs.getOutput(i);
            if(output instanceof OutputRasterLayer) {
                gridExtendRequired = true;
            }
        }
   
View Full Code Here

                    Text.text(description), getAdditionalInfoMap(param)));
        }
       
        // check if there is any raster output
        boolean hasRasterOutput = false;
        OutputObjectsSet ooset = algorithm.getOutputObjects();
        for (int i = 0; i < ooset.getOutputObjectsCount(); i++) {
            Output output = ooset.getOutput(i);
            if (output instanceof OutputRasterLayer) {
                hasRasterOutput = true;
                break;
            }
        }
View Full Code Here

            throws IllegalArgumentException {
        checkName(name);
        GeoAlgorithm algorithm = Sextante.getAlgorithmFromCommandLineName(name.getLocalPart());

        Class outputClass = null;
        OutputObjectsSet ooset = algorithm.getOutputObjects();
        Map<String, Parameter<?>> outputInfo = new HashMap<String, Parameter<?>>();

        for (int i = 0; i < ooset.getOutputObjectsCount(); i++) {
            Output output = ooset.getOutput(i);

            if (output instanceof OutputVectorLayer) {
                outputClass = FeatureCollection.class;
            } else if (output instanceof OutputRasterLayer) {
                outputClass = GridCoverage2D.class;
View Full Code Here

   */
  private Map<String, Object> createReturnMapFromOutputObjects() {
    try {
      Map<String, Object> results = new HashMap<String, Object>();
 
      OutputObjectsSet outputs = m_Algorithm.getOutputObjects();
      for (int i = 0; i < outputs.getOutputObjectsCount(); i++) {
        Output output = outputs.getOutput(i);
        Object outputObject = output.getOutputObject();
        // if the output object is a layer or a table, we return
        // the inner GeoTools object
        if (outputObject instanceof IDataObject){
          IDataObject dataObject = (IDataObject) outputObject;
View Full Code Here

        param.setParameterValue(paramValue);
      }
    }
   
    // check the outputs as well for raster data
    OutputObjectsSet outputs = m_Algorithm.getOutputObjects();
        for (int i = 0; i < outputs.getOutputObjectsCount(); i++) {
            Output output = outputs.getOutput(i);
            if(output instanceof OutputRasterLayer) {
                gridExtendRequired = true;
            }
        }
   
View Full Code Here

                    Text.text(description), getAdditionalInfoMap(param)));
        }
       
        // check if there is any raster output
        boolean hasRasterOutput = false;
        OutputObjectsSet ooset = algorithm.getOutputObjects();
        for (int i = 0; i < ooset.getOutputObjectsCount(); i++) {
            Output output = ooset.getOutput(i);
            if (output instanceof OutputRasterLayer) {
                hasRasterOutput = true;
                break;
            }
        }
View Full Code Here

            throws IllegalArgumentException {
        checkName(name);
        GeoAlgorithm algorithm = Sextante.getAlgorithmFromCommandLineName(name.getLocalPart());

        Class outputClass = null;
        OutputObjectsSet ooset = algorithm.getOutputObjects();
        Map<String, Parameter<?>> outputInfo = new HashMap<String, Parameter<?>>();

        for (int i = 0; i < ooset.getOutputObjectsCount(); i++) {
            Output output = ooset.getOutput(i);

            if (output instanceof OutputVectorLayer) {
                outputClass = FeatureCollection.class;
            } else if (output instanceof OutputRasterLayer) {
                outputClass = GridCoverage2D.class;
View Full Code Here

TOP

Related Classes of es.unex.sextante.core.OutputObjectsSet

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.