public class KMLWriterDriver extends Object
| Constructor and Description |
|---|
KMLWriterDriver(Connection connection,
String tableName,
File fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(org.h2gis.api.ProgressVisitor progress)
Write spatial table to kml or kmz file format.
|
void |
writeExtendedData(XMLStreamWriter xmlOut,
ResultSet rs)
The ExtendedData element offers three techniques for adding custom data
to a KML Feature (NetworkLink, Placemark, GroundOverlay, PhotoOverlay,
ScreenOverlay, Document, Folder).
|
void |
writePlacemark(XMLStreamWriter xmlOut,
ResultSet rs,
int geoFieldIndex,
String spatialFieldName)
A Placemark is a Feature with associated Geometry.
|
void |
writeSimpleData(XMLStreamWriter xmlOut,
String columnName,
String value) |
public KMLWriterDriver(Connection connection, String tableName, File fileName)
public void write(org.h2gis.api.ProgressVisitor progress)
throws SQLException
progress - SQLExceptionpublic void writePlacemark(XMLStreamWriter xmlOut, ResultSet rs, int geoFieldIndex, String spatialFieldName) throws XMLStreamException, SQLException
xmlOut - XMLStreamExceptionSQLExceptionpublic void writeExtendedData(XMLStreamWriter xmlOut, ResultSet rs) throws XMLStreamException, SQLException
xmlOut - XMLStreamExceptionSQLExceptionpublic void writeSimpleData(XMLStreamWriter xmlOut, String columnName, String value) throws XMLStreamException
xmlOut - XMLStreamExceptionCopyright © 2019 CNRS. All rights reserved.