public abstract class JDBCAccessCustom extends Object implements JDBCAccess
| Constructor and Description |
|---|
JDBCAccessCustom(Config config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeCallableStmt(CallableStatement stmt)
closeCallableStatement
|
protected void |
closeConnection(Connection con)
closeConnection
|
protected void |
closePreparedStmt(PreparedStatement stmt)
closePreparedStatement
|
protected void |
closeResultSet(ResultSet rs)
closeResultSet
|
protected void |
closeStmt(Statement stmt)
closeStmt
|
Config |
getConfig() |
protected Connection |
getConnection()
getConnection
|
protected CoordinateReferenceSystem |
getCRS()
getCRS
|
ImageLevelInfo |
getLevelInfo(int level) |
List<ImageLevelInfo> |
getLevelInfos() |
int |
getNumOverviews() |
abstract void |
initialize()
initialze the the JDBCAccess object, has to be called exactly once
|
abstract void |
startTileDecoders(Rectangle pixelDimension,
GeneralEnvelope requestEnvelope,
ImageLevelInfo info,
LinkedBlockingQueue<TileQueueElement> tileQueue,
GridCoverageFactory coverageFactory)
Method for starting the main action, getting the neccessairy tiles and decoding them in a
multithreaded manner
|
public JDBCAccessCustom(Config config) throws IOException
IOExceptionpublic ImageLevelInfo getLevelInfo(int level)
getLevelInfo in interface JDBCAccesslevel - the level (0 is original, 1 is first pyramid,...)public int getNumOverviews()
getNumOverviews in interface JDBCAccesspublic abstract void initialize()
throws SQLException,
IOException
JDBCAccessinitialize in interface JDBCAccessSQLExceptionIOExceptionpublic abstract void startTileDecoders(Rectangle pixelDimension, GeneralEnvelope requestEnvelope, ImageLevelInfo info, LinkedBlockingQueue<TileQueueElement> tileQueue, GridCoverageFactory coverageFactory) throws IOException
JDBCAccessstartTileDecoders in interface JDBCAccesspixelDimension - the needed pixel dimensionrequestEnvelope - the needed envelope in world coordinatesinfo - the corresponding ImageLevelInfo objecttileQueue - a queue where to put the thread resultscoverageFactory - GridCoverageFactoryIOExceptionprotected Connection getConnection()
protected void closeConnection(Connection con)
conn - Connection Object passed to be closedprotected void closePreparedStmt(PreparedStatement stmt)
stmt - PreparedStatement Object passed to be closedprotected void closeCallableStmt(CallableStatement stmt)
stmt - CallableStatement Object passed to be closedprotected void closeStmt(Statement stmt)
stmt - Statement Object passed to be closedprotected void closeResultSet(ResultSet rs)
rs - ResultSet Object passed to be closedprotected CoordinateReferenceSystem getCRS()
public Config getConfig()
public List<ImageLevelInfo> getLevelInfos()
Copyright © 1996–2019 Geotools. All rights reserved.