org.geotools.gce.imagemosaic.jdbc.custom
Class JDBCAccessPGRaster

Object
  extended by JDBCAccessCustom
      extended by JDBCAccessPGRaster
All Implemented Interfaces:
JDBCAccess

public class JDBCAccessPGRaster
extends JDBCAccessCustom

This class is used for JDBC Access to the Postgis raster feature

Author:
Christian Mueller

Field Summary
protected  Map<ImageLevelInfo,String> statementMap
          Different sql statements needed for in-db and out-db raster data
 
Constructor Summary
JDBCAccessPGRaster(Config config)
           
 
Method Summary
 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
 
Methods inherited from class JDBCAccessCustom
closeCallableStmt, closeConnection, closePreparedStmt, closeResultSet, closeStmt, getConfig, getConnection, getCRS, getLevelInfo, getLevelInfos, getNumOverviews
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statementMap

protected Map<ImageLevelInfo,String> statementMap
Different sql statements needed for in-db and out-db raster data

Constructor Detail

JDBCAccessPGRaster

public JDBCAccessPGRaster(Config config)
                   throws IOException
Parameters:
config - Config from XML file passed to this class
Throws:
IOException
Method Detail

initialize

public void initialize()
                throws IOException
Description copied from interface: JDBCAccess
initialze the the JDBCAccess object, has to be called exactly once

Specified by:
initialize in interface JDBCAccess
Specified by:
initialize in class JDBCAccessCustom
Throws:
IOException

startTileDecoders

public void startTileDecoders(Rectangle pixelDimension,
                              GeneralEnvelope requestEnvelope,
                              ImageLevelInfo levelInfo,
                              LinkedBlockingQueue<TileQueueElement> tileQueue,
                              GridCoverageFactory coverageFactory)
                       throws IOException
startTileDecoders

Specified by:
startTileDecoders in interface JDBCAccess
Specified by:
startTileDecoders in class JDBCAccessCustom
Parameters:
pixelDimension - Not Used (passed as per interface requirement)
requestEnvelope - Geographic Envelope of request
info - Pyramid Level
tileQueue - Queue to place retrieved tile into
coverageFactory - not used (passed as per interface requirement)
Throws:
IOException

initFromDB

protected void initFromDB(String coverageName,
                          Connection con)
                   throws SQLException,
                          IOException
Step 1 of the bootstrapping process. Read meta table.

Parameters:
coverageName - the coverage name stored in the sql meta table
con - jdbc connection
Throws:
SQLException
IOException

polyFromEnvelope

protected Polygon polyFromEnvelope(GeneralEnvelope env)
Parameters:
env - GeneralEnvelope
Returns:
Polygon object with the same boundary as env

getExecutorServivicePool

public ExecutorService getExecutorServivicePool()
creates a thread pool

Returns:

listGDALFormats

public void listGDALFormats(Connection con)
                     throws SQLException
List the formats supported by the used gdal library Check from the command line with gdalinfo --formats

Parameters:
con -
Throws:
SQLException

getSrsId

protected Integer getSrsId()


Copyright © 1996-2014 Geotools. All Rights Reserved.