appl.data
Class WritableGridLLProxy
java.lang.Object
appl.data.LateLoadingProxy
appl.data.WritableGridLLProxy
- All Implemented Interfaces:
- DataProxy, Serializable
- Direct Known Subclasses:
- SplittableLLProxyGrid, XuluWritableGridFile
public class WritableGridLLProxy
- extends LateLoadingProxy
This is an a late loading implementation for WritableGrids
.
- Author:
- Dominik Appl
- See Also:
- Serialized Form
Field Summary |
protected RasterMetaData |
metaData
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metaData
protected RasterMetaData metaData
WritableGridLLProxy
public WritableGridLLProxy(ImportFactory importFac,
RasterMetaData metaData,
Object inputPara,
XuluRegistry reg)
WritableGridLLProxy
public WritableGridLLProxy(WritableGridFactory targetFactory,
RasterMetaData metaData)
WritableGridLLProxy
public WritableGridLLProxy(RasterMetaData metaData)
WritableGridLLProxy
protected WritableGridLLProxy(RasterMetaData metaData,
DataLoader loader)
convertRasterToReal
public double convertRasterToReal(int cell,
int dim)
convertRealToRaster
public int convertRealToRaster(double coord,
int dim)
dispose
public void dispose()
- See Also:
WritableGrid#dispose()
getGridSample
public Object getGridSample(double... coord)
getGridSampleAsByte
public byte getGridSampleAsByte(double... coord)
getGridSampleAsDouble
public double getGridSampleAsDouble(double... coord)
getGridSampleAsFloat
public float getGridSampleAsFloat(double... coord)
getGridSampleAsInt
public int getGridSampleAsInt(double... coord)
getGridSampleAsLong
public long getGridSampleAsLong(double... coord)
getGridSampleAsShort
public short getGridSampleAsShort(double... coord)
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
getHeight
public int getHeight()
getMinX
public int getMinX()
getMinY
public int getMinY()
getRasterSample
public Object getRasterSample(int... cell)
getRasterSampleAsByte
public byte getRasterSampleAsByte(int... cell)
getRasterSampleAsDouble
public double getRasterSampleAsDouble(int... cell)
getRasterSampleAsFloat
public float getRasterSampleAsFloat(int... cell)
getRasterSampleAsInt
public int getRasterSampleAsInt(int... cell)
getRasterSampleAsLong
public long getRasterSampleAsLong(int... cell)
getRasterSampleAsShort
public short getRasterSampleAsShort(int... cell)
getRealHeight
public double getRealHeight()
getRealWidth
public double getRealWidth()
getSampleType
public int getSampleType()
getWidth
public int getWidth()
- Returns the Width of the Grid
getX
public double getX()
getY
public double getY()
setGridSample
public void setGridSample(Object value,
double... coord)
setRasterSample
public void setRasterSample(Object value,
int... cell)
tryLoadingGrid
protected void tryLoadingGrid()
- Trys to load the grid and gives out an error to the LOG, if the loading
fails.
getCellHeight
public double getCellHeight()
getCellWidth
public double getCellWidth()
isLateLoadable
public boolean isLateLoadable()
- This class supports late loading
- Overrides:
isLateLoadable
in class LateLoadingProxy
- Returns:
- true;
- See Also:
appl.data.LateLoadable#unloadData()
,
appl.data.LateLoadable#isLateLoadable()