public class JDBCAccessPGRaster extends JDBCAccessCustom
Modifier and Type | Field and Description |
---|---|
protected Map<ImageLevelInfo,String> |
statementMap
Different sql statements needed for in-db and out-db raster data
|
Constructor and Description |
---|
JDBCAccessPGRaster(Config config) |
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getExecutorServivicePool()
creates a thread pool
|
protected Integer |
getSrsId() |
protected void |
initFromDB(String coverageName,
Connection con)
Step 1 of the bootstrapping process.
|
void |
initialize()
initialze the the JDBCAccess object, has to be called exactly once
|
void |
listGDALFormats(Connection con)
List the formats supported by the used gdal library
Check from the command line with
gdalinfo --formats |
protected Polygon |
polyFromEnvelope(GeneralEnvelope env) |
void |
startTileDecoders(Rectangle pixelDimension,
GeneralEnvelope requestEnvelope,
ImageLevelInfo levelInfo,
LinkedBlockingQueue<TileQueueElement> tileQueue,
GridCoverageFactory coverageFactory)
startTileDecoders
|
closeCallableStmt, closeConnection, closePreparedStmt, closeResultSet, closeStmt, getConfig, getConnection, getCRS, getLevelInfo, getLevelInfos, getNumOverviews
protected Map<ImageLevelInfo,String> statementMap
public JDBCAccessPGRaster(Config config) throws IOException
config
- Config from XML file passed to this classIOException
public void initialize() throws IOException
JDBCAccess
initialize
in interface JDBCAccess
initialize
in class JDBCAccessCustom
IOException
public void startTileDecoders(Rectangle pixelDimension, GeneralEnvelope requestEnvelope, ImageLevelInfo levelInfo, LinkedBlockingQueue<TileQueueElement> tileQueue, GridCoverageFactory coverageFactory) throws IOException
startTileDecoders
in interface JDBCAccess
startTileDecoders
in class JDBCAccessCustom
pixelDimension
- Not Used (passed as per interface requirement)requestEnvelope
- Geographic Envelope of requestinfo
- Pyramid LeveltileQueue
- Queue to place retrieved tile intocoverageFactory
- not used (passed as per interface requirement)IOException
protected void initFromDB(String coverageName, Connection con) throws SQLException, IOException
coverageName
- the coverage name stored in the sql meta tablecon
- jdbc connectionSQLException
IOException
protected Polygon polyFromEnvelope(GeneralEnvelope env)
env
- GeneralEnvelopepublic ExecutorService getExecutorServivicePool()
public void listGDALFormats(Connection con) throws SQLException
Check from the command line with gdalinfo --formats
con
- SQLException
protected Integer getSrsId()
Copyright © 1996–2019 Geotools. All rights reserved.