Class TLcdEarthRasterAsset

java.lang.Object
com.luciad.earth.metadata.TLcdEarthAsset
com.luciad.earth.metadata.TLcdEarthRasterAsset
All Implemented Interfaces:
ILcdEarthAsset, ILcdEarthRasterAsset, ILcdBounded, Comparable
Direct Known Subclasses:
TLcdEarthClippedRasterAsset

public class TLcdEarthRasterAsset extends TLcdEarthAsset implements ILcdEarthRasterAsset
Default implementation of ILcdEarthRasterAsset.
Since:
8.2
  • Constructor Details

  • Method Details

    • getPixelDensity

      public double getPixelDensity()
      Description copied from interface: ILcdEarthRasterAsset
      Returns the asset's pixel density in pixels per square degree. In other words, this method returns the total number of pixels in the raster divided by the area of the asset's bounds. The pixel density can be used to prioritize more detailed rasters during terrain preprocessing.
      Specified by:
      getPixelDensity in interface ILcdEarthRasterAsset
      Returns:
      the asset's pixel density
    • compareTo

      public int compareTo(Object o)
      If the given asset is an TLcdEarthRasterAsset, its pixel density is compared to this raster asset's pixel density. In other words, this raster asset is less than the given raster asset if the pixel density of this raster asset is larger than the given raster asset's pixel density). Otherwise the default comparison is used.
      Specified by:
      compareTo in interface Comparable
      Overrides:
      compareTo in class TLcdEarthAsset
      Parameters:
      o - The object to compare this raster asset to.
      Returns:
      The comparison result.
      See Also:
    • equals

      public boolean equals(Object o)
      Returns true if the given object is an earth raster asset, equals this earth asset and compares equal to this earth raster asset according to the compareTo(Object) method.
      Overrides:
      equals in class TLcdEarthAsset
      Parameters:
      o - The object to compare this raster asset to.
      Returns:
      True if the given object is equal to this raster asset.
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TLcdEarthAsset