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, getNumOverviewsprotected Map<ImageLevelInfo,String> statementMap
public JDBCAccessPGRaster(Config config) throws IOException
config - Config from XML file passed to this classIOExceptionpublic void initialize()
throws IOException
JDBCAccessinitialize in interface JDBCAccessinitialize in class JDBCAccessCustomIOExceptionpublic void startTileDecoders(Rectangle pixelDimension, GeneralEnvelope requestEnvelope, ImageLevelInfo levelInfo, LinkedBlockingQueue<TileQueueElement> tileQueue, GridCoverageFactory coverageFactory) throws IOException
startTileDecoders in interface JDBCAccessstartTileDecoders in class JDBCAccessCustompixelDimension - 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)IOExceptionprotected void initFromDB(String coverageName, Connection con) throws SQLException, IOException
coverageName - the coverage name stored in the sql meta tablecon - jdbc connectionSQLExceptionIOExceptionprotected Polygon polyFromEnvelope(GeneralEnvelope env)
env - GeneralEnvelopepublic ExecutorService getExecutorServivicePool()
public void listGDALFormats(Connection con) throws SQLException
Check from the command line with gdalinfo --formats
con - SQLExceptionprotected Integer getSrsId()
Copyright © 1996–2019 Geotools. All rights reserved.