Package org.geotools.process

Examples of org.geotools.process.Progress


       
        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;
        }
       
        Map<String,Object> result = working.get(); // get is BLOCKING
        Geometry octo = (Geometry) result.get("result");
       
        System.out.println( octo );
        // octo end
    }
View Full Code Here


    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;
    }

    Map<String, Object> result = working.get(); // get is BLOCKING
    Geometry octo = (Geometry) result.get("result");

    System.out.println(octo);
  }
View Full Code Here

TOP

Related Classes of org.geotools.process.Progress

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.