Package com.luciad.earth.metadata
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
Default implementation of
ILcdEarthRasterAsset.- Since:
- 8.2
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdEarthRasterAsset(String aSourceName, ILcdModelDecoder aModelDecoder, ILcdBounds aBounds, ILcdEarthTileSetCoverage.CoverageType aCoverageType, Date aModificationDate, double aPixelDensity) -
Method Summary
Modifier and TypeMethodDescriptionintIf the given asset is anTLcdEarthRasterAsset, its pixel density is compared to this raster asset's pixel density.booleanReturns true if the given object is an earth raster asset, equals this earth asset and compares equal to this earth raster asset according to thecompareTo(Object)method.doubleReturns the asset's pixel density in pixels per square degree.inthashCode()Methods inherited from class com.luciad.earth.metadata.TLcdEarthAsset
getBounds, getCoverageType, getModelDecoder, getModificationDate, getSortOrder, getSourceName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.earth.metadata.ILcdEarthAsset
getBounds, getCoverageType, getModelDecoder, getModificationDate, getSourceName
-
Constructor Details
-
TLcdEarthRasterAsset
public TLcdEarthRasterAsset(String aSourceName, ILcdModelDecoder aModelDecoder, ILcdBounds aBounds, ILcdEarthTileSetCoverage.CoverageType aCoverageType, Date aModificationDate, double aPixelDensity)
-
-
Method Details
-
getPixelDensity
public double getPixelDensity()Description copied from interface:ILcdEarthRasterAssetReturns 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:
getPixelDensityin interfaceILcdEarthRasterAsset- Returns:
- the asset's pixel density
-
compareTo
If the given asset is anTLcdEarthRasterAsset, 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:
compareToin interfaceComparable- Overrides:
compareToin classTLcdEarthAsset- Parameters:
o- The object to compare this raster asset to.- Returns:
- The comparison result.
- See Also:
-
equals
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 thecompareTo(Object)method.- Overrides:
equalsin classTLcdEarthAsset- 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:
hashCodein classTLcdEarthAsset
-