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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
export
(IOptimizationResult result, OutputStream fileOutputStream) boolean
export
(IEntityContainer enc, OutputStream fileOutputStream) Exports theIEntityContainer
in theoutput stream
.boolean
export
(IEntity en, OutputStream fileOutputStream) String[]
getTitel()
void
Sets the input as theexportTitle
.
-
Constructor Details
-
EntityKMLExporter
public EntityKMLExporter()
-
-
Method Details
-
export
-
export
-
setTitle
Description copied from interface:IEntityExporter
Sets the input as theexportTitle
.- Specified by:
setTitle
in interfaceIEntityExporter
- Parameters:
exportTitle
- the export title
-
getTitel
-
getColors
-