org.h2gis.drivers.kml
Class KMLWriterDriver
java.lang.Object
org.h2gis.drivers.kml.KMLWriterDriver
public class KMLWriterDriver
- extends Object
- Author:
- Erwan Bocher
|
Method Summary |
void |
write(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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KMLWriterDriver
public KMLWriterDriver(Connection connection,
String tableName,
File fileName)
write
public void write(ProgressVisitor progress)
throws SQLException
- Write spatial table to kml or kmz file format.
- Parameters:
progress -
- Throws:
SQLException
writePlacemark
public void writePlacemark(XMLStreamWriter xmlOut,
ResultSet rs,
int geoFieldIndex,
String spatialFieldName)
throws XMLStreamException,
SQLException
- A Placemark is a Feature with associated Geometry.
Syntax :
...
1
0
...
...
...
...
...
...
...
...
...
...
...
...
...
...
- Parameters:
xmlOut -
- Throws:
XMLStreamException
SQLException
writeExtendedData
public void writeExtendedData(XMLStreamWriter xmlOut,
ResultSet rs)
throws XMLStreamException,
SQLException
- The ExtendedData element offers three techniques for adding custom data
to a KML Feature (NetworkLink, Placemark, GroundOverlay, PhotoOverlay,
ScreenOverlay, Document, Folder). These techniques are
Adding untyped data/value pairs using the element (basic)
Declaring new typed fields using the element and then instancing
them using the element (advanced) Referring to XML elements
defined in other namespaces by referencing the external namespace within
the KML file (basic)
These techniques can be combined within a single KML file or Feature for
different pieces of data.
Syntax :
...
...
...
...
- Parameters:
xmlOut -
- Throws:
XMLStreamException
SQLException
writeSimpleData
public void writeSimpleData(XMLStreamWriter xmlOut,
String columnName,
String value)
throws XMLStreamException
- Parameters:
xmlOut -
- Throws:
XMLStreamException
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.