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
IOException
public ImageLevelInfo getLevelInfo(int level)
getLevelInfo
in interface JDBCAccess
level
- the level (0 is original, 1 is first pyramid,...)public int getNumOverviews()
getNumOverviews
in interface JDBCAccess
public abstract void initialize() throws SQLException, IOException
JDBCAccess
initialize
in interface JDBCAccess
SQLException
IOException
public abstract void startTileDecoders(Rectangle pixelDimension, GeneralEnvelope requestEnvelope, ImageLevelInfo info, LinkedBlockingQueue<TileQueueElement> tileQueue, GridCoverageFactory coverageFactory) throws IOException
JDBCAccess
startTileDecoders
in interface JDBCAccess
pixelDimension
- the needed pixel dimensionrequestEnvelope
- the needed envelope in world coordinatesinfo
- the corresponding ImageLevelInfo objecttileQueue
- a queue where to put the thread resultscoverageFactory
- GridCoverageFactoryIOException
protected 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.