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
ConstructorDescriptionTLcdEarthRasterAsset
(String aSourceName, ILcdModelDecoder aModelDecoder, ILcdBounds aBounds, ILcdEarthTileSetCoverage.CoverageType aCoverageType, Date aModificationDate, double aPixelDensity) -
Method Summary
Modifier and TypeMethodDescriptionint
If the given asset is anTLcdEarthRasterAsset
, its pixel density is compared to this raster asset's pixel density.boolean
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.double
Returns the asset's pixel density in pixels per square degree.int
hashCode()
Methods inherited from class com.luciad.earth.metadata.TLcdEarthAsset
getBounds, getCoverageType, getModelDecoder, getModificationDate, getSortOrder, getSourceName, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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: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 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:
compareTo
in interfaceComparable
- Overrides:
compareTo
in 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:
equals
in 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:
hashCode
in classTLcdEarthAsset
-