|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.util.RasterMetaData
public final class RasterMetaData
Simple immutable class that encapsulates raster metadata,
especially the MetaData of a WritableGrid
.
Just a constructor and getters
on the fields.
for details on the variable description
,
Serialized FormConstructor Summary | |
---|---|
RasterMetaData(int dataType,
int gridWidth,
int gridHeight,
int minX,
int minY,
double x,
double y,
double cellSize,
CoordinateReferenceSystem crs)
Constructs a RasterMetaData Object. |
|
RasterMetaData(int dataType,
int gridWidth,
int gridHeight,
int minX,
int minY,
double x,
double y,
double realWidth,
double realHeight,
CoordinateReferenceSystem crs)
|
|
RasterMetaData(WritableGrid w)
Constructs a RasterMetaDataObject out of the given Grid |
Method Summary | |
---|---|
boolean |
equals(Object rasterMeta)
Checks if the given RasterMetaData object has the same values. |
double |
getCellHeight()
|
double |
getCellWidth()
|
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
|
int |
getDataType()
|
int |
getHeight()
|
int |
getMinX()
|
int |
getMinY()
|
double |
getRealHeight()
|
double |
getRealWidth()
|
int |
getWidth()
|
double |
getX()
|
double |
getY()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RasterMetaData(int dataType, int gridWidth, int gridHeight, int minX, int minY, double x, double y, double realWidth, double realHeight, CoordinateReferenceSystem crs)
dataType
- the datatypegridWidth
- the width of the grid (in cells)gridHeight
- the height of the grid (in cells)minX
- the minX (used to indicate a start index)minY
- the minY (used to indicate a start index)realWidth
- the real widthrealHeight
- the real heightx
- the (geographic) x-coordinatey
- the (geographic) y-coordinatecrs
- the CoordinateReferenceSystem
. Use null for DefaultCRS (WGS84)WritableGrid
public RasterMetaData(int dataType, int gridWidth, int gridHeight, int minX, int minY, double x, double y, double cellSize, CoordinateReferenceSystem crs)
dataType
- the datatypegridWidth
- the width of the grid (in cells)gridHeight
- the height of the grid (in cells)minX
- the minX (used to indicate a start index)minY
- the minY (used to indicate a start index)x
- the (geographic) x-coordinatey
- the (geographic) y-coordinatecellSize
- the real size of one cellcrs
- the CoordinateReferenceSystem
, use null for default CRS (WGS84)public RasterMetaData(WritableGrid w)
w
- the source gridMethod Detail |
---|
public final CoordinateReferenceSystem getCoordinateReferenceSystem()
public final int getHeight()
public final int getWidth()
public final int getDataType()
public final int getMinX()
ReadableGrid.getMinX()
public final int getMinY()
ReadableGrid.getMinY()
public final double getRealHeight()
public final double getRealWidth()
public final double getX()
public final double getY()
public final double getCellWidth()
public boolean equals(Object rasterMeta)
equals
in class Object
rasterMeta
- must be a RasterMetaDataObject! Else ClassCastException will be thrown.
Object.equals(java.lang.Object)
public final double getCellHeight()
public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |