Class TLcdMultivaluedRaster

java.lang.Object
com.luciad.format.raster.TLcdMultivaluedRaster
All Implemented Interfaces:
ILcdMultivaluedRaster, ILcdBounded, ILcdCache

public class TLcdMultivaluedRaster extends Object implements ILcdMultivaluedRaster
This ILcdMultivaluedRaster combines the values from a list of simple rasters into vectors.
  • Constructor Details

    • TLcdMultivaluedRaster

      public TLcdMultivaluedRaster(ILcdRaster[] aRasters)
      Creates a new TLcdMultivaluedRaster.
      Parameters:
      aRasters - the ILcdRaster objects corresponding to the value dimensions.
    • TLcdMultivaluedRaster

      public TLcdMultivaluedRaster(ILcdRaster[] aRasters, ILcdBounds aBounds)
      Creates a new TLcdMultivaluedRaster.
      Parameters:
      aRasters - the ILcdRaster objects corresponding to the value dimensions.
      aBounds - the global bounds of all contained rasters.
  • Method Details

    • getRasterCount

      public int getRasterCount()
    • getRaster

      public ILcdRaster getRaster(int aLevel)
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the ILcdBounds by which the geometry of this ILcdBounded 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 of TLcdLonLatBounds or TLcdXYBounds.

      Specified by:
      getBounds in interface ILcdBounded
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded 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 interface ILcdMultivaluedRaster
      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 interface ILcdMultivaluedRaster
      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

      public void insertIntoCache(Object aKey, Object aObject)
      Description copied from interface: ILcdCache
      Inserts a cache Object corresponding to the given key Object.
      Specified by:
      insertIntoCache in interface ILcdCache
      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

      public Object getCachedObject(Object aKey)
      Description copied from interface: ILcdCache
      Looks up and returns the cached Object corresponding to the given key.
      Specified by:
      getCachedObject in interface ILcdCache
      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

      public Object removeCachedObject(Object aKey)
      Description copied from interface: ILcdCache
      Looks up and removes the cached Object corresponding to the given key.
      Specified by:
      removeCachedObject in interface ILcdCache
      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 interface ILcdCache