public class StructureKmlWriter extends StructureWriter
| Constructor and Description |
|---|
StructureKmlWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear any stored settings and data
|
void |
close()
Close this writer.
|
protected GeoShape |
convertToGeometry(DataRecord rec)
Convert a particular data record to geographic-based geometry objects.
|
java.util.Set<GeoLayer> |
generateLayers(java.util.Collection<DataRecord> data)
Generate the layers for the collection of data.
|
java.lang.String |
getContentType()
Get the content type generated by this writer.
|
java.lang.String |
getTimeField()
Get the field within the data records which is used to identify the
active time.
|
void |
setCategoryFields(java.util.List<java.lang.String> fields)
Identify the fields which will be used to sort the features into
folders.
|
void |
setTimeField(java.lang.String fieldName)
Set the field within the data records which is used to identify the
active time.
|
void |
writeData(java.util.Collection<DataRecord> data)
Write the collection of data.
|
void |
writeGraph(Graph<DataRecord,DataRecord> graph)
Write graph data.
|
void |
writeGrid(Grid<DataRecord> grid)
Write Grid data.
|
void |
writeTree(Tree<DataRecord> tree)
Write tree data.
|
getDestination, getWriter, setDestination, setWriterpublic void clear()
clear in class StructureWriterpublic void close()
protected GeoShape convertToGeometry(DataRecord rec)
rec - the data record to translatepublic java.util.Set<GeoLayer> generateLayers(java.util.Collection<DataRecord> data)
data - the data collectionpublic java.lang.String getContentType()
getContentType in class WebFormatWriter<DataRecord>application/vnd.google-earth.kml+xmlpublic java.lang.String getTimeField()
public void setCategoryFields(java.util.List<java.lang.String> fields)
fields - the list of fieldspublic void setTimeField(java.lang.String fieldName)
fieldName - the timeField to setpublic void writeData(java.util.Collection<DataRecord> data)
data - the data collectionpublic void writeGraph(Graph<DataRecord,DataRecord> graph)
writeGraph in class StructureWritergraph - the graph to write to KMLpublic void writeGrid(Grid<DataRecord> grid)
writeGrid in class StructureWritergrid - the gridpublic void writeTree(Tree<DataRecord> tree)
writeTree in class StructureWritertree - the tree data