Package com.dna.jopt.io.exporting.kml
Class EntityKMLExporter
java.lang.Object
com.dna.jopt.io.exporting.kml.EntityKMLExporter
- All Implemented Interfaces:
IEntityExporter,IJOptExporter<IEntityContainer>,Serializable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexport(IOptimizationResult result, OutputStream fileOutputStream) booleanexport(IEntityContainer enc, OutputStream fileOutputStream) Exports theIEntityContainerin theoutput stream.booleanexport(IEntity en, OutputStream fileOutputStream) String[]getTitel()voidSets the input as theexportTitle.
-
Constructor Details
-
EntityKMLExporter
public EntityKMLExporter()
-
-
Method Details
-
export
-
export
-
setTitle
Description copied from interface:IEntityExporterSets the input as theexportTitle.- Specified by:
setTitlein interfaceIEntityExporter- Parameters:
exportTitle- the export title
-
getTitel
-
getColors
-