public class GeoJsonWriteDriver extends Object
| Constructor and Description |
|---|
GeoJsonWriteDriver(Connection connection)
A simple GeoJSON driver to write a spatial table to a GeoJSON file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSupportedPropertyType(int sqlTypeId,
String sqlTypeName)
Return true is the SQL type is supported by the GeoJSON driver.
|
void |
write(org.h2gis.api.ProgressVisitor progress,
ResultSet resultSet,
File file)
Write a resulset to a geojson file
|
void |
write(org.h2gis.api.ProgressVisitor progress,
ResultSet rs,
File fileName,
String encoding)
Write a resulset to a geojson file
|
void |
write(org.h2gis.api.ProgressVisitor progress,
String tableName,
File fileName,
String encoding)
Write the spatial table to GeoJSON format.
|
public GeoJsonWriteDriver(Connection connection)
connection - public void write(org.h2gis.api.ProgressVisitor progress,
ResultSet resultSet,
File file)
throws SQLException,
IOException
progress - resultSet - file - SQLExceptionIOExceptionpublic void write(org.h2gis.api.ProgressVisitor progress,
ResultSet rs,
File fileName,
String encoding)
throws SQLException,
IOException
progress - rs - input resulsetfileName - the output fileencoding - SQLExceptionIOExceptionpublic void write(org.h2gis.api.ProgressVisitor progress,
String tableName,
File fileName,
String encoding)
throws SQLException,
IOException
progress - tableName - fileName - encoding - SQLExceptionIOExceptionpublic boolean isSupportedPropertyType(int sqlTypeId,
String sqlTypeName)
throws SQLException
sqlTypeId - sqlTypeName - SQLExceptionCopyright © 2019 CNRS. All rights reserved.