public class TileDaoUtils extends Object
| Constructor and Description |
|---|
TileDaoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustTileMatrixLengths(TileMatrixSet tileMatrixSet,
List<TileMatrix> tileMatrices)
Adjust the tile matrix lengths if needed.
|
static Long |
getApproximateZoomLevel(double[] widths,
double[] heights,
List<TileMatrix> tileMatrices,
double length)
Get the approximate zoom level for the provided length in the default
units.
|
static Long |
getApproximateZoomLevel(double[] widths,
double[] heights,
List<TileMatrix> tileMatrices,
double width,
double height)
Get the approximate zoom level for the provided width and height in the
default units.
|
static Long |
getClosestZoomLevel(double[] widths,
double[] heights,
List<TileMatrix> tileMatrices,
double length)
Get the closest zoom level for the provided width and height in the
default units
|
static Long |
getClosestZoomLevel(double[] widths,
double[] heights,
List<TileMatrix> tileMatrices,
double width,
double height)
Get the closest zoom level for the provided width and height in the
default units
|
static long |
getMapMaxZoom(TileMatrixSet tileMatrixSet,
List<TileMatrix> tileMatrices)
Get the map max zoom level
|
static long |
getMapMinZoom(TileMatrixSet tileMatrixSet,
List<TileMatrix> tileMatrices)
Get the map min zoom level
|
static long |
getMapZoom(TileMatrixSet tileMatrixSet,
TileMatrix tileMatrix)
Get the map zoom level
|
static long[] |
getMapZoomRange(TileMatrixSet tileMatrixSet,
List<TileMatrix> tileMatrices)
Get the map zoom level range
|
static double |
getMaxLength(double[] widths,
double[] heights)
Get the max distance length that matches the tile widths and heights
|
static double |
getMinLength(double[] widths,
double[] heights)
Get the min distance length that matches the tile widths and heights
|
static Long |
getZoomLevel(double[] widths,
double[] heights,
List<TileMatrix> tileMatrices,
double length)
Get the zoom level for the provided width and height in the default units
|
static Long |
getZoomLevel(double[] widths,
double[] heights,
List<TileMatrix> tileMatrices,
double width,
double height)
Get the zoom level for the provided width and height in the default units
|
public static void adjustTileMatrixLengths(TileMatrixSet tileMatrixSet, List<TileMatrix> tileMatrices)
tileMatrixSet - tile matrix settileMatrices - tile matricespublic static Long getZoomLevel(double[] widths, double[] heights, List<TileMatrix> tileMatrices, double length)
widths - sorted widthsheights - sorted heightstileMatrices - tile matriceslength - in default unitspublic static Long getZoomLevel(double[] widths, double[] heights, List<TileMatrix> tileMatrices, double width, double height)
widths - sorted widthsheights - sorted heightstileMatrices - tile matriceswidth - in default unitsheight - in default unitspublic static Long getClosestZoomLevel(double[] widths, double[] heights, List<TileMatrix> tileMatrices, double length)
widths - sorted widthsheights - sorted heightstileMatrices - tile matriceslength - in default unitspublic static Long getClosestZoomLevel(double[] widths, double[] heights, List<TileMatrix> tileMatrices, double width, double height)
widths - sorted widthsheights - sorted heightstileMatrices - tile matriceswidth - in default unitsheight - in default unitspublic static Long getApproximateZoomLevel(double[] widths, double[] heights, List<TileMatrix> tileMatrices, double length)
widths - sorted widthsheights - sorted heightstileMatrices - tile matriceslength - length in default unitspublic static Long getApproximateZoomLevel(double[] widths, double[] heights, List<TileMatrix> tileMatrices, double width, double height)
widths - sorted widthsheights - sorted heightstileMatrices - tile matriceswidth - width in default unitsheight - height in default unitspublic static double getMaxLength(double[] widths,
double[] heights)
widths - sorted tile matrix widthsheights - sorted tile matrix heightspublic static double getMinLength(double[] widths,
double[] heights)
widths - sorted tile matrix widthsheights - sorted tile matrix heightspublic static long[] getMapZoomRange(TileMatrixSet tileMatrixSet, List<TileMatrix> tileMatrices)
tileMatrixSet - tile matrix settileMatrices - tile matricespublic static long getMapMinZoom(TileMatrixSet tileMatrixSet, List<TileMatrix> tileMatrices)
tileMatrixSet - tile matrix settileMatrices - tile matricespublic static long getMapMaxZoom(TileMatrixSet tileMatrixSet, List<TileMatrix> tileMatrices)
tileMatrixSet - tile matrix settileMatrices - tile matricespublic static long getMapZoom(TileMatrixSet tileMatrixSet, TileMatrix tileMatrix)
tileMatrixSet - tile matrix settileMatrix - tile matrixCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.