Class SolutionKMLExporter

java.lang.Object
com.dna.jopt.io.exporting.kml.SolutionKMLExporter

public class SolutionKMLExporter extends Object
This class can be used to export the results in a .kml format which can be used in Google Earth.

Example:


 public void onAsynchronousOptimizationResult(IOptimizationResult rapoptResult) {
   System.out.println(rapoptResult);

   IEntityExporter kmlExporter = new EntityKMLExporter();
   kmlExporter.setTitle("" + this.getClass().getSimpleName());

   try {

     kmlExporter.export(
         rapoptResult.getContainer(),
         new FileOutputStream(new File("./" + this.getClass().getSimpleName() + ".kml")));

   } catch (FileNotFoundException e) {
     //
     e.printStackTrace();
   }
 }
 
Since:
03/08/2019
Version:
03/08/2019
Author:
DNA
  • Constructor Details

    • SolutionKMLExporter

      public SolutionKMLExporter()
  • Method Details

    • export

      public boolean export(com.dna.jopt.config.types.Solution sol, OutputStream fileOutputStream)