public final class TLfnScaleUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_SCALE_DENOMINATOR |
Modifier and Type | Method and Description |
---|---|
static int |
computeScaleDenominator(ILcdModel aModel,
ILcdStatusListener aStatusListener)
Compute the scale of a model.
|
static int |
convertPixelDensityToScaleDenominator(double aPixelDensity,
ILcdGeoReference aGeoReference)
Calculates the scale denominator that corresponds to the pixel density, assuming a pixel size of 0.28 mm.
|
static int |
getMaxLevel(ILcdBounds aBounds,
ILcdGeoReference aGeoReference,
long aLevel0Rows,
long aLevel0Columns,
List<TLfnVectorAssetMetadata> aAllAssetMetadata)
Computes the most detailed level that is needed for the assets in a coverage.
|
static int |
getOptimalScaleDenominator(ILcdBounds aBounds,
ILcdGeoReference aGeoReference,
long aLevel0Rows,
long aLevel0Columns,
int aLevel)
Compute the optimal scale of a coverage at the specified level.
|
public static final int UNKNOWN_SCALE_DENOMINATOR
public static int convertPixelDensityToScaleDenominator(double aPixelDensity, ILcdGeoReference aGeoReference)
aPixelDensity
- the pixel density in pixels per square model unitaGeoReference
- the geographic referencepublic static int getMaxLevel(ILcdBounds aBounds, ILcdGeoReference aGeoReference, long aLevel0Rows, long aLevel0Columns, List<TLfnVectorAssetMetadata> aAllAssetMetadata)
aBounds
- the coverage boundsaGeoReference
- the coverage geographic referenceaLevel0Rows
- the number of rows at level 0 in the coverageaLevel0Columns
- the number of columns at level 0 in the coverageaAllAssetMetadata
- all the asset metadata to compute the max. level forpublic static int getOptimalScaleDenominator(ILcdBounds aBounds, ILcdGeoReference aGeoReference, long aLevel0Rows, long aLevel0Columns, int aLevel)
aBounds
- the coverage boundsaGeoReference
- the coverage geographic referenceaLevel0Rows
- the number of rows at level 0aLevel0Columns
- the number of columns at level 0aLevel
- the levelpublic static int computeScaleDenominator(ILcdModel aModel, ILcdStatusListener aStatusListener)
aModel
- the modelaStatusListener
- the status listener or null