Class EntityKMLExporter

java.lang.Object
com.dna.jopt.io.exporting.kml.EntityKMLExporter
All Implemented Interfaces:
IEntityExporter, IJOptExporter<IEntityContainer>, Serializable

public class EntityKMLExporter extends Object implements IEntityExporter
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
See Also: