Package org.geotools.process

Examples of org.geotools.process.ProcessExecutor


        Geometry geom = wktReader.read("MULTIPOINT (1 1, 5 4, 7 9, 5 5, 2 2)");
       
        Name name = new NameImpl("tutorial","octagonalEnvelope");
        Process process = Processors.createProcess( name );
       
        ProcessExecutor engine = Processors.newProcessExecutor(2);
       
        // quick map of inputs
        Map<String,Object> input = new KVP("geom", geom);
        Progress working = engine.submit(process, input );
       
        // you could do other stuff whle working is doing its thing
        if( working.isCancelled() ){
            return;
        }
View Full Code Here


    System.out.println("Executing process: " + name);
    for (Map.Entry<String, Parameter<?>> entry : Processors.getParameterInfo(name).entrySet()) {
      System.out.println("\t" + entry.getKey() + ":\t" + entry.getValue());
    }

    ProcessExecutor engine = Processors.newProcessExecutor(2);

    // quick map of inputs
    Map<String, Object> input = new KVP("geom", geom);
    Progress working = engine.submit(process, input);

    // you could do other stuff whle working is doing its thing
    if (working.isCancelled()) {
      return;
    }
View Full Code Here

TOP

Related Classes of org.geotools.process.ProcessExecutor

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.