|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.raster.io.grid.GridMetaInfoFile
public class GridMetaInfoFile
The GridMetaInfoFile
encapsulates the values of the extended worldfile needed to understand blobs of the
GriddedBlobTileContainer
Field Summary | |
---|---|
protected Envelope |
envelope
|
static String |
METAINFO_FILE
defined rasterio options name of the index file. |
static String |
METAINFO_FILE_NAME
standard name of the index file. |
Constructor Summary | |
---|---|
GridMetaInfoFile(RasterGeoReference geoReference,
int rows,
int columns,
int tileRasterWidth,
int tileRasterHeight,
int bands,
DataType dataType)
|
|
GridMetaInfoFile(RasterGeoReference geoReference,
int rows,
int columns,
int tileRasterWidth,
int tileRasterHeight,
RasterDataInfo dataInfo)
|
Method Summary | |
---|---|
int |
columns()
|
static File |
fileNameFromOptions(String defaultDir,
String filename,
RasterIOOptions options)
find a filename from the given options or create a 'default-file-name' in the given directory. |
RasterDataInfo |
getDataInfo()
|
Envelope |
getEnvelope(RasterGeoReference.OriginLocation location)
|
RasterGeoReference |
getGeoReference()
|
int |
getTileRasterHeight()
|
int |
getTileRasterWidth()
|
static GridMetaInfoFile |
read(BufferedReader readerOnInfoFile,
RasterIOOptions options)
Read the grid info file which is basically a world file with supplement information. |
static GridMetaInfoFile |
readFromFile(File infoFile,
RasterIOOptions options)
Read the grid info file which is basically a world file with supplement information. |
int |
rows()
|
void |
setEnvelope(Envelope envelope)
Set the envelope |
static void |
write(PrintWriter writer,
GridMetaInfoFile metaInfo,
RasterIOOptions options)
Write the grid info file which is basically a world file with supplement information. |
static void |
writeToFile(File filename,
GridMetaInfoFile metaInfo,
RasterIOOptions options)
Write the grid info file which is basically a world file with supplement information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String METAINFO_FILE
public static final String METAINFO_FILE_NAME
protected Envelope envelope
Constructor Detail |
---|
public GridMetaInfoFile(RasterGeoReference geoReference, int rows, int columns, int tileRasterWidth, int tileRasterHeight, int bands, DataType dataType)
geoReference
- rows
- columns
- tileRasterWidth
- tileRasterHeight
- bands
- dataType
- public GridMetaInfoFile(RasterGeoReference geoReference, int rows, int columns, int tileRasterWidth, int tileRasterHeight, RasterDataInfo dataInfo)
geoReference
- rows
- columns
- tileRasterWidth
- tileRasterHeight
- dataInfo
- Method Detail |
---|
public static GridMetaInfoFile readFromFile(File infoFile, RasterIOOptions options) throws NumberFormatException, IOException
infoFile
- to read.options
- containing information about the crs, origin location etc.
GridMetaInfoFile
read from the given file.
NumberFormatException
IOException
public static GridMetaInfoFile read(BufferedReader readerOnInfoFile, RasterIOOptions options) throws NumberFormatException, IOException
readerOnInfoFile
- to read the data from.options
- containing information about the crs, origin location etc.
GridMetaInfoFile
read from the given file.
NumberFormatException
IOException
public static void writeToFile(File filename, GridMetaInfoFile metaInfo, RasterIOOptions options) throws IOException
filename
- to write to.metaInfo
- to write.options
- containing information about the crs, origin location etc.
NumberFormatException
IOException
public static void write(PrintWriter writer, GridMetaInfoFile metaInfo, RasterIOOptions options) throws IOException
writer
- to write to.metaInfo
- to write.options
- containing information about the crs, origin location etc.
NumberFormatException
IOException
public static File fileNameFromOptions(String defaultDir, String filename, RasterIOOptions options)
defaultDir
- to use if the options do not contain a file, a file named gridded_raster.info
METAINFO_FILE_NAME
will be created.filename
- if no name could be read from the options, use the given filename.options
- to get the file for the given grid meta info.
public final RasterGeoReference getGeoReference()
public final int getTileRasterWidth()
public final int getTileRasterHeight()
public final int rows()
public final int columns()
public Envelope getEnvelope(RasterGeoReference.OriginLocation location)
location
- of the origin for which the resulting envelope should be calculated.
public void setEnvelope(Envelope envelope)
envelope
- public final RasterDataInfo getDataInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |