Package com.dna.jopt.io.exporting.kml
Class SolutionKMLExporter
java.lang.Object
com.dna.jopt.io.exporting.kml.SolutionKMLExporter
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
export
(com.dna.jopt.config.types.Solution sol, OutputStream fileOutputStream)
-
Constructor Details
-
SolutionKMLExporter
public SolutionKMLExporter()
-
-
Method Details
-
export
-