org.deegree.coverage.raster.cache
Class CacheInfoFile

java.lang.Object
  extended by org.deegree.coverage.raster.io.grid.GridMetaInfoFile
      extended by org.deegree.coverage.raster.cache.CacheInfoFile

public class CacheInfoFile
extends GridMetaInfoFile

Information about raster cache files extends the GridMetaInfoFile which extends the WorldFile file layout. The Cache information supplies information about the tiles on file and the width and height of the cached raster file.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.coverage.raster.io.grid.GridMetaInfoFile
envelope, METAINFO_FILE, METAINFO_FILE_NAME
 
Constructor Summary
CacheInfoFile(RasterGeoReference geoRef, int rows, int columns, int tileRasterWidth, int tileRasterHeight, RasterDataInfo rdi, int width, int height, boolean[][] tilesOnFile, long modificationTime)
           
 
Method Summary
 long getModificationTime()
           
 int getRasterHeight()
           
 int getRasterWidth()
           
 boolean[][] getTilesOnFile()
           
static CacheInfoFile read(File cacheFile)
           
static void write(File metaInfo, CacheInfoFile info)
           
 
Methods inherited from class org.deegree.coverage.raster.io.grid.GridMetaInfoFile
columns, fileNameFromOptions, getDataInfo, getEnvelope, getGeoReference, getTileRasterHeight, getTileRasterWidth, read, readFromFile, rows, setEnvelope, write, writeToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheInfoFile

public CacheInfoFile(RasterGeoReference geoRef,
                     int rows,
                     int columns,
                     int tileRasterWidth,
                     int tileRasterHeight,
                     RasterDataInfo rdi,
                     int width,
                     int height,
                     boolean[][] tilesOnFile,
                     long modificationTime)
Parameters:
geoRef -
rows -
columns -
tileRasterWidth -
tileRasterHeight -
rdi -
width -
height -
tilesOnFile -
modificationTime -
Method Detail

write

public static void write(File metaInfo,
                         CacheInfoFile info)
                  throws IOException
Parameters:
metaInfo - the file used as raster cache file, to write meta information for.
info - the meta information on the raster cache file.
Throws:
IOException - if the file could not be written.

read

public static CacheInfoFile read(File cacheFile)
Parameters:
cacheFile - to get the meta information for.
Returns:
the meta information for the given raster cache file. null if no such file exists.

getModificationTime

public final long getModificationTime()
Returns:
the modificationTime

getRasterHeight

public final int getRasterHeight()
Returns:
the rHeight

getRasterWidth

public final int getRasterWidth()
Returns:
the rWidth

getTilesOnFile

public final boolean[][] getTilesOnFile()
Returns:
the tilesOnFile


Copyright © 2011. All Rights Reserved.