public class GridRowSet extends Object implements org.h2.tools.SimpleRowSource
| Constructor and Description |
|---|
GridRowSet(Connection connection,
double deltaX,
double deltaY,
org.locationtech.jts.geom.Envelope envelope)
The grid will be computed according an envelope
|
GridRowSet(Connection connection,
double deltaX,
double deltaY,
String tableName)
The grid will be computed according a table stored in the database
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ResultSet |
getResultSet()
Give the regular grid
|
boolean |
isCenterCell()
Return true is cell is represented as point, false as a polygon
|
Object[] |
readRow() |
void |
reset() |
void |
setCenterCell(boolean isCenterCell)
Set if the cell must be represented as a point or a polygon
|
public GridRowSet(Connection connection, double deltaX, double deltaY, String tableName)
connection - deltaX - deltaY - tableName - public GridRowSet(Connection connection, double deltaX, double deltaY, org.locationtech.jts.geom.Envelope envelope)
connection - deltaX - deltaY - envelope - public Object[] readRow() throws SQLException
readRow in interface org.h2.tools.SimpleRowSourceSQLExceptionpublic void close()
close in interface org.h2.tools.SimpleRowSourcepublic void reset()
throws SQLException
reset in interface org.h2.tools.SimpleRowSourceSQLExceptionpublic boolean isCenterCell()
public void setCenterCell(boolean isCenterCell)
isCenterCell - public ResultSet getResultSet() throws SQLException
SQLExceptionCopyright © 2019 CNRS. All rights reserved.