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
ConstructorsConstructorDescriptionTLcdMultivaluedRaster(ILcdRaster[] aRasters) Creates a newTLcdMultivaluedRaster.TLcdMultivaluedRaster(ILcdRaster[] aRasters, ILcdBounds aBounds) Creates a newTLcdMultivaluedRaster. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.getCachedObject(Object aKey) Looks up and returns the cached Object corresponding to the given key.getRaster(int aLevel) intvoidinsertIntoCache(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.intretrieveValue(double aX, double aY, int aIndex) Retrieves a single value from the values at the given point.voidretrieveValuesSFCT(double aX, double aY, int[] aValuesSFCT) Retrieves the values at the given point.
-
Constructor Details
-
TLcdMultivaluedRaster
Creates a newTLcdMultivaluedRaster.- Parameters:
aRasters- theILcdRasterobjects corresponding to the value dimensions.
-
TLcdMultivaluedRaster
Creates a newTLcdMultivaluedRaster.- Parameters:
aRasters- theILcdRasterobjects 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:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
retrieveValue
public int retrieveValue(double aX, double aY, int aIndex) Description copied from interface:ILcdMultivaluedRasterRetrieves a single value from the values at the given point.- Specified by:
retrieveValuein 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:ILcdMultivaluedRasterRetrieves the values at the given point.- Specified by:
retrieveValuesSFCTin 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:ILcdCacheInserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCachein 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:ILcdCacheLooks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObjectin 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:ILcdCacheLooks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObjectin 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:ILcdCacheClears the cache.- Specified by:
clearCachein interfaceILcdCache
-