Package com.luciad.format.raster
Class TLcdMultivaluedRaster
java.lang.Object
com.luciad.format.raster.TLcdMultivaluedRaster
- All Implemented Interfaces:
ILcdMultivaluedRaster
,ILcdBounded
,ILcdCache
This
ILcdMultivaluedRaster
combines the values from a list of simple
rasters into vectors.-
Constructor Summary
ConstructorDescriptionTLcdMultivaluedRaster
(ILcdRaster[] aRasters) Creates a newTLcdMultivaluedRaster
.TLcdMultivaluedRaster
(ILcdRaster[] aRasters, ILcdBounds aBounds) Creates a newTLcdMultivaluedRaster
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the cache.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.getCachedObject
(Object aKey) Looks up and returns the cached Object corresponding to the given key.getRaster
(int aLevel) int
void
insertIntoCache
(Object aKey, Object aObject) Inserts a cache Object corresponding to the given key Object.removeCachedObject
(Object aKey) Looks up and removes the cached Object corresponding to the given key.int
retrieveValue
(double aX, double aY, int aIndex) Retrieves a single value from the values at the given point.void
retrieveValuesSFCT
(double aX, double aY, int[] aValuesSFCT) Retrieves the values at the given point.
-
Constructor Details
-
TLcdMultivaluedRaster
Creates a newTLcdMultivaluedRaster
.- Parameters:
aRasters
- theILcdRaster
objects corresponding to the value dimensions.
-
TLcdMultivaluedRaster
Creates a newTLcdMultivaluedRaster
.- Parameters:
aRasters
- theILcdRaster
objects corresponding to the value dimensions.aBounds
- the global bounds of all contained rasters.
-
-
Method Details
-
getRasterCount
public int getRasterCount() -
getRaster
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
retrieveValue
public int retrieveValue(double aX, double aY, int aIndex) Description copied from interface:ILcdMultivaluedRaster
Retrieves a single value from the values at the given point.- Specified by:
retrieveValue
in interfaceILcdMultivaluedRaster
- Parameters:
aX
- the abscissa of the required value.aY
- the ordinate of the required value.aIndex
- the index of the raster.- Returns:
- a value of type integer.
-
retrieveValuesSFCT
public void retrieveValuesSFCT(double aX, double aY, int[] aValuesSFCT) Description copied from interface:ILcdMultivaluedRaster
Retrieves the values at the given point.- Specified by:
retrieveValuesSFCT
in interfaceILcdMultivaluedRaster
- Parameters:
aX
- the abscissa of the required value.aY
- the ordinate of the required value.aValuesSFCT
- an array of the proper size in which the values will be written.
-
insertIntoCache
Description copied from interface:ILcdCache
Inserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCache
in interfaceILcdCache
- Parameters:
aKey
- the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself:insertIntoCache(this, ...)
.aObject
- the Object to be cached.
-
getCachedObject
Description copied from interface:ILcdCache
Looks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there is no Object corresponding to the given key.
-
removeCachedObject
Description copied from interface:ILcdCache
Looks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there was no Object corresponding to the given key.
-
clearCache
public void clearCache()Description copied from interface:ILcdCache
Clears the cache.- Specified by:
clearCache
in interfaceILcdCache
-