Class TLfnScaleUtil

java.lang.Object
com.luciad.fusion.engine.vector.TLfnScaleUtil

public class TLfnScaleUtil extends Object
Deprecated.
Use TLfnScaleUtil instead.
Utility to calculate scales and levels for various inputs.
Since:
11.0
  • Method Details

    • convertPixelDensityToScaleDenominator

      public static int convertPixelDensityToScaleDenominator(double aPixelDensity, ILcdGeoReference aGeoReference)
      Deprecated.
      Calculates the scale denominator that corresponds to the pixel density, assuming a pixel size of 0.28 mm.
      Parameters:
      aPixelDensity - the pixel density in pixels per square model unit
      aGeoReference - the geographic reference
      Returns:
      the scale denominator, as scale = (1 / scale denominator)
    • getMaxLevel

      public static int getMaxLevel(ILcdBounds aBounds, ILcdGeoReference aGeoReference, long aLevel0Rows, long aLevel0Columns, List<TLfnVectorAssetMetadata> aAllAssetMetadata)
      Deprecated.
      Computes the most detailed level that is needed for the assets in a coverage. The level is chosen such that its scale is greater than or equal to the largest asset scale.
      Parameters:
      aBounds - the coverage bounds
      aGeoReference - the coverage geographic reference
      aLevel0Rows - the number of rows at level 0 in the coverage
      aLevel0Columns - the number of columns at level 0 in the coverage
      aAllAssetMetadata - the assets
      Returns:
      the most detailed level, as number of levels = (max. level + 1)
    • getOptimalScaleDenominator

      public static int getOptimalScaleDenominator(ILcdBounds aBounds, ILcdGeoReference aGeoReference, long aLevel0Rows, long aLevel0Columns, int aLevel)
      Deprecated.
      Compute the optimal scale of a coverage at the specified level. The scale is such that a tile will be mapped to 256x256 pixels.
      Parameters:
      aBounds - the coverage bounds
      aGeoReference - the coverage geographic reference
      aLevel0Rows - the number of rows at level 0
      aLevel0Columns - the number of columns at level 0
      aLevel - the level
      Returns:
      the scale denominator, as scale = (1 / scale denominator)
    • computeScaleDenominator

      public static int computeScaleDenominator(ILcdModel aModel, ILcdStatusListener aStatusListener)
      Deprecated.
      Compute the scale of a model.

      The status listener can be used to monitor the progress of the computation.

      Parameters:
      aModel - the model
      aStatusListener - the status listener or null
      Returns:
      the scale denominator, as scale = (1 / scale denominator)